Moving the docker stuff to another folder.

This commit is contained in:
tomasgodoi 2017-08-29 00:18:10 -03:00
parent a36dfab38d
commit 0c9cd00b9c
4 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,7 @@ services:
python:
- "2.7"
install:
- docker build -f tests/Dockerfile -t txgio/anki-connect .
- docker build -f tests/docker/Dockerfile -t txgio/anki-connect .
script:
- docker run -ti -d --rm -p 8765:8765 txgio/anki-connect
- sleep 5

View File

@ -9,12 +9,11 @@ RUN mkdir -p /home/anki-user/Documents/Anki/addons
COPY AnkiConnect.py /home/anki-user/Documents/Anki/addons
# Required if you want to access it from another IP address.
RUN sed -i 's/127.0.0.1/0.0.0.0/' /home/anki-user/Documents/Anki/addons/AnkiConnect.py
ENV ANKICONNECT_BIND_ADDRESS 0.0.0.0
COPY tests/prefs.db /home/anki-user/Documents/Anki/prefs.db
COPY tests/docker/prefs.db /home/anki-user/Documents/Anki/prefs.db
ADD tests/entrypoint.sh /entrypoint.sh
ADD tests/docker/entrypoint.sh /entrypoint.sh
USER root
RUN chmod +x /entrypoint.sh