ci/cd: start test containers with Docker Compose

This commit is contained in:
Elias Schneider
2025-05-22 22:23:54 +02:00
parent 966a566ade
commit ebcf861aa6
5 changed files with 81 additions and 87 deletions

13
tests/setup/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
# Modified version of lldap/lldap that seeds lldap with test data
FROM lldap/lldap:2025-05-19
WORKDIR /app
RUN curl -o /bin/lldap-cli https://raw.githubusercontent.com/Zepmann/lldap-cli/e383494b4dd89ae4e028958b268e200fd85a7a64/lldap-cli
COPY seed-lldap.sh .
RUN chmod +x ./seed-lldap.sh /bin/lldap-cli
RUN cp lldap_set_password /bin
ENTRYPOINT /docker-entrypoint.sh run --config-file /data/lldap_config.toml & ./seed-lldap.sh && wait