-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php server works and ldap server is online with correct schema but not fully working
- Loading branch information
Showing
8 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ resources/photos/ | |
resources/pdftemplates/ | ||
tests/.phpunit.result.cache | ||
resources/*/output/ | ||
dirsrv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
services: | ||
ldap: | ||
image: crauto/ldap | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/ldap/Dockerfile | ||
volumes: | ||
- ./dirsrv:/data | ||
ports: | ||
- "8389:389" | ||
- "8636:636" | ||
app: | ||
image: crauto/app | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/app/Dockerfile | ||
cache_from: | ||
- crauto/app | ||
volumes: | ||
# Source directories | ||
- ./public:/var/www/html/public | ||
- ./resources:/var/www/html/resources | ||
- ./src:/var/www/html/src | ||
- ./templates:/var/www/html/templates | ||
- ./tests:/var/www/html/tests | ||
- ./config:/var/www/html/config | ||
ports: | ||
- "8082:80" | ||
depends_on: | ||
- ldap | ||
stop_grace_period: 1s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM php:8.2.12-bookworm | ||
|
||
RUN mkdir -p /var/www/html | ||
WORKDIR /var/www/html | ||
|
||
COPY ./composer.json ./composer.json | ||
COPY ./composer.lock ./composer.lock | ||
|
||
RUN apt-get update && apt-get install -y libldap2-dev libldb-dev unzip gettext \ | ||
&& ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so \ | ||
&& ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so | ||
RUN docker-php-ext-install ldap | ||
|
||
# install composer | ||
RUN php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer | ||
|
||
# create mount points | ||
RUN mkdir ./public ./resources ./src ./templates ./test ./config | ||
|
||
COPY ./config ./config | ||
|
||
RUN if [ ! -f config/config.php ]; then \ | ||
echo "Error: configuration not found." 1>&2; \ | ||
echo "run \"cp config/config-example-docker.php config/config.php\", edit it and restart the container" 1>&2; \ | ||
exit 1; \ | ||
fi | ||
|
||
RUN composer install --no-dev --optimize-autoloader | ||
|
||
CMD php -S 0.0.0.0:80 -t public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM quay.io/keycloak/keycloak:25.0.1 | ||
|
||
ENV KEYCLOAK_ADMIN=admin | ||
ENV KEYCLOAK_ADMIN_PASSWORD=admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM 389ds/dirsrv:3.0 | ||
|
||
ENV DS_DM_PASSWORD=asd | ||
ENV DS_SUFFIX=dc=weeeopen,dc=net | ||
ENV DS_ERRORLOG_LEVEL=16384 | ||
|
||
# Install git | ||
RUN zypper install -y git | ||
|
||
# Download schema files | ||
RUN cd /tmp/ && git clone "https://github.com/WEEE-Open/schema.git" | ||
|
||
# Add schema files to the server (ignore errors) | ||
RUN cp /tmp/schema/* /etc/dirsrv/schema/ || : | ||
|
||
# Remove schema files | ||
RUN rm -rf /tmp/schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters