blob: 0f41b0ec24c828e3f7b8479ee599b00430cfe478 (
plain)
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
|
default:
@echo "There is no default target. Use: make <specific_target>"
setup-env: --start-certservice-and-ejbca --run-certservice-clients --start-local-secured-ves
start-ves-client:
docker-compose -f docker-compose-vesclient.yml up
restart-ves-client: --clean-ves-client start-ves-client
clean-all: --clean-ves-client --clean-env
--start-certservice-and-ejbca: --create-certservice-internal-certs --start-certservice-ejbca-containers --configure-ejbca
--start-certservice-ejbca-containers:
docker-compose -f docker-compose-certservice-ejbca.yml up -d
--create-certservice-internal-certs:
make -C resources/certs all
--configure-ejbca: --wait-for-ejbca --run-ejbca-script
--wait-for-ejbca:
@echo 'Waiting for EJBCA... It may take a minute or two'
until docker container inspect oomcert-ejbca | grep '"Status": "healthy"'; do sleep 3; done
--run-ejbca-script:
docker exec oomcert-ejbca /opt/primekey/scripts/ejbca-configuration.sh
--run-certservice-clients: --create-client-volumes
docker-compose -f docker-compose-certservice-clients.yml up -d
@echo 'Waiting for client certifiactes...'
@until ls -1 ./resources/certservice-client/client-volume-for-vesclient | grep "store" 1>/dev/null; do sleep 3; done
@until ls -1 ./resources/certservice-client/client-volume-for-ves | grep "store" 1>/dev/null; do sleep 3; done
@until ls -1 ./resources/certservice-client/client-volume-for-httpserver | grep "store" 1>/dev/null; do sleep 3; done
--create-client-volumes:
mkdir -p ./resources/certservice-client/client-volume-for-vesclient -m 777
mkdir -p ./resources/certservice-client/client-volume-for-ves -m 777
mkdir -p ./resources/certservice-client/client-volume-for-httpserver -m 777
--start-local-secured-ves:
docker-compose -f docker-compose-ves-dmaap.yml up
--clean-ves-client:
docker-compose -f docker-compose-vesclient.yml down
rm -rf ./resources/certservice-client/client-volume-for-vesclient || true
rm -rf ./resources/certservice-client/client-volume-for-httpserver || true
--clean-env:
docker-compose -f docker-compose-ves-dmaap.yml down
docker-compose -f docker-compose-certservice-clients.yml down
rm -rf ./resources/certservice-client/client-volume-for-vesclient || true
rm -rf ./resources/certservice-client/client-volume-for-ves || true
rm -rf ./resources/certservice-client/client-volume-for-httpserver || true
docker-compose -f docker-compose-certservice-ejbca.yml down
make -C resources/certs clear
|