Skip to content

Commit db181c8

Browse files
Change default data path to /data (#227)
This PR change the default data path to /data as it's more common
1 parent 57706dd commit db181c8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/containers/Build-Ubuntu/Dockerfile_gateway

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ENV LANGUAGE=en_US.UTF-8 \
5454
ENV ENFORCE_SSL="true" \
5555
CERT_PATH="" \
5656
KEY_FILE="" \
57-
DATA_PATH="/home/documentdb/postgresql/data" \
57+
DATA_PATH="/data" \
5858
DOCUMENTDB_PORT="10260" \
5959
ENABLE_TELEMETRY="false" \
6060
LOG_LEVEL="info" \

scripts/emulator_entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Optional arguments:
2222
--data-path [PATH] Specify a directory for data. Frequently used with docker run --mount option
2323
(e.g. if DATA_PATH=/usr/documentdb/data, you'd add an option like the following to your
2424
docker run: --mount type=bind,source=./.local/data,target=/usr/documentdb/data)
25-
Defaults to /home/documentdb/postgresql/data
25+
Defaults to /data
2626
Overrides DATA_PATH environment variable.
2727
--documentdb-port The port of the DocumentDB endpoint on the container.
2828
You still need to publish this port (e.g. -p 10260:10260).
@@ -149,7 +149,7 @@ done
149149

150150
# Set default values if not provided
151151
export OWNER=${OWNER:-$(whoami)}
152-
export DATA_PATH=${DATA_PATH:-/home/documentdb/postgresql/data}
152+
export DATA_PATH=${DATA_PATH:-/data}
153153
export DOCUMENTDB_PORT=${DOCUMENTDB_PORT:-10260}
154154
export POSTGRESQL_PORT=${POSTGRESQL_PORT:-9712}
155155
export USERNAME=${USERNAME:-default_user}

scripts/start_oss_server.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if [ "$help" == "true" ]; then
5555
echo "${green}[-x] - start oss server with documentdb_distributed extension"
5656
echo "${green}[-e] - optional argument. Allows PostgreSQL access from any IP address"
5757
echo "${green}[-p <port>] - optional argument. specifies the port for the coordinator"
58-
echo "${green}if postgresDir not specified assumed to be /home/documentdb/postgresql/data"
58+
echo "${green}if postgresDir not specified assumed to be /data"
5959
exit 1;
6060
fi
6161

@@ -97,7 +97,7 @@ scriptDir="$( cd -P "$( dirname "$source" )" && pwd )"
9797
. $scriptDir/utils.sh
9898

9999
if [ -z $postgresDirectory ]; then
100-
postgresDirectory="/home/documentdb/postgresql/data"
100+
postgresDirectory="/data"
101101
fi
102102

103103
# Only initialize if directory doesn't exist, is empty, or doesn't contain a valid PostgreSQL data directory

0 commit comments

Comments
 (0)