-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from CMIPT/fix-deploy-kaiser
Substitute the Sys V init with systemd.
- Loading branch information
Showing
6 changed files
with
165 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
# USAGE: bash clean_ubuntu.sh [config_file] | ||
|
||
config_file=${1:-"config.json"} | ||
|
||
# TODO: reuse the log_error and log_info functions from deploy_ubuntu.sh | ||
log_error () { | ||
echo -e "\e[31m[ERROR]: $1\e[0m" | ||
exit 1 | ||
} | ||
|
||
log_info () { | ||
echo "[INFO]: $1" | ||
} | ||
|
||
log_info "Cleaning up..." | ||
python script/deploy_helper.py \ | ||
--config-path "$config_file" \ | ||
--clean \ | ||
--distro ubuntu \ | ||
--default-config-path ./config_default.json || \ | ||
log_error "Failed to run deploy_helper.py for cleaning up the environment" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
{ | ||
"name": "noname", | ||
"sex": "nosex", | ||
"age": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
{ | ||
"deploy": true, | ||
"createGitUser": false, | ||
"deployWithDocker": false, | ||
"repositoryDirectory": "~/.local/gcs/repository", | ||
"serviceUser": "gcs", | ||
"servicePassword": "gcs", | ||
"serviceName": "gcs", | ||
"postgresPassword": null, | ||
"debug": true, | ||
"runTest": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"deploy": true, | ||
"debug": false, | ||
"runTest": false, | ||
"createGitUser": true, | ||
"deployWithDocker": true, | ||
"repositoryDirectory": "/home/git/repositories", | ||
"postgresPassword": null, | ||
"serviceEnable": true, | ||
"serviceName": "gcs", | ||
"serviceSuffix": "service", | ||
"serviceDescription": "Git server center back-end service", | ||
"servicePIDFile": "/var/run/gcs.pid", | ||
"serviceUser": "gcs", | ||
"serviceUserPassword": null, | ||
"serviceWorkingDirectory": "/opt/gcs", | ||
"serviceRestartPolicy": "always", | ||
"serviceRestartDelaySecond": 5, | ||
"serviceStartJavaCommand": "/usr/bin/java", | ||
"serviceStartJavaArgs": [ | ||
"-jar" | ||
], | ||
"serviceStartJarFile": "/opt/gcs/gcs.jar", | ||
"serviceAfter": [ | ||
"network.target" | ||
], | ||
"serviceWantedBy": [ | ||
"multi-user.target" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters