Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: mkdir -p /var/opt/bytebase/pgdata-demo to fix docker permission error (#4522)

Tianzhou (天舟)dc4c5c770eb7
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 0870e52cc6..0169f78886 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -75,6 +75,9 @@ RUN addgroup --gid 113 --system bytebase && adduser --uid 113 --system bytebase
# Directory to store the data, which can be referenced as the mounting point.
RUN mkdir -p /var/opt/bytebase
+# Directory to store the demo data.
+RUN mkdir -p /var/opt/bytebase/pgdata-demo
+
ENV OPENSSL_CONF /etc/ssl/
# Copy utility scripts, we have
diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demo
index c80f39435a..c0825f0d9a 100644
--- a/scripts/Dockerfile.render-demo
+++ b/scripts/Dockerfile.render-demo
@@ -84,6 +84,9 @@ RUN addgroup --gid 113 --system bytebase && adduser --uid 113 --system bytebase
# Directory to store the data, which can be referenced as the mounting point.
RUN mkdir -p /var/opt/bytebase
+# Directory to store the demo data.
+RUN mkdir -p /var/opt/bytebase/pgdata-demo
+
ENV OPENSSL_CONF /etc/ssl/
CMD ["--port", "80", "--data", "/var/opt/bytebase"]