-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (33 loc) · 927 Bytes
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: dependencies
run: setup
#podman-compose up # podman has better support for volume export/backup etc
docker-compose up
setup: venv dependencies
venv:
python3 -m venv venv
dependencies:
# ensure submodule dependencies
git submodule init
git submodule update
ls ./dependencies
# python dependencies
. ./activate && pip install -r requirements.txt
# install bundled/submodule python dependencies
. ./activate && cd ./dependencies/nsdf-software-stack && pip install -e .
secret:
openssl rand -hex 32
reset_db:
sudo rm -rf data/rest_endpoint_db_data/
mkdir -p data/rest_endpoint_db_data
backup-volumes:
# ensure backup directory
mkdir ./backup
# TODO: ensure containers using volumes in question are stopped
#podman-compose down
# run temporary container
restore-volumes:
# still decide on podman vs docker
@echo "Not implemented"
distclean:
docker-compose rm
rm -rf venv