servicecatalog / oscm-dockerbuild

OSCM docker build files.
Apache License 2.0
3 stars 10 forks source link

Improve installation with proxy #311

Closed GoebelL closed 3 years ago

GoebelL commented 3 years ago

Summary Improve installation with proxy

Details

  1. The initDb container needs to reload the var.env settings in order to set correct base URLs in the database
  2. The overwrite flags in the initDb compose template need to be set true and the deployer2 command needs to set it to false (in order to ensure the overwrite protection for unused settings)
  3. The repository readme needs to be updated for the added PROXY parameter

Acceptance criteria As above

Additional context

cworf91 commented 3 years ago

The variable HOST_FQDN is now set in the .env file. The var.env file contains now OSCM_CORE_URL, OSCM_APP_URL, OSCM_IDENTITY_URL, OSCM_BIRT_URL which are configsettings and written into the database. These settings contain the HOST_FQDN variable from the .env file. When the deployer is called, this variable does not have to be replaced. The deployer reads the .env file and therefore replaces the variable automatically. If a manual update installation should be carried out, then the .env file should activated the automatic export of variables: set -a source .env set +a

In the Operator’s Guide p. 22 Step 3 it has to be added so it looks like:

  1. Start the container for initializing the databases, then stop and delete it again: set -a source .env set + docker-compose -f docker-compose-initdb.yml up -d oscm-db docker-compose -f docker-compose-initdb.yml up oscm-initdb-core docker-compose -f docker-compose-initdb.yml up oscm-initdb-jms docker-compose -f docker-compose-initdb.yml up oscm-initdb-app