forked from opencve/opencve-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 779 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
EXEC=docker exec
COMPOSE=docker-compose
# Initialize the database
upgrade: up
$(EXEC) -it webserver opencve upgrade-db
# Build the OpenCVE image
build:
$(COMPOSE) build
# Create the containers and start them
up: build
$(COMPOSE) up -d postgres redis webserver celery_worker
# Import the data
import:
$(EXEC) -it webserver opencve import-data
import-light:
$(EXEC) -it webserver opencve import-data-light
# Create and start the beat
beat:
$(COMPOSE) up -d celery_beat
# CARE : This will remove any unused volume
clean:
-docker container stop celery_worker webserver postgres redis celery_beat
-docker container rm celery_worker webserver postgres redis celery_beat
-docker network rm opencve-docker_backend
-docker volume prune -f
.PHONY: build up upgrade import