forked from armadaplatform/armada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·26 lines (19 loc) · 998 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM microservice
MAINTAINER Cerebro <[email protected]>
RUN apt-get update && apt-get install -y rsync openssh-server libffi-dev libssl-dev python3-dev
COPY armada_backend/armada_backend_requirements.txt /tmp/
RUN pip3 install -r /tmp/armada_backend_requirements.txt
# Consul
RUN curl -s https://releases.hashicorp.com/consul/0.7.5/consul_0.7.5_linux_amd64.zip | zcat > /usr/local/bin/consul \
&& chmod +x /usr/local/bin/consul
ADD ./armada_backend/supervisor/* /etc/supervisor/conf.d/
RUN rm -f /etc/supervisor/conf.d/local_magellan.conf
# armada
ADD . /opt/armada-docker
RUN /opt/armada-docker/armada_backend/scripts/setup_ssh.sh
RUN ln -s /opt/armada-docker/microservice_templates /opt/templates
RUN ln -s /opt/armada-docker/packaging/bin/armada /usr/local/bin/armada
ENV ARMADA_VERSION 2.6.0
RUN echo __version__ = \"armada ${ARMADA_VERSION}\" > /opt/armada-docker/armada_command/_version.py
ENV PYTHONPATH /opt/armada-docker:$PYTHONPATH
EXPOSE 22 80 8300 8301 8301/udp 8400 8500