mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 11:03:29 +00:00
Compare commits
No commits in common. "b807cc60bcf04cd88cc50bae48b50340f1aa0621" and "d3aa3298cbbbae0a8cc6eca992f6f036f283a499" have entirely different histories.
b807cc60bc
...
d3aa3298cb
@ -17,8 +17,6 @@ dev-minio:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||||
changes:
|
|
||||||
- minio/*
|
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
stage: build
|
stage: build
|
||||||
@ -30,8 +28,6 @@ minio:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- minio/*
|
|
||||||
|
|
||||||
dev-watchdog:
|
dev-watchdog:
|
||||||
stage: build
|
stage: build
|
||||||
@ -43,8 +39,6 @@ dev-watchdog:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||||
changes:
|
|
||||||
- watchdog/*
|
|
||||||
|
|
||||||
watchdog:
|
watchdog:
|
||||||
stage: build
|
stage: build
|
||||||
@ -56,8 +50,6 @@ watchdog:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- watchdog/*
|
|
||||||
|
|
||||||
dev-unifi:
|
dev-unifi:
|
||||||
stage: build
|
stage: build
|
||||||
@ -69,8 +61,6 @@ dev-unifi:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||||
changes:
|
|
||||||
- unifi/*
|
|
||||||
|
|
||||||
unifi:
|
unifi:
|
||||||
stage: build
|
stage: build
|
||||||
@ -82,8 +72,6 @@ unifi:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- unifi/*
|
|
||||||
|
|
||||||
dev-keycloak:
|
dev-keycloak:
|
||||||
stage: build
|
stage: build
|
||||||
@ -95,8 +83,6 @@ dev-keycloak:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||||
changes:
|
|
||||||
- keycloak/*
|
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
stage: build
|
stage: build
|
||||||
@ -108,8 +94,6 @@ keycloak:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- keycloak/*
|
|
||||||
|
|
||||||
dev-restic:
|
dev-restic:
|
||||||
stage: build
|
stage: build
|
||||||
@ -121,8 +105,6 @@ dev-restic:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "false"
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||||||
changes:
|
|
||||||
- restic/*
|
|
||||||
|
|
||||||
restic:
|
restic:
|
||||||
stage: build
|
stage: build
|
||||||
@ -134,8 +116,6 @@ restic:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- restic/*
|
|
||||||
|
|
||||||
pleroma:
|
pleroma:
|
||||||
stage: build
|
stage: build
|
||||||
@ -147,8 +127,6 @@ pleroma:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- pleroma/*
|
|
||||||
|
|
||||||
dendrite:
|
dendrite:
|
||||||
stage: build
|
stage: build
|
||||||
@ -160,8 +138,6 @@ dendrite:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- dendrite/*
|
|
||||||
|
|
||||||
roundcubemail:
|
roundcubemail:
|
||||||
stage: build
|
stage: build
|
||||||
@ -173,8 +149,6 @@ roundcubemail:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- roundcubemail/*
|
|
||||||
|
|
||||||
borg:
|
borg:
|
||||||
stage: build
|
stage: build
|
||||||
@ -186,8 +160,6 @@ borg:
|
|||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
- $CI_COMMIT_REF_PROTECTED == "true"
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||||||
changes:
|
|
||||||
- borg/*
|
|
||||||
|
|
||||||
.docker_init: &docker_init |
|
.docker_init: &docker_init |
|
||||||
if ! docker info &>/dev/null; then
|
if ! docker info &>/dev/null; then
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
FROM debian:buster-20210208-slim
|
FROM debian:buster-20210208-slim
|
||||||
ENV APACHE_CONFDIR /etc/apache2
|
|
||||||
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apt-get update -qqy; \
|
apt-get update; \
|
||||||
apt-get install -qqy --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
php-exif \
|
php-exif \
|
||||||
php-gd \
|
php-gd \
|
||||||
php-intl \
|
php-intl \
|
||||||
@ -21,50 +19,10 @@ RUN set -ex; \
|
|||||||
dirmngr \
|
dirmngr \
|
||||||
locales \
|
locales \
|
||||||
libc-l10n \
|
libc-l10n \
|
||||||
|
ca-certificates \
|
||||||
; \
|
; \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
rm -rf /var/lib/apt/lists/*; \
|
||||||
a2dismod mpm_event && a2enmod mpm_prefork && a2enmod rewrite; \
|
a2enmod rewrite
|
||||||
mkdir -p /etc/ssl/certs; \
|
|
||||||
curl -fLSko /etc/ssl/certs/cacert.pem https://curl.se/ca/cacert.pem; \
|
|
||||||
sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; \
|
|
||||||
\
|
|
||||||
. "$APACHE_ENVVARS"; \
|
|
||||||
for dir in \
|
|
||||||
"$APACHE_LOCK_DIR" \
|
|
||||||
"$APACHE_RUN_DIR" \
|
|
||||||
"$APACHE_LOG_DIR" \
|
|
||||||
; do \
|
|
||||||
rm -rvf "$dir"; \
|
|
||||||
mkdir -p "$dir"; \
|
|
||||||
chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; \
|
|
||||||
chmod 777 "$dir"; \
|
|
||||||
done; \
|
|
||||||
\
|
|
||||||
rm -rvf /var/www/html/*; \
|
|
||||||
chmod 777 /var/www/html; \
|
|
||||||
\
|
|
||||||
# logs should go to stdout / stderr
|
|
||||||
ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; \
|
|
||||||
ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; \
|
|
||||||
ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; \
|
|
||||||
chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"; \
|
|
||||||
{ \
|
|
||||||
echo '<FilesMatch \.php$>'; \
|
|
||||||
echo '\tSetHandler application/x-httpd-php'; \
|
|
||||||
echo '</FilesMatch>'; \
|
|
||||||
echo; \
|
|
||||||
echo 'DirectoryIndex disabled'; \
|
|
||||||
echo 'DirectoryIndex index.php index.html'; \
|
|
||||||
echo; \
|
|
||||||
echo '<Directory /var/www/>'; \
|
|
||||||
echo '\tOptions -Indexes'; \
|
|
||||||
echo '\tAllowOverride All'; \
|
|
||||||
echo '</Directory>'; \
|
|
||||||
} | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" \
|
|
||||||
&& a2enconf docker-php
|
|
||||||
|
|
||||||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/cacert.pem \
|
|
||||||
SSL_CERT_FILE=/etc/ssl/certs/cacert.pem
|
|
||||||
|
|
||||||
# install composer
|
# install composer
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
@ -80,7 +38,7 @@ RUN curl -fL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait
|
|||||||
COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini
|
COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /
|
COPY docker-entrypoint.sh /
|
||||||
COPY apache2-foreground /usr/local/bin/
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|
||||||
@ -89,15 +47,13 @@ VOLUME /var/roundcube/config
|
|||||||
VOLUME /var/roundcube/db
|
VOLUME /var/roundcube/db
|
||||||
VOLUME /var/www/html
|
VOLUME /var/www/html
|
||||||
VOLUME /tmp/roundcube-temp
|
VOLUME /tmp/roundcube-temp
|
||||||
WORKDIR /var/www/html
|
|
||||||
STOPSIGNAL SIGWINCH
|
|
||||||
# Define Roundcubemail version
|
# Define Roundcubemail version
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ENV ROUNDCUBEMAIL_VERSION $VERSION
|
ENV ROUNDCUBEMAIL_VERSION $VERSION
|
||||||
|
|
||||||
# Download package and extract to web volume
|
# Download package and extract to web volume
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
chmod +x /docker-entrypoint.sh /usr/local/bin/apache2-foreground; \
|
|
||||||
curl -o roundcubemail.tar.gz -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
|
curl -o roundcubemail.tar.gz -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
|
||||||
curl -o roundcubemail.tar.gz.asc -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
|
curl -o roundcubemail.tar.gz.asc -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz.asc; \
|
||||||
export GNUPGHOME="$(mktemp -d)"; \
|
export GNUPGHOME="$(mktemp -d)"; \
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Note: we don't just use "apache2ctl" here because it itself is just a shell-script wrapper around apache2 which provides extra functionality like "apache2ctl start" for launching apache2 in the background.
|
|
||||||
# (also, when run as "apache2ctl <apache args>", it does not use "exec", which leaves an undesirable resident shell process)
|
|
||||||
|
|
||||||
: "${APACHE_CONFDIR:=/etc/apache2}"
|
|
||||||
: "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}"
|
|
||||||
if test -f "$APACHE_ENVVARS"; then
|
|
||||||
. "$APACHE_ENVVARS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Apache gets grumpy about PID files pre-existing
|
|
||||||
: "${APACHE_RUN_DIR:=/var/run/apache2}"
|
|
||||||
: "${APACHE_PID_FILE:=$APACHE_RUN_DIR/apache2.pid}"
|
|
||||||
rm -f "$APACHE_PID_FILE"
|
|
||||||
|
|
||||||
# create missing directories
|
|
||||||
# (especially APACHE_RUN_DIR, APACHE_LOCK_DIR, and APACHE_LOG_DIR)
|
|
||||||
for e in "${!APACHE_@}"; do
|
|
||||||
if [[ "$e" == *_DIR ]] && [[ "${!e}" == /* ]]; then
|
|
||||||
# handle "/var/lock" being a symlink to "/run/lock", but "/run/lock" not existing beforehand, so "/var/lock/something" fails to mkdir
|
|
||||||
# mkdir: cannot create directory '/var/lock': File exists
|
|
||||||
dir="${!e}"
|
|
||||||
while [ "$dir" != "$(dirname "$dir")" ]; do
|
|
||||||
dir="$(dirname "$dir")"
|
|
||||||
if [ -d "$dir" ]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
absDir="$(readlink -f "$dir" 2>/dev/null || :)"
|
|
||||||
if [ -n "$absDir" ]; then
|
|
||||||
mkdir -p "$absDir"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir -p "${!e}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
exec apache2 -DFOREGROUND "$@"
|
|
Loading…
Reference in New Issue
Block a user