chore: Initial import of FLEX training material

This commit is contained in:
Alexander Kobjolke 2024-11-07 21:02:53 +01:00
parent c01246d4f7
commit 12235acc42
1020 changed files with 53940 additions and 0 deletions

View file

@ -0,0 +1,5 @@
FROM postgres:16.2
ENV POSTGRES_USER=flexinale \
POSTGRES_PASSWORD=flexinale \
PGDATA=/var/lib/postgresql/data/pgdata
COPY ./flexinale-postgres-init.sql /docker-entrypoint-initdb.d/

View file

@ -0,0 +1,17 @@
CREATE DATABASE "monolith";
GRANT ALL PRIVILEGES ON DATABASE monolith TO flexinale;
CREATE DATABASE "modulith-1";
GRANT ALL PRIVILEGES ON DATABASE "modulith-1" TO flexinale;
CREATE DATABASE "modulith-2";
GRANT ALL PRIVILEGES ON DATABASE "modulith-2" TO flexinale;
CREATE DATABASE "distributed-backoffice";
GRANT ALL PRIVILEGES ON DATABASE "distributed-backoffice" TO flexinale;
CREATE DATABASE "distributed-besucherportal";
GRANT ALL PRIVILEGES ON DATABASE "distributed-besucherportal" TO flexinale;
CREATE DATABASE "distributed-ticketing";
GRANT ALL PRIVILEGES ON DATABASE "distributed-ticketing" TO flexinale;
CREATE DATABASE "distributed-test";
GRANT ALL PRIVILEGES ON DATABASE "distributed-test" TO flexinale;

View file

@ -0,0 +1,10 @@
version: '2.2'
services:
flexinale-postgres:
image: de.accso/flexinale-postgres:2024.3.0
ports:
- "5432:5432"
networks:
- flexinale-network

View file

@ -0,0 +1 @@
podman build --tag de.accso/flexinale-postgres:2024.3.0 -f Dockerfile .

View file

@ -0,0 +1,5 @@
podman run ^
--interactive --tty --detach ^
-p 127.0.0.1:5432:5432 ^
--name flexinale-postgres ^
de.accso/flexinale-postgres:2024.3.0