feature(helpers): allow specifying tag

This commit is contained in:
2021-07-26 01:20:38 -06:00
parent a3c6656764
commit bc2a34ddd8
3 changed files with 28 additions and 5 deletions
+16
View File
@@ -6,6 +6,22 @@
###
#
# Container options
#
# Specify a particular tag to 'version pin' the ab-nginx container.
#TAG=latest
# Specify a runtime UID and GID for the container user. This is useful to
# ensure the container can read and/or write to locations on the host or
# has access to files shared between members of a container stack.
# REQUIRED: NO
# DEFAULT: UID=8080, GID=8080
# VALID OPTIONS: any permissible and available UID/GID value
#UID=8080
#GID=8080
#
# Network options
#
+3 -3
View File
@@ -231,7 +231,7 @@ if [ -z "$SSL_CERT" ]; then
--network=${NETWORK} \
-p ${HTTP_PORT}:80 \
--restart unless-stopped \
docker.asifbacchus.dev/nginx/ab-nginx:latest
docker.asifbacchus.dev/nginx/ab-nginx:${TAG:-latest}
fi
# run with TLS
else
@@ -251,7 +251,7 @@ else
-v "$SSL_KEY":/certs/privkey.pem:ro \
-v "$SSL_CHAIN":/certs/chain.pem:ro \
-p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \
docker.asifbacchus.dev/nginx/ab-nginx:latest /bin/sh
docker.asifbacchus.dev/nginx/ab-nginx:${TAG:-latest} /bin/sh
else
if [ "$TLS13_ONLY" = 'FALSE' ]; then
printf "%s\nRunning NGINX on %s (TLS 1.2)...%s\n" "$cyan" "$container_name" "$norm"
@@ -269,7 +269,7 @@ else
-v "$SSL_CHAIN":/certs/chain.pem:ro \
-p ${HTTP_PORT}:80 -p ${HTTPS_PORT}:443 \
--restart unless-stopped \
docker.asifbacchus.dev/nginx/ab-nginx:latest
docker.asifbacchus.dev/nginx/ab-nginx:${TAG:-latest}
fi
fi