adding ca.crt to pod (minio access)

This commit is contained in:
2021-05-05 11:30:16 +02:00
parent 84833b0e94
commit c34600a47b
5 changed files with 11 additions and 3 deletions

View File

@@ -4,4 +4,5 @@ FROM nextcloud:stable-apache
RUN sed -i '/\[CURLOPT_HEADERFUNCTION\].*$/a $conf[CURLOPT_SSL_VERIFYPEER] = false;' /usr/src/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php; \
cat /usr/src/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php; \
touch /usr/src/nextcloud/data/.ocdata
COPY config.php /usr/src/nextcloud/config/
COPY config.php /usr/src/nextcloud/config/
COPY post-start.sh /usr/local/bin/post-start.sh

View File

@@ -24,6 +24,10 @@ spec:
containers:
- name: nextcloud
image: cr.lan/nextcloud
livecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "/usr/local/bin/post-start.sh"]
env:
- name: TZ
value: "Europe/Berlin"

View File

@@ -0,0 +1,3 @@
#!/bin/sh
ln -s /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/
/usr/sbin/update-ca-certificates