-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.sh
More file actions
executable file
·28 lines (23 loc) · 895 Bytes
/
debug.sh
File metadata and controls
executable file
·28 lines (23 loc) · 895 Bytes
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
#!/usr/bin/env bash
if [ ! -f .env ]; then
echo "Missing dev env"
exit 1
fi
# Spin down any running containers
docker kill $(docker ps -q) && docker rm $(docker ps -a -q)
# Create network (allows containers to talk to each other by name instead of ip address)
docker network create cvepets
# Build image using new BuildKit engine
docker compose -f docker-compose.yml \
-f docker-compose.next.yml \
-f docker-compose.next.local.yml \
-f docker-compose.openvas.yml \
build --parallel
# Spin up development containers
# --renew-anon-volumes prevents Postgres from retrieving volumes from previous containers after being killed
# --remove-orphans removes any renamed containers
docker compose -f docker-compose.yml \
-f docker-compose.next.yml \
-f docker-compose.next.local.yml \
-f docker-compose.openvas.yml \
up --renew-anon-volumes --remove-orphans