Skip to content

Instantly share code, notes, and snippets.

@djzager
Last active September 12, 2017 15:32
Show Gist options
  • Save djzager/cc0bfcf17795003451bda233fb2d6e48 to your computer and use it in GitHub Desktop.
Save djzager/cc0bfcf17795003451bda233fb2d6e48 to your computer and use it in GitHub Desktop.
Building origin images

The process for building openshift/origin images is not as straightforward as one might expect. I may have gone down the wrong path completely but this method allowed me to build openshift/origin images for my use.

Cleanup from Previous Builds

If you have built images before, don't forget to cleanup:

$ make clean

Build RPMS

The first thing you have to do is build the rpms:

$ OS_BUILD_ENV_PRESERVE=_output/local/bin:_output/local/releases hack/env make build-rpms

Build Base Images

Second, build the base images:

$ hack/build-base-images.sh

Build Images

Last, build the images:

$ hack/build-images.sh

Tag them and push them to yours if you wish:

$ for image in $(docker images | grep '^openshift/origin' | awk '{print $1":"$2}'); do
docker tag "${image}" "docker.io/${image/openshift/djzager}"
docker push "docker.io/${image/openshift/djzager}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment