mirror of
https://github.com/quay/quay.git
synced 2025-04-18 10:44:06 +03:00
scripts: clean up old container in frontend build script (PROJQUAY-0000) (#3777)
* clean up old container in frontend build script * ensure a non-zero exit code for docker rm
This commit is contained in:
parent
cce4ca4fe7
commit
70ea703079
@ -7,10 +7,10 @@
|
||||
# 3. Change the IMAGE var at the top of this script to the value from build_deploy.sh
|
||||
# 3. Run the script
|
||||
# 4. Run the container podman run -p 8000:8000 localhost/edge:5316bd7
|
||||
# 5. Open the app in your browser at http://localhost:8000/apps/edge
|
||||
# 5. Open the app in your browser at http://localhost:8000/apps/edge
|
||||
#
|
||||
# Note: You can find the image name and tag by looking at the output of the script
|
||||
# or by running `podman images`. Also, fill in the app name in the URL with the
|
||||
# or by running `podman images`. Also, fill in the app name in the URL with the
|
||||
# app you are testing
|
||||
|
||||
# --------------------------------------------
|
||||
@ -47,6 +47,9 @@ export NPM_BUILD_SCRIPT="build-plugin"
|
||||
mv .dockerignore .dockerignore.bak
|
||||
mv Dockerfile Dockerfile.bak
|
||||
|
||||
# Remove old container in case of previous run failing to cleanup
|
||||
docker rm -f $CONTAINER_NAME || true
|
||||
|
||||
# NOTE: Make sure this volume is mounted 'ro', otherwise Jenkins cannot clean up the
|
||||
# workspace due to file permission errors; the Z is used for SELinux workarounds
|
||||
# -e NODE_BUILD_VERSION can be used to specify a version other than 12
|
||||
@ -86,7 +89,7 @@ docker save ${IMAGE}:${IMAGE_TAG} -o ${BASE_IMG}
|
||||
# skopeo copy --dest-creds "${BACKUP_USER}:${BACKUP_TOKEN}" \
|
||||
# "docker-archive:${BASE_IMG}" \
|
||||
# "docker://${BACKUP_IMAGE}:latest"
|
||||
#
|
||||
#
|
||||
# skopeo copy --dest-creds "${BACKUP_USER}:${BACKUP_TOKEN}" \
|
||||
# "docker-archive:${BASE_IMG}" \
|
||||
# "docker://${BACKUP_IMAGE}:${IMAGE_TAG}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user