Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save v1k0d3n/814170e4fc07638deb2af24271fa606c to your computer and use it in GitHub Desktop.
Save v1k0d3n/814170e4fc07638deb2af24271fa606c to your computer and use it in GitHub Desktop.
  • Combine the pull secrents from Quay and the one from the local registry
jq -s '.[0] * .[1]' pull-secret.json local-auth.json  > pull-secret-2.json
  • Mirror relrease
export AIRGAP_SECRET_JSON='pull-secret-2.json'
export OCP_SUBRELEASE=4.3.12-x86_64
export AIRGAP_REG='registry.example.com:5000'

./oc adm release mirror -a ${AIRGAP_SECRET_JSON} --insecure=true \
--from=quay.io/openshift-release-dev/ocp-release:${OCP_SUBRELEASE} \
--to-release-image=${AIRGAP_REG}/ocp4/ocp-release:${OCP_SUBRELEASE} \
--to=${AIRGAP_REG}/ocp4/ocp-release
export POCDIR=./ocp4poc

echo "Creating a target directory for the installer configuration"
mkdir ${POCDIR}
cp ./install-config.yaml ${POCDIR}
echo "Generating ignition files"
./openshift-install create ignition-configs --dir=${POCDIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment