Skip to content
Snippets Groups Projects
Commit 4bb5aacc authored by George Sedov's avatar George Sedov
Browse files

change docker into two stages

parent bb86d7c9
No related branches found
No related tags found
No related merge requests found
FROM debian:bullseye FROM gitlab.desy.de:5555/asapo/asapo/asapo-nomad-consul:latest
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg \
;
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor > /usr/share/keyrings/nomad-hashicorp-archive-keyring.gpg
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/nomad-hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com bullseye main" >> /etc/apt/sources.list
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
supervisor \
gnupg-agent \
dnsutils \
nomad \
consul \
terraform \
iproute2 \
; \
rm -rf /var/lib/apt/lists/*
COPY scripts/ /var/asapo/ COPY scripts/ /var/asapo/
COPY jobs-* /usr/bin/
COPY asapo-wait-service /usr/bin/
COPY supervisord.conf /etc/
COPY *.py /etc/asapo/
COPY *.hcl.tpl /etc/asapo/
RUN mkdir -p /var/log/supervisord/ /etc/consul.d /etc/nomad.d /var/nomad /var/consul
RUN cd /var/asapo && terraform init RUN cd /var/asapo && terraform init
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment