1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 15:47:17 +00:00

Prepare controller/Dockerfile for an actual controller

This commit is contained in:
Kristóf Tóth 2018-07-20 14:41:27 +02:00
parent 2f60ddd46a
commit 69721039eb
2 changed files with 14 additions and 2 deletions

View File

@ -6,7 +6,7 @@ skills: []
owners: ['kristof.toth@avatao.com'] owners: ['kristof.toth@avatao.com']
crp_config: crp_config:
controller: controller:
ports: ["4444/controller"] ports: ["5555/controller"]
solvable: solvable:
capabilities: ["SETUID", "SETGID", "CHOWN", "AUDIT_WRITE", "DAC_OVERRIDE", "KILL"] capabilities: ["SETUID", "SETGID", "CHOWN", "AUDIT_WRITE", "DAC_OVERRIDE", "KILL"]
ports: ["8888/http"] ports: ["8888/http"]

View File

@ -1 +1,13 @@
FROM avatao/controller:ubuntu-16.04 FROM avatao/controller:debian-buster
USER root
ENV PYTHONPATH="/usr/local/lib" \
TFW_PUBLISHER_PORT=7654 \
TFW_RECEIVER_PORT=8765 \
TFW_AUTH_KEY="/tmp/tfw-auth.key" \
CONTROLLER_PORT=5555
RUN pip3 install watchdog transitions
COPY ./controller/ /
CMD ["python3", "/opt/server.py"]