-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (34 loc) · 1.45 KB
/
Makefile
File metadata and controls
52 lines (34 loc) · 1.45 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DOCKER_DIR=$(shell basename $(dir $$PWD/.))
IMAGE = whiterabbitsecurity/openxpki3
-include Makefile.local
help:
@grep '^[a-zA-Z]' Makefile | sort | awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
test:
$(info $(DOCKER_DIR))
build: ## rebuild openxpki image using Dockerfile
docker build -t $(IMAGE) .
build-nocache: ## rebuild openxpki image using Dockerfile
docker build --no-cache -t $(IMAGE) .
prune: ## prune unused images (all!)
docker image prune -f
init: openxpki-config ## clone initial config from github
openxpki-config:
git clone https://github.com/openxpki/openxpki-config --single-branch --branch=community
compose: openxpki-config ## call docker-compose, implies init
docker compose up -d web
sample-config: ## run the sampleconfig script
docker compose exec -u pkiadm server /bin/bash /etc/openxpki/contrib/sampleconfig.sh
pkiadm:
docker compose exec -u pkiadm server /bin/bash
restart-client: ## restart the client container
docker compose restart client
restart-server: ## restart the server container
docker compose restart server
restart-webui: ## restart the server container
docker compose restart web
clean: ## remove containers but keep volumes
docker compose stop && docker compose rm
purge: clean ## remove containers and volumes
docker volume rm $(COMPOSE_PROJECT_NAME)_openxpkidb $(COMPOSE_PROJECT_NAME)_openxpkilog $(COMPOSE_PROJECT_NAME)_openxpkisocket || /bin/true
purge-all: purge
rm -rf openxpki-config