forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.agent
17 lines (17 loc) · 983 Bytes
/
Dockerfile.agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates jq iproute2 vim-tiny less bash-completion && \
curl -sLf https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 > /usr/bin/docker && \
chmod +x /usr/bin/docker && \
curl -sLf https://storage.googleapis.com/kubernetes-release/release/v1.9.8/bin/linux/amd64/kubectl > /usr/bin/kubectl && \
chmod +x /usr/bin/kubectl && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
DEBIAN_FRONTEND=noninteractive apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sL https://github.com/rancher/share-mnt/releases/download/v1.0.3/share-mnt.tar.gz | tar xvzf - -C /usr/bin
ARG VERSION=dev
LABEL io.cattle.agent true
ENV DOCKER_API_VERSION 1.24
ENV AGENT_IMAGE rancher/rancher-agent:${VERSION}
ENV SSL_CERT_DIR /etc/kubernetes/ssl/certs
COPY agent run.sh kubectl-shell.sh shell-setup.sh share-root.sh /usr/bin/
ENTRYPOINT ["run.sh"]