From 43b231e26b061bcc2ad2ba590a7c52ce3ac050a6 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 8 Mar 2017 13:48:35 +0100 Subject: Rename base images, push to 0xacab registry --- docker/README.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'docker/README.md') diff --git a/docker/README.md b/docker/README.md index 64b0cd1..454a681 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,25 +1,24 @@ # Build new image -As an example we build a new version (2.2.0) of the leapcode/jessie base image: +As an example we build a new version of the `leap:jessie` base image: - IMAGE='jessie' + REGISTRY="0xacab.org:4567" + REGISTRY_PATH="${REGISTRY}/leap/gitlab-buildpackage" + IMAGE='jessie_amd64' -## Find latest version - -I.e. look at the tags at https://hub.docker.com/r/leapcode/ruby/tags/ or query tags with: + cd $IMAGE + docker ${DOCKER_OPTS} build ${DOCKER_BUILD_OPTS} -t ${REGISTRY_PATH}:${IMAGE} . - curl -s https://registry.hub.docker.com/v2/repositories/leapcode/$IMAGE/tags/ |jq '."results"[]["name"]' +## Package upgrades -## Build new version +Sometimes you need to upgrade packages in the base image, +so this is not done on every build, i.e. when security updates +are available. +Disable caching and build new images with: - VERSION='1.5' - cd $IMAGE - docker build --no-cache -t leapcode/${IMAGE}:${VERSION} . + export DOCKER_BUILD_OPTS="--no-cache" ## Push images - docker logout - docker login -u leapcode - docker tag leapcode/${IMAGE}:${VERSION} leapcode/${IMAGE}:latest - docker push leapcode/${IMAGE}:latest - docker push leapcode/${IMAGE}:${VERSION} + docker login --username=varac 0xacab.org:4567 + docker ${DOCKER_OPTS} push ${REGISTRY_PATH}:${IMAGE} -- cgit v1.2.3