Skip to content

Commit

Permalink
delete certs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevent-fei committed Dec 12, 2022
1 parent f8838b9 commit 3c22791
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions context/rootfs/scripts/init-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ cd $(dirname "$0")
# shellcheck disable=SC2034
REGISTRY_PORT=${1-5000}
VOLUME=${2-/var/lib/registry}
REGISTRY_DOMAIN=${3-sea.hub}

container=sealer-registry
rootfs=$(dirname "$(pwd)")
config="$rootfs/etc/registry_config.yml"
htpasswd="$rootfs/etc/registry_htpasswd"
certs_dir="$rootfs/certs"
image_dir="$rootfs/images"

mkdir -p "$VOLUME" || true
Expand Down Expand Up @@ -82,10 +80,7 @@ fi
regArgs="-d --restart=always \
--net=host \
--name $container \
-v $certs_dir:/certs \
-v $VOLUME:/var/lib/registry \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/$REGISTRY_DOMAIN.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/$REGISTRY_DOMAIN.key \
-e REGISTRY_HTTP_DEBUG_ADDR=0.0.0.0:5001 \
-e REGISTRY_HTTP_DEBUG_PROMETHEUS_ENABLED=true"

Expand Down

0 comments on commit 3c22791

Please sign in to comment.