-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerClone-2-NAS-Setup.sh
executable file
·39 lines (24 loc) · 1.11 KB
/
dockerClone-2-NAS-Setup.sh
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
31
32
33
34
35
36
37
38
#!/usr/bin/env zsh
# Make sure NAS mounted
# place this file in /Volumes/docker/paycheck-cloud
# chmod +x dockerClone-2-NAS-Setup.sh
# run it to upgdate the mysql_python repo
cd /Volumes/docker/paycheck-cloud/paycheck-cloud
# remove the old repo
rm -rf paycheck
# clone new one in place
git clone https://github.com/UnacceptableBehaviour/paycheck
# cp default_GET_file.json to _persistent_store - debugging TODO remove when done!
cd paycheck
# update the docker-compose.yml in Project on NAS from docker-compose-NAS.yml IF NEEDED
# copy 'unmanaged' private config files over - from original repo
# none in this case
#mkdir scratch
# want _persistent_store to persist across rebuilds - so map it to a volume in compose file
#cd ..
#cp /any/necessary/support/files/to/container.txt ./_persistent_store
# This is now stored off container at: /Volumes/docker/paycheck-cloud/paycheck-cloud/_persistent_store
# and that is mapped in the container to
# ??
# shift pay cycle entries are retained in the _persistent_store when the conatiner is rebuilt
# that gets things ready for container manager to build paycheck container