File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ FROM_TAG="${FROM_TAG:-latest}"
3535
3636if [ " ${CONTAINER_FILE: +x} " ]
3737then
38+ IMAGE_TAG=" ephemeral-build"
3839 " ${CONTAINER_RUNTIME} " build --file " ${BASEPATH} /assets/${CONTAINER_FILE} " --build-arg FROM_TAG=" ${FROM_TAG} " --tag ghcr.io/pulp/pulp:" ${IMAGE_TAG} " .
3940fi
4041
41- " ${CONTAINER_RUNTIME} " run ${RM: +--rm} --detach --name " pulp-ephemeral" --volume " ${BASEPATH} /settings:/etc/pulp" --publish " 8080:80" " ghcr.io/pulp/pulp:${IMAGE_TAG} "
42+ " ${CONTAINER_RUNTIME} " run ${RM: +--rm} --env S6_KEEP_ENV=1 ${PULP_API_ROOT : +--env PULP_API_ROOT} -- detach --name " pulp-ephemeral" --volume " ${BASEPATH} /settings:/etc/pulp" --publish " 8080:80" " ghcr.io/pulp/pulp:${IMAGE_TAG} "
4243
4344# shellcheck disable=SC2064
4445trap " ${CONTAINER_RUNTIME} stop pulp-ephemeral" EXIT
5859 fi
5960
6061 sleep 3
61- if curl --fail http://localhost:8080/pulp/api/v3/status/ > /dev/null 2>&1
62+ if curl --fail " http://localhost:8080${PULP_API_ROOT :- / pulp/ } api/v3/status/" > /dev/null 2>&1
6263 then
6364 echo " SUCCESS."
6465 break
6768done
6869
6970# show pulpcore/plugin versions we're using
70- curl -s http://localhost:8080/pulp/api/v3/status/ | jq ' .versions|map({key: .component, value: .version})|from_entries'
71+ curl -s " http://localhost:8080${PULP_API_ROOT :- / pulp/ } api/v3/status/" | jq ' .versions|map({key: .component, value: .version})|from_entries'
7172
7273# Set admin password
7374" ${CONTAINER_RUNTIME} " exec " pulp-ephemeral" pulpcore-manager reset-admin-password --password password
You can’t perform that action at this time.
0 commit comments