Compare commits

...
Sign in to create a new pull request.

53 commits

Author SHA1 Message Date
76921098e9 Merge pull request 'Delete webhook_application_dockerfile' (#30) from holzi1005-patch-9 into main
Reviewed-on: #30
2025-04-10 22:13:02 +02:00
eac052e2f6 Delete webhook_application_dockerfile 2025-04-10 22:12:54 +02:00
2be1e42b06 Merge pull request 'Delete whitebophir_application_dockerfile' (#29) from holzi1005-patch-8 into main
Reviewed-on: #29
2025-04-09 21:03:55 +02:00
8aeadefaed Delete whitebophir_application_dockerfile 2025-04-09 21:03:49 +02:00
f1189e2d21 Merge pull request 'Delete etherpad_application_dockerfile' (#28) from holzi1005-patch-7 into main
Reviewed-on: #28
2025-04-09 21:02:41 +02:00
906530839c Delete etherpad_application_dockerfile 2025-04-09 21:02:33 +02:00
0e41568346 Merge pull request 'Delete filemanager_application_dockerfile' (#27) from holzi1005-patch-6 into main
Reviewed-on: #27
2025-03-20 22:00:34 +01:00
e16cbec3d8 Delete filemanager_application_dockerfile 2025-03-20 22:00:28 +01:00
ad3682776a Merge pull request 'Delete jitsi_admin_application_dockerfile' (#26) from holzi1005-patch-5 into main
Reviewed-on: #26
2025-03-20 21:21:47 +01:00
f5ded5d6ad Delete swarm_visualizer_dockerfile 2025-03-20 21:19:46 +01:00
f4567b8a00 Delete skib_application_dockerfile 2025-03-20 21:19:38 +01:00
bdf44c24c7 Delete jitsi_admin_websocket_dockerfile 2025-03-20 21:19:11 +01:00
2bc01be2a2 Delete jitsi_admin_application_dockerfile 2025-03-20 21:19:01 +01:00
42445f5d82 Merge pull request 'Delete keycloak_dockerfile' (#25) from holzi1005-patch-4 into main
Reviewed-on: #25
2025-03-20 21:18:35 +01:00
0d82bfe24b Delete keycloak_dockerfile 2025-03-20 21:18:29 +01:00
77a43814f9 Merge pull request 'Delete livekit_middleware_dockerfile' (#24) from holzi1005-patch-3 into main
Reviewed-on: #24
2025-03-20 21:18:17 +01:00
bac9b91087 Delete livekit_middleware_dockerfile 2025-03-20 21:18:08 +01:00
a7233b767e update 2025-02-28 15:46:07 +01:00
a88b980b6a Merge pull request 'Update jitsi_admin_application_dockerfile' (#23) from holzi1005-patch-2 into main
Reviewed-on: #23
2025-02-02 20:39:00 +01:00
e7589b915b Update jitsi_admin_application_dockerfile 2025-02-02 20:38:37 +01:00
4bf2dbc4dd Merge pull request 'Update jitsi_admin_application_dockerfile' (#22) from holzi1005-patch-1 into main
Reviewed-on: #22
2025-02-02 15:11:43 +01:00
77772fd64a Update jitsi_admin_application_dockerfile 2025-02-02 15:11:28 +01:00
1574e0fe86 Merge pull request 'hotfix/skib-update' (#21) from hotfix/skib-update into main
Reviewed-on: #21
2025-01-29 22:06:50 +01:00
c1e51cce40 use h2 base image 2025-01-29 21:45:23 +01:00
6234fa8364 update 2025-01-29 21:36:17 +01:00
90d5b35d0f fix download 2025-01-29 20:56:18 +01:00
d1c25b6a82 update skib_build downöoad 2025-01-29 20:51:51 +01:00
5a720078b0 Merge pull request 'feature/kecloak' (#20) from feature/kecloak into main
Reviewed-on: #20
2025-01-27 07:38:18 +01:00
af44645456 Merge pull request 'remove odc Dockerfile and move to github' (#15) from feature/remove-odc into main
Reviewed-on: #15
2025-01-27 07:37:56 +01:00
14c18e63c7 Merge pull request 'add lem image' (#17) from feature/lem into main
Reviewed-on: #17
2025-01-27 07:37:48 +01:00
24b00eecf2 Merge pull request 'move oem dockerfile to github' (#16) from feature/remove-oem into main
Reviewed-on: #16
2025-01-27 07:37:39 +01:00
163ccf437b Merge pull request 'feature/add-webhook-dockerfile' (#18) from feature/add-webhook-dockerfile into main
Reviewed-on: #18
2025-01-27 07:37:14 +01:00
117c3c05cc update 2025-01-26 15:20:43 +01:00
066daf1d5e update version 2025-01-26 13:08:47 +01:00
437236c96c add keycloak image 2025-01-26 13:07:50 +01:00
f89fe46dd2 Merge pull request 'remove data creation' (#19) from hotfix/jitsi-admin-data into main
Reviewed-on: #19
Reviewed-by: emanuel.holzmann <emanuel.holzmann@noreply.localhost>
2025-01-20 18:11:26 +01:00
4d92901d04 use old pipeline 2024-12-30 16:52:12 +01:00
b1df652291 update lem 2024-12-30 16:49:22 +01:00
c1d2592d7e add healthcheck 2024-12-19 11:05:04 +01:00
512e81d4b6 cleanup 2024-12-19 10:58:27 +01:00
0f60603f3d try directly 2024-12-19 10:56:20 +01:00
082610628a try 2024-12-19 10:49:22 +01:00
0b0fcd186f update 2024-12-19 10:48:27 +01:00
085f952a28 update 2024-12-19 10:41:16 +01:00
deae461460 add lem image 2024-12-19 08:26:13 +01:00
4816f4b3b8 remove ls 2024-12-18 17:45:40 +01:00
ab984c6fdb fix permission 2024-12-18 17:45:30 +01:00
fb371802f9 ls 2024-12-18 17:44:02 +01:00
19de333601 update 2024-12-18 17:42:56 +01:00
37c44910d6 update 2024-12-18 17:41:23 +01:00
87c8fce5fd add dockerfile for webhook server 2024-12-18 17:36:21 +01:00
7c4c324dbe move oem dockerfile to github 2024-12-12 08:52:04 +01:00
46be2f45b6 remove odc Dockerfile and move to github 2024-12-12 08:40:58 +01:00
10 changed files with 23 additions and 509 deletions

View file

@ -1,2 +0,0 @@
ARG VERSION=2.2.6
FROM etherpad/etherpad:${VERSION}

View file

@ -1,74 +0,0 @@
ARG PHP_IMAGE_VERSION=3.20.6
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Simple Filemanager" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Simple Filemanager" \
org.opencontainers.image.license="AGPLv3" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/jitsi-admin" \
org.opencontainers.image.documentation="https://github.com/H2-invent/Filemanager" \
org.opencontainers.image.url="https://h2-invent.com"
USER root
RUN apk --no-cache add \
unzip \
sqlite \
php83-sqlite3 \
php83-pdo_sqlite \
php83-ldap \
php83-xmlwriter \
php83-xsl \
php83-pcntl \
php83-posix \
php83-sockets \
&& rm -rf /var/cache/apk/*
RUN echo "Europe/Berlin" > /etc/timezone
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic \
&& chmod +x /supercronic
RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh \
&& chmod +x /distributed_cron.sh
RUN mkdir /etc/service/cron \
&& echo "#!/bin/sh" > /etc/service/cron/run \
&& echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run \
&& chown -R nobody:nobody /etc/service/cron \
&& chmod -R +x /etc/service/cron
RUN echo "# Docker Cron Jobs" > /var/crontab \
&& echo "SHELL=/bin/sh" >> /var/crontab \
&& echo "TZ=Europe/Berlin" >> /var/crontab \
&& echo "0 * * * * /bin/sh /distributed_cron.sh '/var/www/html/data/cron_lock' 'php /var/www/html/bin/console app:file:expiration'" >> /var/crontab \
&& echo "" >> /var/crontab \
&& chown nobody:nobody /var/crontab
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/03-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/03-symfony.sh \
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/03-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/03-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/03-symfony.sh
RUN wget https://github.com/H2-invent/Filemanager/releases/download/${VERSION}/filemanager-${VERSION}.zip -O artifact.zip \
&& unzip artifact.zip \
&& chown -R nobody var \
&& chmod -R 700 var \
&& rm artifact.zip \
&& rm -r var/cache
USER nobody
ENV nginx_root_directory=/var/www/html/public \
memory_limit=1024M \
post_max_size=200M \
upload_max_filesize=200M \
date_timezone=Europe/Berlin \
intl_default_locale=de_DE

View file

@ -1,94 +0,0 @@
ARG PHP_IMAGE_VERSION=3.20.6
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Docker Image der Anwendung Jitsi Admin" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Jitsi Admin" \
org.opencontainers.image.license="AGPLv3" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Emanuel Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/jitsi-admin" \
org.opencontainers.image.documentation="https://meetling.de" \
org.opencontainers.image.url="https://jitsi-admin.de"
USER root
RUN apk --no-cache add \
unzip \
sqlite \
php83-sqlite3 \
php83-pdo_sqlite \
php83-ldap \
php83-xmlwriter \
php83-xsl \
php83-pcntl \
php83-posix \
php83-sockets \
php83-bcmath \
&& rm -rf /var/cache/apk/*
RUN echo "Europe/Berlin" > /etc/timezone
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic \
&& chmod +x /supercronic
RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh \
&& chmod +x /distributed_cron.sh
RUN mkdir /etc/service/cron \
&& echo "#!/bin/sh" > /etc/service/cron/run \
&& echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run \
&& chown -R nobody:nobody /etc/service/cron \
&& chmod -R +x /etc/service/cron
RUN mkdir /etc/service/symfony_messenger \
&& echo "#!/bin/sh -e" > /etc/service/symfony_messenger/run \
&& echo "exec 2>&1 php -d memory_limit=-1 /var/www/html/bin/console messenger:consume async --memory-limit=512m --env=prod" >> /etc/service/symfony_messenger/run \
&& chown -R nobody:nobody /etc/service/symfony_messenger \
&& chmod -R +x /etc/service/symfony_messenger
RUN echo "# Docker Cron Jobs" > /var/crontab \
&& echo "SHELL=/bin/sh" >> /var/crontab \
&& echo "TZ=Europe/Berlin" >> /var/crontab \
&& echo "*/10 * * * * /bin/sh /distributed_cron.sh '/var/www/html/data/cron_lock' 'php /var/www/html/bin/console cron:run'" >> /var/crontab \
&& echo "" >> /var/crontab \
&& chown nobody:nobody /var/crontab
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-theme.sh \
&& echo "if [ -d "data/theme" ]" >> /docker-entrypoint-init.d/02-theme.sh \
&& echo "then" >> /docker-entrypoint-init.d/02-theme.sh \
&& echo " cp data/theme/*.json.signed theme/" >> /docker-entrypoint-init.d/02-theme.sh \
&& echo " cp -r data/theme/public/* public/" >> /docker-entrypoint-init.d/02-theme.sh \
&& echo "fi" >> /docker-entrypoint-init.d/02-theme.sh \
&& chmod +x /docker-entrypoint-init.d/02-theme.sh
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/03-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/03-symfony.sh \
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/03-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/03-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/03-symfony.sh
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/application.zip -O artifact.zip \
&& unzip artifact.zip \
&& chown -R nobody public \
&& chown -R nobody theme \
&& chown -R nobody data \
&& chown -R nobody var \
&& chmod -R 700 public \
&& chmod -R 700 theme \
&& chmod -R 700 data \
&& chmod -R 700 var \
&& rm artifact.zip \
&& rm -r var/cache
USER nobody
ENV nginx_root_directory=/var/www/html/public \
memory_limit=1024M \
post_max_size=20M \
upload_max_filesize=10M \
date_timezone=Europe/Berlin

View file

@ -1,37 +0,0 @@
ARG NODE_IMAGE_VERSION=23-alpine
FROM node:${NODE_IMAGE_VERSION}
ARG VERSION
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Docker Image Jitsi Admin Websocket" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Jitsi Admin" \
org.opencontainers.image.license="AGPLv3" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Emanuel Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/jitsi-admin" \
org.opencontainers.image.documentation="https://meetling.de" \
org.opencontainers.image.url="https://jitsi-admin.de"
WORKDIR /usr/src/app
RUN apk --no-cache add \
curl \
&& rm -rf /var/cache/apk/*
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \
&& unzip artifact.zip \
&& chown -R nobody . \
&& rm artifact.zip
EXPOSE 3000
USER node
ENV WEBSOCKET_SECRET=CHANGEME
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:3000/healthz || exit 1
CMD [ "node", "." ]

View file

@ -1,29 +1,39 @@
ARG PHP_IMAGE_VERSION=3.20.6
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
FROM git.h2-invent.com/public-system-design/alpine-php8-webserver:${PHP_IMAGE_VERSION}
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Meetling Livekit Middleware" \
Description="Fördermap" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Meetling Livekit Middleware" \
org.opencontainers.image.license="BSL" \
org.opencontainers.image.title="Fördermap" \
org.opencontainers.image.license="INTERNAL" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/livekit" \
org.opencontainers.image.documentation="https://meetling.de" \
org.opencontainers.image.url="https://meetling.de"
org.opencontainers.image.source="https://github.com/h2-invent/lem" \
org.opencontainers.image.documentation="https://fierdermmap.de" \
org.opencontainers.image.url="https://fierdermmap.de"
USER root
RUN apk --no-cache add \
unzip \
php83-xmlwriter \
php83-xsl \
php83-pcntl \
php83-posix \
php83-sockets \
php83-bcmath \
&& rm -rf /var/cache/apk/*
RUN echo "Europe/Berlin" > /etc/timezone
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:warmup" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/02-symfony.sh
RUN --mount=type=secret,id=ARTIFACT_USER \
@ -34,15 +44,18 @@ RUN --mount=type=secret,id=ARTIFACT_USER \
ARTIFACT_URL=$(cat /run/secrets/ARTIFACT_URL) \
&& wget https://${ARTIFACT_USER}:${ARTIFACT_SECRET}@${ARTIFACT_URL}-${VERSION}.zip -O artifact.zip \
&& unzip artifact.zip \
&& rm artifact.zip \
&& chown -R nobody public \
&& chown -R nobody var \
&& chmod -R 700 public \
&& chmod -R 700 var \
&& rm artifact.zip \
&& rm -r var/cache
USER nobody
ENV nginx_root_directory=/var/www/html/public \
memory_limit=1024M \
post_max_size=20M \
upload_max_filesize=10M \
date_timezone=Europe/Berlin
date_timezone=Europe/Berlin \
intl_default_locale=de_DE

View file

@ -1,69 +0,0 @@
ARG PHP_IMAGE_VERSION=3.20.6
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Docker Image der Anwendung Open Datenschutzcenter" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Open Datenschutzcenter" \
org.opencontainers.image.license="AGPLv3" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/open-datenschutzcenter" \
org.opencontainers.image.documentation="https://open-datenschutzcenter.de" \
org.opencontainers.image.url="https://open-datenschutzcenter.de"
USER root
RUN apk --no-cache add \
unzip \
sqlite \
php83-sqlite3 \
php83-pdo_sqlite \
php83-xmlwriter \
php83-xsl \
php83-pcntl \
php83-posix \
php83-sockets \
&& rm -rf /var/cache/apk/*
RUN mkdir /etc/service/cron \
&& echo "#!/bin/sh" > /etc/service/cron/run \
&& echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run \
&& chown -R nobody:nobody /etc/service/cron \
&& chmod -R +x /etc/service/cron
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic \
&& chmod +x /supercronic
RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh \
&& chmod +x /distributed_cron.sh
RUN echo "# Docker Cron Jobs" > /var/crontab \
&& echo "SHELL=/bin/sh" >> /var/crontab \
&& echo "* * * * * date" >> /var/crontab \
&& echo "0 1 * * * curl https://open-datenschutzcenter.de/health/check" >> /var/crontab \
&& echo "0 9 * * 1-5 /bin/sh /distributed_cron.sh 'data/cron_log' 'php /var/www/html/bin/console app:cron'" >> /var/crontab \
&& echo "" >> /var/crontab
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/01-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/01-symfony.sh
USER nobody
RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \
&& unzip artifact.zip \
&& mkdir data
RUN rm artifact.zip \
&& rm -r var/cache
ENV nginx_root_directory=/var/www/html/public \
upload_max_filesize=10M \
date_timezone=Europe/Berlin

View file

@ -1,86 +0,0 @@
FROM git.h2-invent.com/public-system-design/alpine-php7-webserver:main
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Docker Image der Anwendung Open Datenschutzcenter" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Open Event Manager" \
org.opencontainers.image.license="Apache-2.0 license" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/open-datenschutzcenter" \
org.opencontainers.image.documentation="https://open-datenschutzcenter.de" \
org.opencontainers.image.url="https://open-datenschutzcenter.de"
USER root
RUN apk --no-cache add \
unzip \
nodejs \
npm \
git \
&& rm -rf /var/cache/apk/*
RUN mkdir /etc/service/cron \
&& echo "#!/bin/sh" > /etc/service/cron/run \
&& echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run \
&& chown -R nobody:nobody /etc/service/cron \
&& chmod -R +x /etc/service/cron
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic \
&& chmod +x /supercronic
RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh \
&& chmod +x /distributed_cron.sh
RUN echo "# Docker Cron Jobs" > /var/crontab \
&& echo "SHELL=/bin/sh" >> /var/crontab \
&& echo "*/10 * * * * /bin/sh /distributed_cron.sh '/var/www/html/data/cron_lock' 'php /var/www/html/bin/console app:cron'" >> /var/crontab \
&& echo "" >> /var/crontab
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/01-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/01-symfony.sh
RUN wget https://github.com/open-event-manager/open-event-manager/archive/refs/tags/${VERSION}.tar.gz -O artifact.tar.gz \
&& tar --strip-components=1 -xvzf artifact.tar.gz \
&& chown -R nobody public \
&& chmod -R 700 public
RUN mv /etc/php7/conf.d/custom.ini /etc/php7/custom.ini
RUN php -d memory_limit=-1 \
composer.phar install \
--optimize-autoloader \
--no-interaction \
--no-progress \
--no-dev
RUN mv /etc/php7/custom.ini /etc/php7/conf.d/custom.ini
RUN npm install \
&& npm run build
RUN apk del \
unzip \
nodejs \
npm \
git \
&& rm -rf /var/cache/apk/*
RUN rm -r node_modules \
&& rm artifact.tar.gz \
&& rm -r var/cache \
&& chown -R nobody var
USER nobody
ENV nginx_root_directory=/var/www/html/public \
upload_max_filesize=10M \
date_timezone=Europe/Berlin \
intl_default_locale=de_DE

View file

@ -1,78 +0,0 @@
ARG PHP_IMAGE_VERSION=3.20.6
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Docker Image der Anwendung Unsere Schulkindbetreuung" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Unsere Schulkindbetreuung" \
org.opencontainers.image.license="INTERNAL" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
org.opencontainers.image.source="https://github.com/h2-invent/skb" \
org.opencontainers.image.documentation="https://unsere-schulkindbetreuung.de" \
org.opencontainers.image.url="https://unsere-schulkindbetreuung.de"
USER root
RUN apk --no-cache add \
unzip \
php83-xmlwriter \
php83-xsl \
php83-pcntl \
php83-posix \
php83-sockets \
php83-bcmath \
&& rm -rf /var/cache/apk/*
RUN echo "Europe/Berlin" > /etc/timezone
RUN wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic \
&& chmod +x /supercronic
RUN wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh \
&& chmod +x /distributed_cron.sh
RUN mkdir /etc/service/cron \
&& echo "#!/bin/sh" > /etc/service/cron/run \
&& echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run \
&& chown -R nobody:nobody /etc/service/cron \
&& chmod -R +x /etc/service/cron
RUN echo "# Docker Cron Jobs" > /var/crontab \
&& echo "*/10 * * * * php /var/www/html/bin/console app:statistik:generate" >> /var/crontab \
&& echo "" >> /var/crontab \
&& chown nobody:nobody /var/crontab
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/02-symfony.sh
RUN --mount=type=secret,id=ARTIFACT_USER \
--mount=type=secret,id=ARTIFACT_SECRET \
--mount=type=secret,id=ARTIFACT_URL \
ARTIFACT_USER=$(cat /run/secrets/ARTIFACT_USER) \
ARTIFACT_SECRET=$(cat /run/secrets/ARTIFACT_SECRET) \
ARTIFACT_URL=$(cat /run/secrets/ARTIFACT_URL) \
&& wget https://${ARTIFACT_USER}:${ARTIFACT_SECRET}@${ARTIFACT_URL}-${VERSION}.zip -O artifact.zip \
&& unzip artifact.zip \
&& chown -R nobody public \
&& chown -R nobody var \
&& chmod -R 700 public \
&& chmod -R 700 var
RUN rm artifact.zip \
&& rm -r var/cache
USER nobody
ENV nginx_root_directory=/var/www/html/public \
memory_limit=1024M \
post_max_size=20M \
upload_max_filesize=10M \
date_timezone=Europe/Berlin

View file

@ -1,30 +0,0 @@
FROM node:23-alpine3.20
ENV DOCKERVERSION=27.3.1
WORKDIR /usr/src/app
RUN apk --no-cache add \
curl \
unzip \
&& rm -rf /var/cache/apk/*
# https://stackoverflow.com/a/43594065
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
&& rm docker-${DOCKERVERSION}.tgz
RUN wget https://github.com/yandeu/docker-swarm-visualizer/archive/refs/heads/main.zip -O artifact.zip \
&& unzip artifact.zip -d / \
&& rm artifact.zip
RUN mv /docker-swarm-visualizer-main/package*.json /usr/src/app/ \
&& mv /docker-swarm-visualizer-main/src /usr/src/app/src \
&& mv /docker-swarm-visualizer-main/scripts /usr/src/app/scripts \
&& rm -r /docker-swarm-visualizer-main
RUN npm install --only=prod
USER node
CMD ["npm", "start"]

View file

@ -1,29 +0,0 @@
ARG NODE_IMAGE_VERSION=23-alpine
FROM node:${NODE_IMAGE_VERSION}
ARG VERSION
WORKDIR /opt/app
RUN chown -R node:node /opt/app
# Allow node to bind to port 80
RUN apk update && apk add libcap
USER node
RUN wget https://github.com/lovasoa/whitebophir/archive/refs/tags/v${VERSION}.tar.gz -O artifact.tar.gz \
&& tar --strip-components=1 -xvzf artifact.tar.gz \
&& rm artifact.tar.gz
RUN wget https://github.com/H2-invent/materialWhitebophir/archive/master.tar.gz -O artifact.tar.gz \
&& tar --strip-components=1 -xvzf artifact.tar.gz \
&& mv fonts client-data/fonts/ \
&& mv css/board.css client-data/board.css \
&& rm artifact.tar.gz
RUN npm ci --production
EXPOSE 3000
CMD ["node", "server/server.js"]