Skip to content
Snippets Groups Projects
Commit ebdb617c authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-822: parameterize timescaledb source image

parent b65057ba
No related branches found
No related tags found
1 merge request!417Resolve L2SS-822 "Cache archiver ts docker image"
...@@ -15,6 +15,7 @@ TANGO_POGO_VERSION=9.6.34 ...@@ -15,6 +15,7 @@ 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_TIMESCALEDB_VERSION=latest-pg12
PG_SUPERUSER_PASSWORD=password PG_SUPERUSER_PASSWORD=password
PG_HDB_PASSWORD=hdbpp PG_HDB_PASSWORD=hdbpp
MYSQL_ROOT_PASSWORD=secret MYSQL_ROOT_PASSWORD=secret
......
...@@ -8,6 +8,8 @@ services: ...@@ -8,6 +8,8 @@ services:
image: timescaledb image: timescaledb
build: build:
context: timescaledb context: timescaledb
args:
SOURCE_IMAGE: timescale/timescaledb:${PG_TIMESCALEDB_VERSION}
container_name: ${CONTAINER_NAME_PREFIX}archiver-timescale container_name: ${CONTAINER_NAME_PREFIX}archiver-timescale
networks: networks:
- control - control
......
FROM timescale/timescaledb:latest-pg12 ARG SOURCE_IMAGE
FROM ${SOURCE_IMAGE}
# Set admin role to perform DB creation # Set admin role to perform DB creation
COPY resources/01_admin.sh docker-entrypoint-initdb.d/002_admin.sh COPY resources/01_admin.sh docker-entrypoint-initdb.d/002_admin.sh
......
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