Compare commits

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

9 commits

4 changed files with 0 additions and 144 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,39 +0,0 @@
FROM alpine:3.20
ARG VERSION
LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \
Description="Webhook Server" \
org.opencontainers.version="${VERSION}" \
org.opencontainers.image.title="Webhook Server" \
org.opencontainers.image.vendor="H2 invent GmbH" \
org.opencontainers.image.authors="Andreas Holzmann <support@h2-invent.com>" \
org.opencontainers.image.documentation="https://h2-invent.com" \
org.opencontainers.image.url="https://h2-invent.com"
RUN apk --no-cache add \
git \
curl \
jq \
&& rm -rf /var/cache/apk/*
RUN addgroup -S webhook \
&& adduser -S webhook -G webhook
WORKDIR /opt/webhook
RUN wget https://github.com/adnanh/webhook/releases/download/${VERSION}/webhook-linux-amd64.tar.gz -O artifact.tar.gz \
&& tar --strip-components=1 -xvzf artifact.tar.gz \
&& rm artifact.tar.gz
RUN echo "- id: whoami-webhook" > hooks.yaml \
&& echo " execute-command: 'whoami'" >> hooks.yaml
USER webhook
EXPOSE 9000
HEALTHCHECK --timeout=4s CMD curl --silent --fail http://127.0.0.1:9000/ || exit 1
CMD [ "./webhook", "-hooks", "hooks.yaml", "-verbose" ]

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"]