summaryrefslogtreecommitdiffstats
path: root/dockerfiles/build.sh.bak
diff options
context:
space:
mode:
Diffstat (limited to 'dockerfiles/build.sh.bak')
-rwxr-xr-xdockerfiles/build.sh.bak6
1 files changed, 3 insertions, 3 deletions
diff --git a/dockerfiles/build.sh.bak b/dockerfiles/build.sh.bak
index 1617a1c527..272424c872 100755
--- a/dockerfiles/build.sh.bak
+++ b/dockerfiles/build.sh.bak
@@ -1,6 +1,6 @@
# Configs of the docker images, you might have specify your own configs here.
# type of database, support 'mysql' and 'postgres'
-DB_TYPE="mysql"
+DB_TYPE="postgres"
DB_PASSWORD="YOUR_DB_PASSWORD"
DB_RUN_NAME="YOUR_DB_RUN_NAME"
HOST_PORT="YOUR_HOST_PORT"
@@ -9,8 +9,8 @@ HOST_PORT="YOUR_HOST_PORT"
sed -i "s/THE_DB_PASSWORD/$DB_PASSWORD/g" images/$DB_TYPE/Dockerfile
# Replace the database root password in gogits image deploy.sh file.
sed -i "s/THE_DB_PASSWORD/$DB_PASSWORD/g" images/gogits/deploy.sh
-# Replace the database type in gogits image Dockerfile.
-sed -i "s/THE_DB_TYPE/$DB_TYPE/g" images/gogits/Dockerfile
+# Replace the database type in gogits image deploy.sh file.
+sed -i "s/THE_DB_TYPE/$DB_TYPE/g" images/gogits/deploy.sh
# Build the database image
cd images/$DB_TYPE