Due to the nature of the needs of this system it is not possible to just up and run docker-compose up
, some manual setup will be required.
- Add
<real host ip> cwms-data.test auth.test traefik.test
to the /etc/hosts file (Warning: 127.0.0.1 doesn't work!) - Install java. It is needed for the keytool command used in the next step.
- In the compose_files/pki directory run
./genall.sh
. This will create the initial PKI infrastructure - Create an environment file with appropriate references for your environment and testing.
run docker-compose --env-file <env file> up -d --force-recreate
on newer docker you may need to use 'docker compose' (without the dash -).
docker compose --env-file ../cda.env up --force-recreate
The first time this is run it will take ~40 minutes while Oracle Initializes and the schema is installed. Subsequent runs will be faster. The force recreate is required as we are dumping our local rootca into the java keystore of the data-api image so the query to keycloak can be verified correctly.
- A CWMS Oracle Database
- An instance of the CWMS Data API
- An instance of keycloak that can be used to login. (The swagger-ui will allow entering a username and password and set the appropriate variables.)
The following users and permissions are available:
User | Password | Office | Permissions |
---|---|---|---|
l2hectest.1234567890 | l2hectest | SPK | General User |
l1hectest | l1hectest | SPL | No permissions |
m5hectest | m5hectest | SWT | General User |
service | host-port | container-port | description | test urls |
---|---|---|---|---|
traefik | 8444 | 8443 | entry point - web traffic | https://cwms-data.test:8444/cwms-data/ https://auth.test:8444/auth/realms/cwms https://auth.test:8444/auth/realms/cwms/.well-known/openid-configuration |
db | 1521 | oracle database | ||
api | 7000 | tomcat CWMS Data API | ||
auth | 8080 | authentication-token service (keycloak) | ||
db_install | connects to db and installs CWMS schema | |||
db_webuser_ permissions | connects to db and sets permissions |