Skip to content

Commit

Permalink
[CE-684] Fix ansible agent build failed
Browse files Browse the repository at this point in the history
Signed-off-by: kmadmin <[email protected]>
Change-Id: I137031cb469c5f88f35a8220a282ba88d76e8000
  • Loading branch information
kmadmin committed Aug 27, 2019
1 parent 791f04e commit 27586b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build_image/docker/agent/ansible/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ RUN apt-get update && \
echo " UserKnownHostsFile /dev/null" >> config

ADD src/agent/ansible /opt/agent
ADD https://storage.googleapis.com/kubernetes-release/release/v1.15.0/bin/linux/amd64/kubectl /usr/local/bin/kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
mv kubectl /usr/local/bin/kubectl
RUN chown -R ${uid}:${gid} /opt/agent && \
chmod 755 /usr/local/bin/kubectl

Expand Down
3 changes: 2 additions & 1 deletion build_image/dockerhub/latest/agent/ansible/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ RUN apt-get update && \
echo " UserKnownHostsFile /dev/null" >> config

COPY --from=build /tmp/cello/src/agent/ansible /opt/agent
ADD https://storage.googleapis.com/kubernetes-release/release/v1.15.0/bin/linux/amd64/kubectl /usr/local/bin/kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
mv kubectl /usr/local/bin/kubectl
RUN chown -R ${uid}:${gid} /opt/agent && \
chmod 755 /usr/local/bin/kubectl

Expand Down

0 comments on commit 27586b7

Please sign in to comment.