Adjust docker container for console's CI pipeline

This commit is contained in:
Dmitry Ivanov
2021-08-25 13:48:31 +03:00
parent 19fcea99da
commit 3edad463fb
2 changed files with 3 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ RUN rm -rf postgres_install/build && \
cd postgres_install && tar -czf /data/postgres_install.tar.gz . && cd .. && \
rm -rf postgres_install
RUN useradd -m -d /data zenith
RUN useradd -d /data zenith && chown -R zenith:zenith /data
VOLUME ["/data"]
USER zenith

View File

@@ -1,4 +1,6 @@
#!/bin/sh
set -eux
if [ "$1" = 'pageserver' ]; then
if [ ! -d "/data/tenants" ]; then
echo "Initializing pageserver data directory"