Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Use docker 1.10.0 and cleanup build image
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Davis committed Apr 13, 2017
1 parent a29ae39 commit c86ae6c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
17 changes: 9 additions & 8 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
machine:
environment:
GOPATH: $HOME/.go_workspace
REPO: ${GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
DOCKER_VERSION: 1.9.1
DOCKER_MACHINE_VERSION: 0.6.0
REPO: ${GOPATH}/src/github.com/hyperledger/burrow
GO15VENDOREXPERIMENT: 1
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
post:
- git config --global user.email "[email protected]"
- git config --global user.name "Billings the Bot"
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME} ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/.
- rm -rf ${GOPATH%%:*}/src/github.com/hyperledger
- mkdir -p ${GOPATH%%:*}/src/github.com/hyperledger
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME} ${GOPATH%%:*}/src/github.com/hyperledger/.

dependencies:
override:
- sudo curl -L -o /usr/bin/docker http://s3-external-1.amazonaws.com/circle-downloads/docker-$DOCKER_VERSION-circleci; sudo chmod 0775 /usr/bin/docker; sudo usermod -a -G docker $USER; true
- sudo service docker start
- sudo apt-get update && sudo apt-get install -y libgmp3-dev
- sudo apt-get install jq curl && go get github.com/Masterminds/glide

Expand Down Expand Up @@ -70,4 +71,4 @@ deployment:
# once the commit is tagged the docker image for this version tag is
# considered immutable.
- tests/build_tool.sh
- docker push quay.io/monax/db
- docker push quay.io/monax/db
7 changes: 2 additions & 5 deletions tests/build_tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,5 @@ fi
rm $REPO/target/docker/burrow.dockerartefact
rm $REPO/target/docker/burrow-client.dockerartefact

# CircleCI seems to have an issues removing this build, in any case it is not necessary on CI
if [ ! "$CI" ]
then
docker rmi -f $IMAGE:build
fi
# Remove build image so we don't push it when we push all tags
docker rmi -f $IMAGE:build

0 comments on commit c86ae6c

Please sign in to comment.