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

Add simplistic Dockerfile #149

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add simplistic Dockerfile #149

wants to merge 4 commits into from

Conversation

Fusl
Copy link
Member

@Fusl Fusl commented Mar 5, 2019

No description provided.

@localleon
Copy link

After i builded the Container everything run as expected. Except the gs-server Part is not enabled. Maybe we could start gs-server on Container Runtime

@Fusl
Copy link
Member Author

Fusl commented Mar 13, 2019

@localleon The gs-server runs with the same image but in another container, so:

To start the gs-server:

docker container run -d -p 29000:29000 --restart=unless-stopped --entrypoint gs-server IMAGENAME

And each grab-site job runs in its own Docker container:

docker container run --rm -d -e GRAB_SITE_HOST=172.17.0.1 --name "grab-site_$(cat /proc/sys/kernel/random/uuid)" -v /data:/data:rw IMAGENAME --igon --import-ignores /data/ignores URL

@localleon
Copy link

localleon commented Mar 13, 2019

@Fusl Now I understand, works great. This pull request should make some changes to the readme to explain how to use the dockerfile.

@bknowles
Copy link

bknowles commented Jan 4, 2021

For me, this bombs out when I try to do a docker build with:

      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.9/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
         15 | #include <ffi.h>
            |          ^~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6vliy31x/cffi_dc034e57ef524379affce4b3fdda0b3c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6vliy31x/cffi_dc034e57ef524379affce4b3fdda0b3c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-f5drvudy/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-u9n2qtmo/overlay --compile --install-headers /tmp/pip-build-env-u9n2qtmo/overlay/include/python3.9/cffi Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-u9n2qtmo/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
The command '/bin/sh -c apk add --no-cache git gcc libxml2-dev musl-dev libxslt-dev g++ re2-dev  && ln -s /usr/include/libxml2/libxml /usr/include/libxml  && pip3 install git+https://github.com/ludios/grab-site.git' returned a non-zero code: 1

bknowles pushed a commit to bknowles/grab-site that referenced this pull request Jan 4, 2021
Dockerfile Outdated
@@ -1,5 +1,5 @@
FROM python:3-alpine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we do need to force Python version 3.7.9 here. So, try this instead:

FROM python:3.7.9-alpine

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

Successfully merging this pull request may close these issues.

3 participants