Skip to content
Snippets Groups Projects
Verified Commit 6ce7c67a authored by Martin Weise's avatar Martin Weise
Browse files

Need different directory for cache

parent 11060648
No related branches found
No related tags found
1 merge request!370Fixed the test
......@@ -10,4 +10,6 @@ WORKDIR /app
COPY --chown=1001 --chmod=0744 ./init.sh /app/init.sh
RUN mkdir -p /app/config
ENTRYPOINT [ "bash", "-c", "/app/init.sh" ]
#!/bin/bash
cat << EOF > /app/.s3cfg
cat << EOF > /app/config/.s3cfg
access_key = ${S3_ACCESS_KEY_ID}
secret_key = ${S3_SECRET_ACCESS_KEY}
# Setup endpoint
......@@ -9,4 +9,4 @@ use_https = False
# Enable S3 v4 signature APIs
signature_v2 = False
EOF
s3cmd --config=/app/.s3cfg mb s3://${S3_BUCKET}
\ No newline at end of file
s3cmd --config=/app/config/.s3cfg mb s3://${S3_BUCKET}
\ No newline at end of file
......@@ -50,7 +50,7 @@ spec:
key: STORAGE_ENDPOINT
volumeMounts:
- name: app-cache
mountPath: /app
mountPath: /app/config
{{- if .Values.storageservice.init.resources }}
resources: {{- toYaml .Values.storageservice.init.resources | nindent 12 }}
{{- else if ne .Values.storageservice.init.resourcesPreset "none" }}
......
......@@ -721,7 +721,7 @@ storageservice:
init:
image:
## @skip storageservice.init.image.name
name: registry.datalab.tuwien.ac.at/dbrepo/storage-service-init:1.6.0rc2
name: registry.datalab.tuwien.ac.at/dbrepo/storage-service-init:1.6.0rc6
s3:
## @param storageservice.init.s3.endpoint The S3-capable endpoint the microservice connects to.
endpoint: http://storage-service-s3:8333
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment