blob: 454a6817264b1c46ae44115b433fef37d0041004 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Build new image
As an example we build a new version of the `leap:jessie` base image:
REGISTRY="0xacab.org:4567"
REGISTRY_PATH="${REGISTRY}/leap/gitlab-buildpackage"
IMAGE='jessie_amd64'
cd $IMAGE
docker ${DOCKER_OPTS} build ${DOCKER_BUILD_OPTS} -t ${REGISTRY_PATH}:${IMAGE} .
## Package upgrades
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:
export DOCKER_BUILD_OPTS="--no-cache"
## Push images
docker login --username=varac 0xacab.org:4567
docker ${DOCKER_OPTS} push ${REGISTRY_PATH}:${IMAGE}
|