Skip to content
Snippets Groups Projects
Commit 320cb31d authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson
Browse files

Fix docker-compose agent image

parent 61d715d0
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,10 @@ services:
- server
container_name: k3s-agent-1
image: "e2e/cluster/local/k3s"
build:
context: ./images/k3s/.
args:
- ARCH=${ARCH}
command: agent --server https://k3s-server-1:6443
environment:
- K3S_TOKEN=e2e
......
......@@ -11,14 +11,13 @@ RUN set -x \
&& if [ "${ARCH?required}" != "amd64" ]; then \
K3S_SUFFIX="-${ARCH}"; \
fi \
&& curl -fsSL "https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s${K3S_SUFFIX}" > /bin/k3s \
&& curl -fsSL "https://github.com/k3s-io/k3s/releases/download/${K3S_VERSION}/k3s${K3S_SUFFIX}" > /bin/k3s \
&& chmod +x /bin/k3s \
&& ln -s /bin/k3s /bin/kubectl \
&& ln -s /bin/k3s /bin/ctr \
&& k3s --version
COPY scratch/*-${ARCH}.tar /var/lib/rancher/k3s/agent/images/
#ADD https://github.com/rancher/k3s/releases/download/${K3S_VERSION}/k3s-airgap-images-${ARCH}.tar /var/lib/rancher/k3s/agent/images/
VOLUME /var/lib/cni
VOLUME /var/lib/kubelet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment