Skip to content

Commit

Permalink
Merge 100bd51 into 7c0d6f8
Browse files Browse the repository at this point in the history
  • Loading branch information
muicoder committed Jan 18, 2017
2 parents 7c0d6f8 + 100bd51 commit 48dd04b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ EXPOSE 7099

WORKDIR /root

RUN apk update && apk add ca-certificates && \
apk add tzdata && \
RUN apk add --no-cache ca-certificates tzdata && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone

Expand Down
7 changes: 4 additions & 3 deletions node_modules/swagger-ui/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions scripts/build-worker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ CYCLONE_ROOT=$(dirname "${BASH_SOURCE}")/..
cd ${CYCLONE_ROOT}
docker run --rm \
-v `pwd`:/go/src/github.com/caicloud/cyclone \
-e GOPATH=/go:/go/src/github.com/caicloud/cyclone/vendor cargo.caicloud.io/caicloud/golang-gcc:1.6-alpine sh \
-c "cd /go/src/github.com/caicloud/cyclone/worker && go build cyclone-worker.go"
-w /go/src/github.com/caicloud/cyclone/worker \
-e GOPATH=/go:/go/src/github.com/caicloud/cyclone/vendor \
cargo.caicloud.io/caicloud/golang-gcc:1.6-alpine \
sh -c "go build cyclone-worker.go"

docker build -t cargo.caicloud.io/caicloud/cyclone-worker ./worker

Expand Down

0 comments on commit 48dd04b

Please sign in to comment.