Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ file("ports.env").withInputStream {
environmentMap.putAll ports
}

file("versions.env").withInputStream {
versionsFile ->

Properties versions = new Properties()

versions.load(versionsFile)

environmentMap.putAll versions
}

file('.env').withOutputStream {
BufferedOutputStream envFileOutputStream ->

Expand Down
4 changes: 3 additions & 1 deletion compose-recipes/db2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM icr.io/db2_community/db2:11.5.9.0
ARG DB2_VERSION=11.5.9.0

FROM icr.io/db2_community/db2:${DB2_VERSION}

RUN mkdir /var/custom
RUN touch /startup_log.txt
Expand Down
5 changes: 4 additions & 1 deletion compose-recipes/db2/service.db2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ services:
volumes:
- db2:/container-data/db2
database:
build: ./compose-recipes/db2
build:
args:
DB2_VERSION: ${DB2_VERSION}
context: ./compose-recipes/db2
container_name: ${NAMESPACE}-database-db2
environment:
- COMPOSER_DATABASE_NAME=${DATABASE_NAME}
Expand Down
4 changes: 3 additions & 1 deletion compose-recipes/mariadb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM mariadb:10.6.22-jammy
ARG MARIADB_VERSION=10.6.22-jammy

FROM mariadb:${MARIADB_VERSION}

RUN touch /startup_log.txt
RUN chown mysql:mysql /startup_log.txt
Expand Down
5 changes: 4 additions & 1 deletion compose-recipes/mariadb/service.mariadb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ services:
volumes:
- mariadb:/container-data/mariadb
database:
build: ./compose-recipes/mariadb
build:
args:
MARIADB_VERSION: ${MARIADB_VERSION}
context: ./compose-recipes/mariadb
container_name: ${NAMESPACE}-database-mariadb
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1
Expand Down
4 changes: 3 additions & 1 deletion compose-recipes/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM mysql:8.4.5-oracle
ARG MYSQL_VERSION=8.4.5-oracle

FROM mysql:${MYSQL_VERSION}

RUN touch /startup_log.txt
RUN chown mysql:mysql /startup_log.txt
Expand Down
5 changes: 4 additions & 1 deletion compose-recipes/mysql/service.mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ services:
volumes:
- mysql:/container-data/mysql
database:
build: ./compose-recipes/mysql
build:
args:
MYSQL_VERSION: ${MYSQL_VERSION}
context: ./compose-recipes/mysql
container_name: ${NAMESPACE}-database-mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
Expand Down
4 changes: 3 additions & 1 deletion compose-recipes/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM postgres:16.3
ARG POSTGRES_VERSION=16.3

FROM postgres:${POSTGRES_VERSION}

# Create a log file and give ownership to postgres

Expand Down
5 changes: 4 additions & 1 deletion compose-recipes/postgres/service.postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ services:
volumes:
- postgres:/container-data/postgres
database:
build: ./compose-recipes/postgres
build:
args:
POSTGRES_VERSION: ${POSTGRES_VERSION}
context: ./compose-recipes/postgres
container_name: ${NAMESPACE}-database-postgres
deploy:
resources:
Expand Down
4 changes: 3 additions & 1 deletion compose-recipes/sqlserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM mcr.microsoft.com/mssql/server:2022-CU21-ubuntu-22.04
ARG SQLSERVER_VERSION=2022-CU21-ubuntu-22.04

FROM mcr.microsoft.com/mssql/server:${SQLSERVER_VERSION}

USER root

Expand Down
5 changes: 4 additions & 1 deletion compose-recipes/sqlserver/service.sqlserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ services:
volumes:
- sqlserver:/container-data/sqlserver
database:
build: ./compose-recipes/sqlserver
build:
args:
SQLSERVER_VERSION: ${SQLSERVER_VERSION}
context: ./compose-recipes/sqlserver
container_name: ${NAMESPACE}-database-sqlserver
deploy:
resources:
Expand Down
5 changes: 5 additions & 0 deletions versions.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DB2_VERSION=11.5.9.0
MARIADB_VERSION=10.6.22-jammy
MYSQL_VERSION=8.4.5-oracle
POSTGRES_VERSION=16.3
SQLSERVER_VERSION=2022-CU21-ubuntu-22.04