Skip to content

Commit

Permalink
define REGISTRY_PORT when not using dns
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Oct 14, 2024
1 parent 1d5a914 commit 821e7dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/04_disconnected_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ mkdir -p /opt/registry/certs
openssl s_client -showcerts -connect $REGISTRY_NAME:$REGISTRY_PORT </dev/null 2>/dev/null|openssl x509 -outform PEM > /opt/registry/certs/domain.crt
cp /opt/registry/certs/domain.crt /etc/pki/ca-trust/source/anchors
update-ca-trust extract
{% elif dns %}
REGISTRY_NAME=registry.{{ cluster }}.{{ domain }}
REGISTRY_PORT={{ 8443 if disconnected_quay else 5000 }}
{% else %}
REGISTRY_NAME=$(echo $IP | sed 's/\./-/g' | sed 's/:/-/g').sslip.io
REGISTRY_NAME={{ "registry.%s.%s" % (cluster, domain) if dns else "$(echo $IP | sed 's/\./-/g' | sed 's/:/-/g').sslip.io" }}
REGISTRY_PORT={{ 8443 if disconnected_quay else 5000 }}
{% endif %}

export OPENSHIFT_RELEASE_IMAGE=$(openshift-install version | grep 'release image' | awk -F ' ' '{print $3}')
Expand Down

0 comments on commit 821e7dd

Please sign in to comment.