Skip to content

Commit

Permalink
Fix build kite docker build (cadence-workflow#2478)
Browse files Browse the repository at this point in the history
* Fix docker userns remapping issue, i.e. `Container ID cannot be mapped to a host ID`
* Fix docker cli build
  • Loading branch information
wxing1292 authored Aug 29, 2019
1 parent b01d8a9 commit 05b4197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ RUN apk add --no-cache openssl
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz

&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& echo "**** fix for host id mapping error ****" \
&& chown root:root /usr/local/bin/dockerize

# Alpine base image
FROM alpine:3.10 AS alpine
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildkite/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ docker push ubercadence/server:master
docker build . -f Dockerfile -t ubercadence/server:master-auto-setup --build-arg TARGET=auto-setup
docker push ubercadence/server:master-auto-setup

docker build . -f Dockerfile-cli -t ubercadence/cli:master --build-arg TARGET=cli
docker build . -f Dockerfile -t ubercadence/cli:master --build-arg TARGET=cli
docker push ubercadence/cli:master

0 comments on commit 05b4197

Please sign in to comment.