Skip to content

Instantly share code, notes, and snippets.

@xoriole
Last active May 29, 2019 15:40
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/0138382fc396f4d45451e58a98605630 to your computer and use it in GitHub Desktop.
Save xoriole/0138382fc396f4d45451e58a98605630 to your computer and use it in GitHub Desktop.
IPv8 android service dockerfile
FROM triblertester/ipv8-p4a:latest
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 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 May 29, 2019

docker build --tag=docker-ipv8-android-service --file Dockerfile .
docker run -it --rm docker-ipv8-android-service

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