rbrewer123 / docker_nikola

Dockerized Nikola static website generator
MIT License
6 stars 3 forks source link

step 15 fails on docker build #2

Open ghost opened 8 years ago

ghost commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

ghost commented 8 years ago

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 commented 8 years ago

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

hwine commented 8 years ago

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 commented 8 years ago

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