From b6e45339f13cbe2e8bc131d579d58c85134666c6 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Wed, 12 May 2021 16:13:57 +0200 Subject: [PATCH] make firmware, it deploys that shit --- apps/web/nextcloud/Dockerfile | 2 +- apps/web/nextcloud/deployment.yaml | 26 ++++++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/apps/web/nextcloud/Dockerfile b/apps/web/nextcloud/Dockerfile index a6a8f84..ad6a077 100644 --- a/apps/web/nextcloud/Dockerfile +++ b/apps/web/nextcloud/Dockerfile @@ -6,7 +6,7 @@ FROM nextcloud:stable-apache RUN touch /usr/src/nextcloud/data/.ocdata COPY config.php /usr/src/nextcloud/config/ COPY post-start.sh / -#CMD chmod +x /post-start.sh +RUN chmod +x /post-start.sh #ENTRYPOINT ["/entrypoint.sh"] diff --git a/apps/web/nextcloud/deployment.yaml b/apps/web/nextcloud/deployment.yaml index 38fdea5..4ab3fe1 100644 --- a/apps/web/nextcloud/deployment.yaml +++ b/apps/web/nextcloud/deployment.yaml @@ -25,11 +25,11 @@ spec: - name: nextcloud image: cr.lan/nextcloud:latest #image: docker.io/nextcloud:stable-apache - #lifecycle: - # postStart: - # exec: - # command: - # - /usr/local/bin/post-start.sh + lifecycle: + postStart: + exec: + command: + - /post-start.sh env: - name: TZ value: "Europe/Berlin" @@ -44,8 +44,6 @@ spec: - name: NEXTCLOUD_TRUSTED_DOMAINS value: nc nc.lan 172.23.255.1 - name: OBJECTSTORE_S3_HOST - # values: hdd-ebin01-ss-0-{0...2}.hdd-ebin01-hl.live-infra.svc.cluster.local - #value: hdd-ebin01-ss-0-0.hdd-ebin01-hl.live-infra.svc.cluster.local value: minio.live-infra.svc.cluster.local - name: OBJECTSTORE_S3_BUCKET value: nextcloud @@ -75,13 +73,13 @@ spec: # httpGet: # path: / # port: http - #resources: - # requests: - # memory: "512Mi" - # cpu: "250m" - # limits: - # memory: "1000Mi" - # cpu: "1500m" + resources: + requests: + memory: "512Mi" + cpu: "250m" + limits: + memory: "1000Mi" + cpu: "1500m" --- apiVersion: v1 kind: Service