Skip to content

Instantly share code, notes, and snippets.

@xoriole
Created August 30, 2019 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoriole/333c2c98191cfa4829e4ca980ed6dff6 to your computer and use it in GitHub Desktop.
Save xoriole/333c2c98191cfa4829e4ca980ed6dff6 to your computer and use it in GitHub Desktop.
FROM triblertester/ipv8-p4a:latest
VOLUME /dist
WORKDIR /home/user
#RUN rm -rf /home/user/.local/lib/python2.7/site-packages/pythonforandroid
RUN mkdir -p /home/user/.local/lib/python2.7/site-packages
RUN if test -L /home/user/.local/lib/python2.7/site-packages/pythonforandroid; then ln -s /home/user/pythonforadnroid /home/user/.local/lib/python2.7/site-packages/pythonforandroid; fi
RUN rm -rf /home/user/ipv8-android-service && git clone -b jenkins_wild https://github.com/Tribler/ipv8-android-service.git && cp -r ipv8-android-service/recipes/* ~/pythonforandroid/recipes
RUN virtualenv --python=python3 venv \
&& . venv/bin/activate \
&& pip3 install -e .
WORKDIR /home/user/ipv8-android-service
RUN . /home/user/venv/bin/activate
RUN . /home/user/venv/bin/activate && ./build.sh
@xoriole
Copy link
Author

xoriole commented Aug 30, 2019

Build the image

docker build --tag=docker-ipv8-android-service --file Dockerfile .
docker run --rm -v `pwd`:/dist docker-ipv8-android-service cp -r /home/user/ipv8-android-service /dist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment