Skip to content

Commit b2d13b7

Browse files
committed
Fix registry local deploy
1 parent 20569c7 commit b2d13b7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

scripts/create-s3-bucket.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ IFS=$'\n\t'
1111
docker run \
1212
-v /etc/ssl/certs:/etc/ssl/certs:ro \
1313
--network host \
14-
--env MC_HOST_local="https://${S3_ACCESS_KEY}:${S3_SECRET_KEY}@${S3_ENDPOINT}" \
15-
minio/mc:RELEASE.2023-06-19T19-31-19Z mb --ignore-existing local/"$1"
14+
--env MC_HOST_local="https://${S3_ACCESS_KEY}:${S3_SECRET_KEY}@${STORAGE_DOMAIN}" \
15+
minio/mc:RELEASE.2023-06-19T19-31-19Z mb --insecure --ignore-existing local/"$1"

services/registry/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endef
2424
.PHONY: up-local
2525
up-local: .init .env ${TEMP_COMPOSE}-local ## Deploys registry stack
2626
@$(create-s3-bucket)
27-
docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE} ${STACK_NAME}
27+
docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-local ${STACK_NAME}
2828

2929
.PHONY: up-letsencrypt-http ## Deploys registry stack using let's encrypt http challenge
3030
up-letsencrypt-http: .init .env ${TEMP_COMPOSE}-letsencrypt-http
@@ -48,8 +48,6 @@ up-master: up-dalco
4848
.PHONY: up-public ## Deploys registry on public cluster
4949
up-public: up-dalco
5050

51-
.PHONY: up-local ## Deploys registry on local deployment
52-
up-local: up
5351

5452
# Helpers -------------------------------------------------
5553

services/registry/template.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ REGISTRY_S3_ACCESS_KEY=${REGISTRY_S3_ACCESS_KEY}
1010
REGISTRY_S3_SECRET_KEY=${REGISTRY_S3_SECRET_KEY}
1111
S3_ACCESS_KEY=${REGISTRY_S3_ACCESS_KEY}
1212
S3_SECRET_KEY=${REGISTRY_S3_SECRET_KEY}
13-
S3_ENDPOINT=${S3_ENDPOINT}
13+
STORAGE_DOMAIN=${STORAGE_DOMAIN}
1414
S3_BUCKET=${REGISTRY_DOMAIN}
1515
REGISTRY_S3_BUCKET=${REGISTRY_S3_BUCKET}
1616
REGISTRY_S3_ENDPOINT=${REGISTRY_S3_ENDPOINT}

0 commit comments

Comments
 (0)