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

Fix volume error

also fix the result folder permisions in the docker files
parent 6ee06756
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:
spec:
template:
spec:
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
containers:
- name: lag-analysis
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest
......@@ -16,7 +12,7 @@ spec:
- containerPort: 80
name: analysis
- 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
env:
- name: NAMESPACE
......@@ -30,18 +26,21 @@ spec:
- name: THEODOLITE_APP_RESOURCES
value: /etc/app-resources
volumeMounts:
- mountPath: "/deployments/results"
name: theodolite-pv-storage
- mountPath: "/etc/app-resources"
name: app-resources
- mountPath: "/etc/benchmark"
name: benchmark
- mountPath: "/etc/execution"
name: execution
- mountPath: "/deployments/results"
name: theodolite-pv-storage
restartPolicy: Never
# Uncomment if RBAC is enabled and configured
serviceAccountName: theodolite
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
- name: app-resources
configMap:
name: app-resources-configmap
......
......@@ -34,7 +34,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
&& mkdir /deployments \
&& chown 1001 /deployments \
&& mkdir deployments/results \
&& chown 1001 deployments/results \
&& chown 777 deployments/results \
&& chmod "g+rwX" /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 \
......
......@@ -18,6 +18,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
WORKDIR /deployments
RUN chown 1001 /deployments \
&& mkdir results \
&& chown 777 deployments/results \
&& chmod "g+rwX" /deployments \
&& chown 1001:root /deployments
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