16 Commits

Author SHA1 Message Date
3715ca5861 Update to 22.2.10 2022-07-19 19:03:18 +02:00
f44824f946 Update Nextcloud to 22.2.9 2022-06-20 23:38:18 +02:00
7e7c77ea75 Update to 22.2.8 2022-05-20 13:17:44 +02:00
5c9c873713 Update to 22.2.7 2022-04-21 23:26:28 +02:00
eeac6d79d9 Update Nextcloud to 22.2.6 2022-03-21 23:26:57 +01:00
c0229eabd6 Update Nextcloud to 22.2.5 2022-02-15 20:46:29 +01:00
7240120ac3 Update Nextcloud to 22.2.4 2022-01-27 21:08:00 +01:00
1a61a40cad Adjust workflow for branch 2021-12-08 21:17:07 +01:00
90381a94d0 Adding back smb support to the image 2021-12-07 16:52:51 +01:00
0b0a1da864 Fix typo in workflow cron argument 2021-12-07 16:52:51 +01:00
2bfc5e0eec Update README 2021-12-07 16:52:51 +01:00
d2861829ac Enable scan during build again and change trigger 2021-12-07 16:52:51 +01:00
e72b5f41c7 Update to Alpine 3.15 2021-12-07 16:52:51 +01:00
a5d934b8a9 Change .well-known regex 2021-12-07 16:52:51 +01:00
8c9f6b6cb7 Add imagick dependency 2021-12-07 16:52:51 +01:00
9867cd0938 Remove nc_port 2021-12-07 16:52:45 +01:00
4 changed files with 7 additions and 15 deletions

View File

@ -3,7 +3,7 @@ name: build
on:
workflow_dispatch:
push:
branches: [ version-23 ]
branches: [ version-22 ]
schedule:
# Build the image regularly (each Friday)
- cron: '23 04 * * 5'
@ -47,4 +47,3 @@ jobs:
run: |
docker push ghcr.io/${{ github.actor }}/nextcloud:$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c6)
docker push ghcr.io/${{ github.actor }}/nextcloud:$(grep -oP '(?<=NEXTCLOUD_VERSION=).*' Dockerfile | head -c2)

View File

@ -16,7 +16,7 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ghcr.io/${{ github.actor }}/nextcloud'
image-ref: 'ghcr.io/hoellen/nextcloud'
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'

View File

@ -1,10 +1,10 @@
# -------------- Build-time variables --------------
ARG NEXTCLOUD_VERSION=23.0.12
ARG NEXTCLOUD_VERSION=22.2.10
ARG PHP_VERSION=8.0
ARG NGINX_VERSION=1.20
ARG ALPINE_VERSION=3.15
ARG HARDENED_MALLOC_VERSION=11
ARG HARDENED_MALLOC_VERSION=8
ARG UID=1000
ARG GID=1000
@ -77,13 +77,12 @@ FROM alpine:${ALPINE_VERSION} as build-malloc
ARG HARDENED_MALLOC_VERSION
ARG CONFIG_NATIVE=false
ARG VARIANT=light
RUN apk --no-cache add build-base git gnupg && cd /tmp \
&& wget -q https://github.com/thestinger.gpg && gpg --import thestinger.gpg \
&& git clone --depth 1 --branch ${HARDENED_MALLOC_VERSION} https://github.com/GrapheneOS/hardened_malloc \
&& cd hardened_malloc && git verify-tag $(git describe --tags) \
&& make CONFIG_NATIVE=${CONFIG_NATIVE} VARIANT=${VARIANT}
&& make CONFIG_NATIVE=${CONFIG_NATIVE}
### Fetch nginx
@ -95,7 +94,7 @@ FROM base as nextcloud
COPY --from=nginx /usr/sbin/nginx /usr/sbin/nginx
COPY --from=nginx /etc/nginx /etc/nginx
COPY --from=build-malloc /tmp/hardened_malloc/out-light/libhardened_malloc-light.so /usr/local/lib/
COPY --from=build-malloc /tmp/hardened_malloc/libhardened_malloc.so /usr/local/lib/
ARG NEXTCLOUD_VERSION
ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A"
@ -111,7 +110,7 @@ ENV UPLOAD_MAX_SIZE=10G \
CRON_MEMORY_LIMIT=1g \
DB_TYPE=sqlite3 \
DOMAIN=localhost \
LD_PRELOAD="/usr/local/lib/libhardened_malloc-light.so /usr/lib/preloadable_libiconv.so"
LD_PRELOAD="/usr/local/lib/libhardened_malloc.so /usr/lib/preloadable_libiconv.so"
RUN apk --no-cache add \
gnupg \

View File

@ -55,12 +55,6 @@ cat >> /nextcloud/config/autoconfig.php <<EOF;
?>
EOF
until nc -z "${DB_HOST:-nextcloud-db}" "${DB_PORT:-3306}"
do
echo "waiting for the database container..."
sleep 1
done
echo "Starting automatic configuration..."
# Execute setup
(cd /nextcloud; php index.php &>/dev/null)