Skip to content

Commit 162bdf6

Browse files
committed
chore(registry): change registry port to 5000
1 parent 34303e6 commit 162bdf6

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

charts/registry/templates/registry-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ spec:
7070
successThreshold: 1
7171
failureThreshold: 5
7272
ports:
73-
- containerPort: 5000
73+
- containerPort: 5000
7474
volumeMounts:
75-
- name: registry-storage
76-
mountPath: /var/lib/registry
75+
- name: registry-storage
76+
mountPath: /var/lib/registry
7777
securityContext:
7878
fsGroup: 1001
7979
runAsGroup: 1001

charts/registry/templates/registry-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
type: Opaque
1010
data:
1111
{{- if eq .Values.global.registryLocation "on-cluster" }}
12-
host: {{ printf "drycc-registry.%s.svc.%s:80" .Release.Namespace .Values.global.clusterDomain | b64enc }}
12+
host: {{ printf "drycc-registry.%s.svc.%s:5000" .Release.Namespace .Values.global.clusterDomain | b64enc }}
1313
secret: {{ randAlphaNum 32 | b64enc }}
1414
{{- else }}
1515
host: {{ .Values.host | b64enc }}

contrib/ci/test.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
set -eoxf pipefail
44

5-
s3Accesskey=drycc
6-
s3Secretkey=123456789
5+
BASE_DIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
6+
DRYCC_STORAGE_ACCESSKEY=f4c4281665bc11ee8e0400163e04a9cd
7+
DRYCC_STORAGE_SECRETKEY=f4c4281665bc11ee8e0400163e04a9cd
8+
79

810
STORAGE_JOB=$(podman run -d --entrypoint init-stack -p 8333:8333 \
9-
-e DRYCC_STORAGE_ACCESSKEY=$s3Accesskey \
10-
-e DRYCC_STORAGE_SECRETKEY=$s3Secretkey \
11-
"${DEV_REGISTRY}"/drycc/storage:canary weed server -dir=/data/hdd -s3)
11+
-v "${BASE_DIR}":/tmp/weed \
12+
-e DRYCC_STORAGE_ACCESSKEY="${DRYCC_STORAGE_ACCESSKEY}" \
13+
-e DRYCC_STORAGE_SECRETKEY="${DRYCC_STORAGE_SECRETKEY}" \
14+
"${DEV_REGISTRY}"/drycc/storage:canary /tmp/weed/start-s3.sh)
1215

1316
# wait for port
1417
STORAGE_IP=$(podman inspect --format "{{ .NetworkSettings.IPAddress }}" "${STORAGE_JOB}")
@@ -17,24 +20,24 @@ wait-for-port --host="${STORAGE_IP}" 8333
1720
echo -e "\\033[32m---> S3 service ${STORAGE_IP}:8333 ready...\\033[0m"
1821
podman logs "${STORAGE_JOB}"
1922

20-
JOB=$(podman run -d -p 5000:5000 \
23+
JOB=$(podman run -d \
2124
-e REGISTRY_HTTP_SECRET=drycc \
2225
-e DRYCC_REGISTRY_REDIRECT=false \
2326
-e DRYCC_REGISTRY_USERNAME=admin \
2427
-e DRYCC_REGISTRY_PASSWORD=admin \
2528
-e DRYCC_STORAGE_LOOKUP=path \
2629
-e DRYCC_STORAGE_BUCKET=registry \
2730
-e DRYCC_STORAGE_ENDPOINT="http://${STORAGE_IP}:8333" \
28-
-e DRYCC_STORAGE_ACCESSKEY=$s3Accesskey \
29-
-e DRYCC_STORAGE_SECRETKEY=$s3Secretkey \
31+
-e DRYCC_STORAGE_ACCESSKEY="${DRYCC_STORAGE_ACCESSKEY}" \
32+
-e DRYCC_STORAGE_SECRETKEY="${DRYCC_STORAGE_SECRETKEY}" \
3033
"$1")
3134

3235
# shellcheck disable=SC2317
3336
function clean_before_exit {
3437
# delay before exiting, so stdout/stderr flushes through the logging system
3538
podman kill "${JOB}"
3639
podman kill "${STORAGE_JOB}"
37-
podman rm "${JOB}" "${STORAGE_JOB}"
40+
podman rm -f "${JOB}" "${STORAGE_JOB}"
3841
}
3942
trap clean_before_exit EXIT
4043

0 commit comments

Comments
 (0)