Working.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
|
||||
# Required environment variables
|
||||
check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG" "VOLUME_NAME" "HOST_NAME" "HOST_PORT"
|
||||
check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG" "VOLUME_NAME" "HOST_NAME"
|
||||
|
||||
# Create volume if it doesn't exist
|
||||
if ! docker volume inspect "${VOLUME_NAME}" &>/dev/null; then
|
||||
@ -32,4 +32,12 @@ _remove_container $CONTAINER_NAME || die "Failed to remove container ${CONTAINER
|
||||
bash ./start.sh || die "Failed to start container ${CONTAINER_NAME}"
|
||||
|
||||
echo "Installation of ${CONTAINER_NAME} complete"
|
||||
echo "You can access the service at http://${HOST_NAME}:${HOST_PORT}"
|
||||
|
||||
|
||||
# determine port.
|
||||
command -v jq &> /dev/null || die "jq could not be found, please install it"
|
||||
[ -f "${CONFIG_PATH}/sos_config.json" ] || die "sos_config.json does not exist"
|
||||
PORT=$(jq -r '.port' "${CONFIG_PATH}/sos_config.json")
|
||||
|
||||
|
||||
echo "You can access the service at http://${HOST_NAME}:${PORT}"
|
||||
|
Reference in New Issue
Block a user