Commit 0a82b75f by Torkel Ödegaard

Adding caching of buildcontainer

parent 5b563e38
......@@ -7,6 +7,11 @@ machine:
REPO_PATH: "${ORG_PATH}/grafana"
dependencies:
cache_directories:
- "~/docker"
pre:
./docker/buildcontainer/build_circle.sh
override:
- rm -rf ${GOPATH}/src/${REPO_PATH}
- mkdir -p ${GOPATH}/src/${ORG_PATH}
......@@ -25,4 +30,4 @@ deployment:
branch: develop
owner: grafana
commands:
- ./docker/buildcontainer/build_circle.sh
- ./docker/buildcontainer/run_circle.sh
#!/bin/bash
docker kill gfbuild
docker rm gfbuild
docker info && docker version
mkdir -p ~/docker
# cache some Docker images to make builds faster
if [[ -e ~/docker/centos.tar ]]; then
docker load -i ~/docker/centos.tar;
else
docker build --tag "grafana/buildcontainer" docker/buildcontainer
fi
docker build --tag "grafana/buildcontainer" docker/buildcontainer
docker run -i -t \
-v /home/ubuntu/.go_workspace:/go \
--name gfbuild grafana/buildcontainer
#!/bin/bash
docker run -i -t \
-v /home/ubuntu/.go_workspace:/go \
--name gfbuild grafana/buildcontainer
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment