Skip to content
Snippets Groups Projects
Commit 8a516999 authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'L2SS-475-docker-sensitive-data' into 'master'

Resolve L2SS-475 "Docker sensitive data"

Closes L2SS-475

See merge request !187
parents b44aa656 22054afd
No related branches found
No related tags found
1 merge request!187Resolve L2SS-475 "Docker sensitive data"
...@@ -13,3 +13,8 @@ TANGO_JAVA_VERSION=9.3.6 ...@@ -13,3 +13,8 @@ TANGO_JAVA_VERSION=9.3.6
TANGO_POGO_VERSION=9.6.34 TANGO_POGO_VERSION=9.6.34
TANGO_REST_VERSION=1.14.6 TANGO_REST_VERSION=1.14.6
TANGO_STARTER_VERSION=2021-05-28 TANGO_STARTER_VERSION=2021-05-28
PG_SUPERUSER_PASSWORD=password
PG_HDB_PASSWORD=hdbpp
MYSQL_ROOT_PASSWORD=secret
MYSQL_PASSWORD=tango
...@@ -13,7 +13,8 @@ services: ...@@ -13,7 +13,8 @@ services:
depends_on: depends_on:
- databaseds - databaseds
environment: environment:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=${PG_SUPERUSER_PASSWORD}
- PG_HDB_PASSWORD=${PG_HDB_PASSWORD}
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
logging: logging:
driver: syslog driver: syslog
......
...@@ -11,11 +11,11 @@ services: ...@@ -11,11 +11,11 @@ services:
depends_on: depends_on:
- databaseds - databaseds
environment: environment:
- MYSQL_ROOT_PASSWORD=secret - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=hdbpp - MYSQL_DATABASE=hdbpp
- MYSQL_HOST=archiver-maria-db:3306 - MYSQL_HOST=archiver-maria-db:3306
- MYSQL_USER=tango - MYSQL_USER=tango
- MYSQL_PASSWORD=tango - MYSQL_PASSWORD=${MYSQL_PASSWORD}
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
logging: logging:
driver: syslog driver: syslog
......
FROM timescale/timescaledb:latest-pg12 FROM timescale/timescaledb:latest-pg12
COPY resources/01_admin.sql docker-entrypoint-initdb.d/002_admin.sql COPY resources/01_admin.sh docker-entrypoint-initdb.d/002_admin.sh
COPY resources/02_hdb_schema.sql docker-entrypoint-initdb.d/003_hdb_schema.sql COPY resources/02_hdb_schema.sql docker-entrypoint-initdb.d/003_hdb_schema.sql
COPY resources/03_hdb_roles.sql docker-entrypoint-initdb.d/004_hdb_roles.sql COPY resources/03_hdb_roles.sql docker-entrypoint-initdb.d/004_hdb_roles.sql
COPY resources/04_hdb_ext_aggregates.sql docker-entrypoint-initdb.d/005_hdb_ext_aggregates.sql COPY resources/04_hdb_ext_aggregates.sql docker-entrypoint-initdb.d/005_hdb_ext_aggregates.sql
......
CREATE ROLE hdb_admin WITH LOGIN PASSWORD 'hdbpp'; #!/bin/bash
psql << EOF
CREATE ROLE hdb_admin WITH LOGIN PASSWORD '${PG_HDB_PASSWORD}';
ALTER USER hdb_admin CREATEDB; ALTER USER hdb_admin CREATEDB;
ALTER USER hdb_admin CREATEROLE; ALTER USER hdb_admin CREATEROLE;
ALTER USER hdb_admin SUPERUSER; ALTER USER hdb_admin SUPERUSER;
EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment