File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,10 @@ FEATURE_USER_INITIALIZE: true
197
197
SUPER_USERS:
198
198
- microshift
199
199
EOF
200
+ # Enable public repository creation on push
201
+ # See https://docs.redhat.com/en/documentation/red_hat_quay/3/html-single/configure_red_hat_quay/index#config-fields-misc
202
+ echo " CREATE_PRIVATE_REPO_ON_PUSH: false" >> " ${QUAY_CONFIG_DIR} /config.yaml"
203
+
200
204
# Enable Quay dual-stack server support if the local host supports IPv6
201
205
local podman_network=" "
202
206
if ping -6 -c 1 ::1 & > /dev/null ; then
221
225
# See https://docs.projectquay.io/deploy_quay.html#deploy-quay-registry
222
226
echo " Running Quay container"
223
227
sudo podman run -d --name=microshift-quay \
224
- " ${podman_network} " \
228
+ ${podman_network} \
225
229
-p " ${MIRROR_REGISTRY_PORT} :8080" \
226
230
-p " [::]:${MIRROR_REGISTRY_PORT} :8080" \
227
231
-v " ${QUAY_CONFIG_DIR} :/conf/stack:Z" \
253
257
}
254
258
255
259
finalize_registry () {
256
- # Ensure that all the created repositories are public
257
- sudo podman exec -it microshift-postgres \
258
- psql -d quay -U quayuser -c ' UPDATE public.repository SET visibility_id = 1' > /dev/null
259
260
# Ensure that permissions are open for the current user on the mirror registry
260
261
# directories and files. This is necessary to avoid 'find' command errors.
261
262
sudo chgrp -R " $( id -gn) " " ${MIRROR_REGISTRY_DIR} "
You can’t perform that action at this time.
0 commit comments