Skip to content
Snippets Groups Projects
Commit 3343ee20 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

Add consul to nomad container

parent 8cb3fded
No related branches found
No related tags found
2 merge requests!2Diverge and convert to gitlab,!1Add consul to nomad container
FROM ghcr.io/jumppad-labs/dind:v1.1.2
ARG NOMAD_VERSION
ARG CONSUL_VERSION
ARG TARGETARCH
ENV CNI_PLUGINS=1.5.1
......@@ -16,6 +17,12 @@ RUN curl -L https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_
chmod +x /usr/bin/nomad && \
rm /tmp/nomad.zip
RUN curl -L https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_${TARGETARCH}.zip -o /tmp/consul.zip && \
cd /tmp && \
unzip consul.zip consul -d /usr/bin && \
chmod +x /usr/bin/consul && \
rm /tmp/consul.zip
# Install the CNI Plugins
RUN curl -L https://github.com/containernetworking/plugins/releases/download/v${CNI_PLUGINS}/cni-plugins-linux-${TARGETARCH}-v${CNI_PLUGINS}.tgz -o /tmp/cni.tgz && \
mkdir -p /opt/cni/bin && \
......
......@@ -13,6 +13,9 @@ fi
# Start the docker daemon
/usr/local/bin/dockerd.sh &
# Start the consul agent
/usr/bin/consul agent -config /etc/consul.d -log-level=DEBUG &
# Start the nomad agent
/usr/bin/nomad agent -config /etc/nomad.d -log-level=DEBUG &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment