We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7f785f commit d54e502Copy full SHA for d54e502
1 file changed
rootfs/bin/init-registry
@@ -9,7 +9,12 @@ mc alias set storage \
9
--path "${DRYCC_STORAGE_PATH_STYLE}"
10
11
mc ping storage -x
12
+if ! mc admin info storage > /dev/null 2>&1; then
13
+ sleep 9s
14
+else
15
+ mc ready storage
16
+fi
17
mc mb --ignore-existing storage/"${DRYCC_STORAGE_BUCKET}"
18
19
htpasswd -Bbn "${DRYCC_REGISTRY_USERNAME}" "${DRYCC_REGISTRY_PASSWORD}" > "${REGISTRY_AUTH_HTPASSWD_PATH}"
-echo "create ${REGISTRY_AUTH_HTPASSWD_PATH} success"
20
+echo "create ${REGISTRY_AUTH_HTPASSWD_PATH} success"
0 commit comments