Skip to content

Commit 4bd9c00

Browse files
update restart.sh (remove apache/ssl setup; update docker build command)
1 parent 5728e9c commit 4bd9c00

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

scripts/restart.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
#! /bin/bash
2-
VERSION_FILE_NAME="VERSION.json"
3-
new_image="base_image"
4-
old_image="base_image:old"
52

3+
set -e
64

7-
apache_config_filename=${1}
8-
apache_ssl_mod=${2:-''}
9-
sudo scripts/setup_apache_config.sh $apache_config_filename $apache_ssl_mod
5+
VERSION_FILE_NAME="VERSION.json"
106

117
VERSION_FILE_PATH="$(dirname $(dirname $(readlink -f $0)))/$VERSION_FILE_NAME"
12-
scripts/version.sh > $VERSION_FILE_PATH
8+
./scripts/version.sh > $VERSION_FILE_PATH
139

14-
mkdir -p ../mongo_data
10+
docker-compose stop
1511

16-
docker-compose down
17-
docker tag $new_image $old_image
18-
docker-compose build --no-cache
19-
docker rmi $old_image
12+
docker-compose --project-name wst_test_build build --no-cache
13+
docker-compose build
2014

2115
APP_CONF=../app_conf/config.ini docker-compose up -d --remove-orphans

0 commit comments

Comments
 (0)