-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 1.39 KB
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 1.39 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
31
32
33
34
build-dev:
docker-compose -f docker-compose_dev.yaml build
build-dev-nocache:
docker-compose -f docker-compose_dev.yaml build --no-cache
build-dependencies:
docker build --tag ghcr.io/jsandas/alpine-saltstack:3.16 -f dockerfiles/Dockerfile-alpine3.16 .
docker build --tag ghcr.io/jsandas/centos-saltstack:7 -f dockerfiles/Dockerfile-centos7 .
docker build --tag ghcr.io/jsandas/opensuseleap-saltstack:15.4 -f dockerfiles/Dockerfile-opensuseleap15.4 .
docker build --tag ghcr.io/jsandas/ubuntu-saltstack:20.04 -f dockerfiles/Dockerfile-ubuntu2004 .
clean: stop-dev
rm -rf data_files/data
fresh: clean build-dev-nocache run-dev
run-dev:
docker-compose -f docker-compose_dev.yaml pull --quiet --ignore-pull-failures
docker-compose -f docker-compose_dev.yaml up -d
sleep 5
docker-compose -f docker-compose_dev.yaml exec salt-master sh -c "salt \* saltutil.sync_all" > /dev/null 2>&1
docker-compose -f docker-compose_dev.yaml stop down-minion
docker-compose -f docker-compose_dev.yaml exec saltui sh -c "wait-for postgres:5432 -t 30 -- python manage.py migrate"
docker-compose -f docker-compose_dev.yaml exec saltui sh -c "python manage.py createsuperuser --noinput || true"
stop-dev:
docker-compose -f docker-compose_dev.yaml down
saltui-cmd:
docker-compose -f docker-compose_dev.yaml exec -it -w /opt/saltui saltui sh
salt-cmd:
docker-compose -f docker-compose_dev.yaml exec -it -w /srv salt-master sh