Skip to content

ACC-119: allow docker image deployment - #34

Open
bourasom wants to merge 3 commits into
masterfrom
ACC-119
Open

ACC-119: allow docker image deployment#34
bourasom wants to merge 3 commits into
masterfrom
ACC-119

Conversation

@bourasom

Copy link
Copy Markdown
Member

No description provided.

@vsellier vsellier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invalidated as it needs more tests.

Their is also no apache configuration to expose the container. IMO at least a http / https and ldap protected / unprotected version should be need

Comment thread _functions.sh
env_var PRODUCT_BRANCH `expr "${PRODUCT_VERSION}" : '\([0-9]*\.[0-9]*\).*'`".x"
env_var PRODUCT_MAJOR_BRANCH `expr "${PRODUCT_VERSION}" : '\([0-9]*\).*'`".x"
configurable_env_var "INSTANCE_ID" ""
if [[ -v PRODUCT_VERSION ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -v option is not available on macos. Is it not possible to use a classical test with -z or -n ?

Why not using a test on PRODUCT_NAME == docker ?

Comment thread _functions.sh
fi
# docker image should have INSTANCE_KEY
if [ -n "${DEPLOYMENT_DOCKER_IMAGE}" ]; then
env_var "INSTANCE_KEY" "docker-${DEPLOYMENT_DOCKER_IMAGE}-${DOCKER_IMAGE_VERSION}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not lose the INSTANCE_ID parameter if we want to be able to deploy several time the same image

Comment thread _functions.sh
# Mandatory env vars. They need to be defined before launching the script
validate_env_var "PRODUCT_NAME"
validate_env_var "PRODUCT_VERSION"
configurable_env_var "PRODUCT_VERSION" ""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validate should be moved on the previous test to ensure it's defined

Comment thread _functions.sh
# Hack
do_configure_chat

fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looks weird

Comment thread _functions.sh
fi
fi
# docker image should have INSTANCE_KEY
if [ -n "${DEPLOYMENT_DOCKER_IMAGE}" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a plf deployment this variable is not set, the test will failed will failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants