Skip to content
Snippets Groups Projects
Commit b735394c authored by Lorenz Boguhn's avatar Lorenz Boguhn
Browse files

Fix volume error

also fix the result folder permisions in the docker files
parent fbcf2a93
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!122Update Theodolite Kubernetes Job,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -5,10 +5,6 @@ metadata: ...@@ -5,10 +5,6 @@ metadata:
spec: spec:
template: template:
spec: spec:
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
containers: containers:
- name: lag-analysis - name: lag-analysis
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest
...@@ -16,7 +12,7 @@ spec: ...@@ -16,7 +12,7 @@ spec:
- containerPort: 80 - containerPort: 80
name: analysis name: analysis
- name: theodolite - name: theodolite
image: benediktwetzel/theodolite-test #ghcr.io/cau-se/theodolite:theodolite-kotlin-latest image: lorenzboguhn/thedolite #ghcr.io/cau-se/theodolite:theodolite-kotlin-latest
imagePullPolicy: Always imagePullPolicy: Always
env: env:
- name: NAMESPACE - name: NAMESPACE
...@@ -30,18 +26,21 @@ spec: ...@@ -30,18 +26,21 @@ spec:
- name: THEODOLITE_APP_RESOURCES - name: THEODOLITE_APP_RESOURCES
value: /etc/app-resources value: /etc/app-resources
volumeMounts: volumeMounts:
- mountPath: "/deployments/results"
name: theodolite-pv-storage
- mountPath: "/etc/app-resources" - mountPath: "/etc/app-resources"
name: app-resources name: app-resources
- mountPath: "/etc/benchmark" - mountPath: "/etc/benchmark"
name: benchmark name: benchmark
- mountPath: "/etc/execution" - mountPath: "/etc/execution"
name: execution name: execution
- mountPath: "/deployments/results"
name: theodolite-pv-storage
restartPolicy: Never restartPolicy: Never
# Uncomment if RBAC is enabled and configured # Uncomment if RBAC is enabled and configured
serviceAccountName: theodolite serviceAccountName: theodolite
volumes: volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
- name: app-resources - name: app-resources
configMap: configMap:
name: app-resources-configmap name: app-resources-configmap
......
...@@ -34,7 +34,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \ ...@@ -34,7 +34,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
&& mkdir /deployments \ && mkdir /deployments \
&& chown 1001 /deployments \ && chown 1001 /deployments \
&& mkdir deployments/results \ && mkdir deployments/results \
&& chown 1001 deployments/results \ && chown 777 deployments/results \
&& chmod "g+rwX" /deployments \ && chmod "g+rwX" /deployments \
&& chown 1001:root /deployments \ && chown 1001:root /deployments \
&& curl https://repo1.maven.org/maven2/io/fabric8/run-java-sh/${RUN_JAVA_VERSION}/run-java-sh-${RUN_JAVA_VERSION}-sh.sh -o /deployments/run-java.sh \ && curl https://repo1.maven.org/maven2/io/fabric8/run-java-sh/${RUN_JAVA_VERSION}/run-java-sh-${RUN_JAVA_VERSION}-sh.sh -o /deployments/run-java.sh \
......
...@@ -18,6 +18,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3 ...@@ -18,6 +18,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
WORKDIR /deployments WORKDIR /deployments
RUN chown 1001 /deployments \ RUN chown 1001 /deployments \
&& mkdir results \ && mkdir results \
&& chown 777 deployments/results \
&& chmod "g+rwX" /deployments \ && chmod "g+rwX" /deployments \
&& chown 1001:root /deployments && chown 1001:root /deployments
COPY --chown=1001:root build/*-runner /deployments/application COPY --chown=1001:root build/*-runner /deployments/application
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment