Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

step 15 fails on docker build #2

Open
ghost opened this issue Dec 4, 2015 · 8 comments
Open

step 15 fails on docker build #2

ghost opened this issue Dec 4, 2015 · 8 comments

Comments

@ghost
Copy link

ghost commented Dec 4, 2015

I tried building a docker container with the following command:

docker build \
    -t rbrewer123/nikola \
    -f Dockerfile .

where the Dockerfile is this file.

I tried again with

docker build -t rbrewer123/nikola github.com/rbrewer123/docker_nikola

In both cases the builds proceeded to step 15 and then returned with an error:

Step 15 : RUN pkgbuilder --noconfirm     python-pygal     python-pyphen     python-
typogrify
 ---> Running in fc0989235898
(|) Initializing pacman access...stty: standard input: Inappropriate ioctl for
device
receiving file list ... done
community/
community/python-pygal/
community/python-pygal/PKGBUILD

sent 119 bytes  received 1,759 bytes  250.40 bytes/sec
total size is 1,589  speedup is 0.85
==> Building python-pygal...
==> Retrieving from ABS...
==> Checking dependencies...
  -> community/python-pygal 1:2.0.11-1
  ->     A Python SVG graph plotting library
Traceback (most recent call last):
  File "/usr/bin/pkgbuilder", line 9, in <module>
    load_entry_point('pkgbuilder==4.2.4', 'console_scripts', 'pkgbuilder')()
  File "/usr/lib/python3.5/site-packages/pkgbuilder/__main__.py", line 333, in main
    DS.pkginst, pkgnames)
  File "/usr/lib/python3.5/site-packages/pkgbuilder/build.py", line 50, in auto_bui
ld
    build_result = build_runner(pkgname, performdepcheck, pkginstall)
  File "/usr/lib/python3.5/site-packages/pkgbuilder/build.py", line 458, in build_r
unner
    depends = prepare_deps(os.path.abspath('./.SRCINFO'))
  File "/usr/lib/python3.5/site-packages/pkgbuilder/build.py", line 184, in prepare
_deps
    with open(srcinfo_path, encoding='utf-8') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/community/pytho
n-pygal/.SRCINFO'
@kallies
Copy link

kallies commented Dec 4, 2015

I can confirm this issue. I ran into it right now.

I started the steps in a container manually. The command that fails is (particularly python-pygal):

pkgbuilder --noconfirm \
  python-pygal \
  python-pyphen \
  python-typogrify

The .SRCINFO file is obviously missing:

[user@0ec9b672cad6 python-pygal]$ ls -la /home/user/community/python-pygal/
total 12
drwxr-xr-x 2 user user 4096 Dec  4 20:08 .
drwxr-xr-x 3 user user 4096 Dec  4 20:08 ..
-rw-r--r-- 1 user user 1589 Dec  4 20:08 PKGBUILD

It looks like a Arch upstream bug which is not related to docker_nikola.

@rbrewer123
Copy link
Owner

Thanks for the detailed report and confirmation. Alas it will be a couple days until I'm back at my machine to investigate further. From the messages, perhaps the latest python-pygal dependency is in a wonky state.

@ghost
Copy link
Author

ghost commented Dec 6, 2015

Thanks for your efforts. I ended up using a modified Ubuntu 14.04 Docker image I had lying around. Yours inspired me to make mine.

@kallies
Copy link

kallies commented Dec 7, 2015

@dmmmdfll though it doesn't solve this issue but: do you want to share your efforts (alternative Dockerfile via fork/PR)?

@ghost
Copy link
Author

ghost commented Dec 12, 2015

Yes. Let me work on it some more. I am still familiarizing myself with Docker. I have a rather idiomatic mashup going at the moment that might not be repeatable by others since it likely only makes sense to me. And I also have to learn how to do a fork/PR.

@ghost
Copy link
Author

ghost commented Dec 13, 2015

Done! With a little more work to do to get all the extras in Nikola functioning as expected.

@hwine
Copy link

hwine commented Apr 12, 2016

I also ran into the original issue, and probably had a few more challenges as I'm running docker on OSX. I could not get the arch linux docker image to build, but I could not get nikola to run correctly (finally down to gdbm issues from inside doit.py).

I applied PR #3 locally, and everything worked first time out!! Thanks @dmmmdfll \o/

@kpolucas
Copy link

I just push a little fix for the webassets in the Dockerfile.
with that change i can build it just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants