Bake docker-ce into the base image

Speeds up CI runs by quite a bit
This commit is contained in:
yuvipanda
2018-07-11 10:02:07 -07:00
parent 20f3116e58
commit 4d9d9c2d99
4 changed files with 54 additions and 24 deletions

15
.circleci/base-image/build.bash Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
# Very simple script to build and push images
# Should be replaced by chartpress or similar at some point
# Uses google container image builder for simplicity
IMAGE="jupyterhub/tljh-circleci-base-image"
TAG=$(git log -n1 --pretty="%h" .)
IMAGE_SPEC="${IMAGE}:${TAG}"
echo "Building and pushing ${IMAGE_SPEC}"
docker build -t ${IMAGE_SPEC} .
docker push ${IMAGE_SPEC}
echo "Built and pushed ${IMAGE_SPEC}"