Dockerfile 1.11 KB
Newer Older
BAIRE Anthony's avatar
BAIRE Anthony committed
1 2
FROM allgo/base-debian

BAIRE Anthony's avatar
BAIRE Anthony committed
3
RUN apt-getq install python3-websocket python3-six python3-requests	\
BAIRE Anthony's avatar
BAIRE Anthony committed
4
	python3-mysqldb python3-sqlalchemy python3-fasteners		\
5
	python3-nose python3-coverage libjs-jquery python3-yaml		\
6
	python3-termcolor python3-iso8601 python3-docker		\
7
	python3-aioredis python3-aiohttp
BAIRE Anthony's avatar
BAIRE Anthony committed
8

9 10 11 12
COPY files/. /

RUN	ln -s /vol/host/run/docker.sock /run/docker.sock	&&\
	mkdir -p /opt/allgo-docker
13
COPY docker-controller *.py install-examples config-example.yml /opt/allgo-docker/
BAIRE Anthony's avatar
BAIRE Anthony committed
14 15 16


WORKDIR /opt/allgo-docker
BAIRE Anthony's avatar
BAIRE Anthony committed
17
CMD ["/opt/allgo-docker/docker-controller"]
BAIRE Anthony's avatar
BAIRE Anthony committed
18

19
ENV	ENV=""		\
BAIRE Anthony's avatar
BAIRE Anthony committed
20
	REGISTRY=""	\
21
	DATASTORE_PATH="/data/{ENV}/django/rw/datastore"	\
22 23 24
	SANDBOX_PATH="/data/{ENV}/ssh/cache/sandbox"		\
	TOOLBOX_PATH="/data/{ENV}/toolbox/cache"		\
	SANDBOX_NETWORK="allgo_sandboxes"			\
25
	JOB_USER="65534:65534"					\
BAIRE Anthony's avatar
BAIRE Anthony committed
26
	DOCKER_HOST="unix:///run/docker.sock"			\
27
	SWARM_HOST="unix:///run/docker.sock"			\
28
	MYSQL_HOST="{ENV}-mysql"				\
29 30
	ALLGO_REDIS_HOST="{ENV}-redis"				\
	ALLGO_IMPORT_REGISTRY="cargo.irisa.fr:8003/allgo/prod/webapp"
BAIRE Anthony's avatar
BAIRE Anthony committed
31

32 33 34
# to prevent __pycache__generation, which is owned by root.
ENV PYTHONDONTWRITEBYTECODE 1

35
LABEL   dk.migrate_always=1