- Introduced a new Containerfile to build a MariaDB image with direct LDAP PAM support. - Implemented a custom PAM module (`pam_ldap_direct.so`) built from the PADL source to avoid dependencies on `libpam-ldap` and `nslcd`. - Updated the entrypoint script to dynamically generate the PAM configuration file (`/etc/pam_ldap.conf`) based on environment variables. - Added a README.md to document the image usage, configuration, and build process. - Created a test suite to validate the image build and entrypoint behavior, ensuring proper handling of environment variables and configuration generation. - Configured health checks and ensured the stock MariaDB entrypoint and lifecycle are preserved.
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: image-builder-database
|
|
|
|
services:
|
|
postgres:
|
|
image: containers.kritikos.io/system/postgres-extended:${PG_MAJOR:-18}
|
|
build:
|
|
context: postgres
|
|
dockerfile: Containerfile
|
|
args:
|
|
- PG_MAJOR=${PG_MAJOR:-18}
|
|
- POSTGIS_MAJOR=${POSTGIS_MAJOR:-3}
|
|
- VCHORD_VERSION=${VCHORD_VERSION:-1.1.1}
|
|
|
|
ldap2pg:
|
|
image: containers.kritikos.io/system/ldap2pg:${LDAP2PG_VERSION:-6.6.0}
|
|
build:
|
|
context: ldap2pg
|
|
dockerfile: Containerfile
|
|
args:
|
|
- ALPINE=${ALPINE_VERSION:-latest}
|
|
- GO_VERSION=${GO_VERSION:-1.26.3}
|
|
- LDAP2PG_VERSION=${LDAP2PG_VERSION:-6.6.0}
|
|
|
|
pgpool:
|
|
container_name: pgpool
|
|
image: containers.kritikos.io/system/pgpool:${PGPOOL_VERSION:-4.7.2}
|
|
build:
|
|
context: pgpool
|
|
dockerfile: Containerfile
|
|
args:
|
|
- ALPINE=${ALPINE_VERSION:-latest}
|
|
- PG_MAJOR=${PG_MAJOR:-18}
|
|
- PGPOOL_VERSION=${PGPOOL_VERSION:-4.7.2}
|
|
|
|
mariadb:
|
|
image: containers.kritikos.io/system/mariadb-extended:${MARIADB_VERSION:-13.0.2}
|
|
build:
|
|
context: mariadb
|
|
dockerfile: Containerfile
|
|
args:
|
|
- MARIADB_VERSION=${MARIADB_VERSION:-13.0.2}
|
|
|
|
ldap2mariadb:
|
|
container_name: ldap2mariadb
|
|
image: containers.kritikos.io/system/ldap2mariadb:latest
|
|
build:
|
|
context: ldap2mariadb
|
|
dockerfile: Containerfile
|
|
args:
|
|
- ALPINE=${ALPINE_VERSION:-latest}
|