Moving the docker stuff to another folder.
This commit is contained in:
parent
a36dfab38d
commit
0c9cd00b9c
@ -5,7 +5,7 @@ services:
|
|||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
install:
|
install:
|
||||||
- docker build -f tests/Dockerfile -t txgio/anki-connect .
|
- docker build -f tests/docker/Dockerfile -t txgio/anki-connect .
|
||||||
script:
|
script:
|
||||||
- docker run -ti -d --rm -p 8765:8765 txgio/anki-connect
|
- docker run -ti -d --rm -p 8765:8765 txgio/anki-connect
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
@ -9,12 +9,11 @@ RUN mkdir -p /home/anki-user/Documents/Anki/addons
|
|||||||
|
|
||||||
COPY AnkiConnect.py /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.
|
ENV ANKICONNECT_BIND_ADDRESS 0.0.0.0
|
||||||
RUN sed -i 's/127.0.0.1/0.0.0.0/' /home/anki-user/Documents/Anki/addons/AnkiConnect.py
|
|
||||||
|
|
||||||
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
|
USER root
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
Loading…
Reference in New Issue
Block a user