Skip to content

Commit

Permalink
Merge pull request clearcontainers#136 from kata-containers/kata-depl…
Browse files Browse the repository at this point in the history
…oy-1.2-dockerfile

Kata deploy 1.2 dockerfile
  • Loading branch information
jcvenegas authored Aug 16, 2018
2 parents 0f5e37c + 80ce323 commit 76c171b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions kata-deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM centos/systemd
ARG KATA_VER=1.1.0
ARG KATA_VER=1.2.0
ARG ARCH=x86_64
ARG KATA_URL=https://github.com/kata-containers/runtime/releases/download/${KATA_VER}
ARG KATA_FILE=kata-static-${KATA_VER}-${ARCH}.tar.xz
ARG KUBECTL_VER=v1.10.2

RUN \
curl -sOL ${KATA_URL}/kata-release-binaries.tar.xz && \
curl -sOL ${KATA_URL}/${KATA_FILE} && \
mkdir -p /opt/kata-artifacts && \
tar xvf kata-release-binaries.tar.xz -C /opt/kata-artifacts && \
rm kata-release-binaries.tar.xz
tar xvf ${KATA_FILE} -C /opt/kata-artifacts/ && \
rm ${KATA_FILE}

RUN \
curl -s -o /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VER}/bin/linux/amd64/kubectl && \
Expand Down
2 changes: 1 addition & 1 deletion kata-deploy/kata-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
kata-containers.io/kata-runtime: cleanup
containers:
- name: kube-kata-cleanup
image: katadocker/kata-deploy
image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always
command: [ "sh", "-c" ]
args:
Expand Down
6 changes: 3 additions & 3 deletions kata-deploy/kata-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
serviceAccountName: kata-label-node
containers:
- name: kubelet-runtime-labeler-pod
image: katadocker/kata-deploy
image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always
command: [ "sh", "-c" ]
args:
Expand Down Expand Up @@ -56,7 +56,7 @@ spec:
kata-containers.io/container-runtime: cri-o
containers:
- name: kube-kata
image: katadocker/kata-deploy
image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down Expand Up @@ -127,7 +127,7 @@ spec:
kata-containers.io/container-runtime: containerd
containers:
- name: kube-kata
image: katadocker/kata-deploy
image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down

0 comments on commit 76c171b

Please sign in to comment.