do we need the entrypoint and cmd

This commit is contained in:
2021-05-12 15:25:30 +02:00
parent 99185edd98
commit 522899fd14
3 changed files with 15 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: registry-ui
image: "cr.lan/docker-registry-ui:arm64"
image: cr.lan/docker-registry-ui:arm64
imagePullPolicy: Always
env:
#- name: URL

View File

@@ -6,4 +6,8 @@ FROM nextcloud:stable-apache
RUN touch /usr/src/nextcloud/data/.ocdata
COPY config.php /usr/src/nextcloud/config/
COPY post-start.sh /usr/local/bin/post-start.sh
CMD chmod +x /usr/local/bin/post-start.sh
CMD chmod +x /usr/local/bin/post-start.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["%%CMD%%"]

View File

@@ -23,8 +23,8 @@ spec:
spec:
containers:
- name: nextcloud
#image: cr.lan/nextcloud
image: docker.io/nextcloud:stable-apache
image: cr.lan/nextcloud
#image: docker.io/nextcloud:stable-apache
#lifecycle:
# postStart:
# exec:
@@ -75,13 +75,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