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
Branches storage-job
Tags
1 merge request!370Fixed the test
...@@ -10,4 +10,6 @@ WORKDIR /app ...@@ -10,4 +10,6 @@ WORKDIR /app
COPY --chown=1001 --chmod=0744 ./init.sh /app/init.sh COPY --chown=1001 --chmod=0744 ./init.sh /app/init.sh
RUN mkdir -p /app/config
ENTRYPOINT [ "bash", "-c", "/app/init.sh" ] ENTRYPOINT [ "bash", "-c", "/app/init.sh" ]
#!/bin/bash #!/bin/bash
cat << EOF > /app/.s3cfg cat << EOF > /app/config/.s3cfg
access_key = ${S3_ACCESS_KEY_ID} access_key = ${S3_ACCESS_KEY_ID}
secret_key = ${S3_SECRET_ACCESS_KEY} secret_key = ${S3_SECRET_ACCESS_KEY}
# Setup endpoint # Setup endpoint
...@@ -9,4 +9,4 @@ use_https = False ...@@ -9,4 +9,4 @@ use_https = False
# Enable S3 v4 signature APIs # Enable S3 v4 signature APIs
signature_v2 = False signature_v2 = False
EOF EOF
s3cmd --config=/app/.s3cfg mb s3://${S3_BUCKET} s3cmd --config=/app/config/.s3cfg mb s3://${S3_BUCKET}
\ No newline at end of file \ No newline at end of file
...@@ -50,7 +50,7 @@ spec: ...@@ -50,7 +50,7 @@ spec:
key: STORAGE_ENDPOINT key: STORAGE_ENDPOINT
volumeMounts: volumeMounts:
- name: app-cache - name: app-cache
mountPath: /app mountPath: /app/config
{{- if .Values.storageservice.init.resources }} {{- if .Values.storageservice.init.resources }}
resources: {{- toYaml .Values.storageservice.init.resources | nindent 12 }} resources: {{- toYaml .Values.storageservice.init.resources | nindent 12 }}
{{- else if ne .Values.storageservice.init.resourcesPreset "none" }} {{- else if ne .Values.storageservice.init.resourcesPreset "none" }}
......
...@@ -721,7 +721,7 @@ storageservice: ...@@ -721,7 +721,7 @@ storageservice:
init: init:
image: image:
## @skip storageservice.init.image.name ## @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: s3:
## @param storageservice.init.s3.endpoint The S3-capable endpoint the microservice connects to. ## @param storageservice.init.s3.endpoint The S3-capable endpoint the microservice connects to.
endpoint: http://storage-service-s3:8333 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