adding ca.crt to pod (minio access)
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
|
||||
3
apps/web/nextcloud/post-start.sh
Normal file
3
apps/web/nextcloud/post-start.sh
Normal 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
|
||||
Reference in New Issue
Block a user