-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstop-dev.sh
More file actions
executable file
·30 lines (25 loc) · 1.46 KB
/
Copy pathstop-dev.sh
File metadata and controls
executable file
·30 lines (25 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# =================================================================================================
# Project: SCAN - Searching Chemical Actions and Networks
# Hokkaido University (2021)
# Last Update: Q2 2023
# ________________________________________________________________________________________________
# Authors: Mikael Nicander Kuwahara (Lead Developer) [2022-]
# Jun Fujima (Former Lead Developer) [2021]
# NorthGrid (Support Dev)
# ________________________________________________________________________________________________
# Description: This is the file that closes the running docker-compose for the total project in a
# proper and safe manner, when running in dev mode, which updates all saved changes
# automatically to the browser without the need for restart.
# ------------------------------------------------------------------------------------------------
# Notes:
# ------------------------------------------------------------------------------------------------
# References:
# =================================================================================================
# Make sure the script exits if anything goes wrong
set -euxo pipefail
# Pass the current user- and group- id into docker-compose.yml
export USERID=$(id -u)
export GROUPID=$(id -g)
# Call Docker Compose Dev and ask it to close down all related docker containers
docker-compose -f docker-compose-dev.yml down