Spaces:
Sleeping
Sleeping
inoki-giskard
commited on
Commit
•
fda5797
1
Parent(s):
e9f1199
Create run dir under datadir for non-mounted space
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -18,7 +18,10 @@ RUN apt-get update && \
|
|
18 |
# Use HF persistent storage under /data if mounted
|
19 |
ENV GISKARD_HF_DATA_DIR=/data/giskard/datadir
|
20 |
RUN mkdir -p "${GISKARD_HF_DATA_DIR}" && chown -R giskard "${GISKARD_HF_DATA_DIR}"
|
|
|
|
|
21 |
ENV PGDATA=$GISKARD_HF_DATA_DIR/database
|
|
|
22 |
|
23 |
# Keep the original GSK_HOME for supervisord run files
|
24 |
# We can still bring up supervisord in case of the persistent storage not working
|
|
|
18 |
# Use HF persistent storage under /data if mounted
|
19 |
ENV GISKARD_HF_DATA_DIR=/data/giskard/datadir
|
20 |
RUN mkdir -p "${GISKARD_HF_DATA_DIR}" && chown -R giskard "${GISKARD_HF_DATA_DIR}"
|
21 |
+
|
22 |
+
# Create or declare subdirs under GISKARD_HF_DATA_DIR
|
23 |
ENV PGDATA=$GISKARD_HF_DATA_DIR/database
|
24 |
+
RUN mkdir -p "${GISKARD_HF_DATA_DIR}/run" && chown -R giskard "${GISKARD_HF_DATA_DIR}/run"
|
25 |
|
26 |
# Keep the original GSK_HOME for supervisord run files
|
27 |
# We can still bring up supervisord in case of the persistent storage not working
|