forked from italia/spid-shibboleth-proxy-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (36 loc) · 1.38 KB
/
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
35
36
37
38
39
40
41
SPID_ACS=$(shell cat myacs.xml | sed -e "s/^\s*//g" -e "s/$$\s*//g" | tr -d "\n")
VERSION=$(shell cat VERSION)
default: build
build:
docker build --tag spid-auth-proxy:$(VERSION) . && \
docker build --tag spid-auth-proxy:latest .
run: build
docker run -ti --rm \
-p 80:80 -p 443:443 \
-e SPID_ACS='$(SPID_ACS)' \
--env-file environment.env \
-v "$(shell pwd)/certs/saml:/opt/shibboleth-sp/certs:ro" \
-v "$(shell pwd)/certs/tls/server.crt:/etc/pki/tls/certs/server.crt:ro" \
-v "$(shell pwd)/certs/tls/server.key:/etc/pki/tls/private/server.key:ro" \
-v "$(shell pwd)/log:/var/log" \
spid-auth-proxy
run-bash: build
docker run -ti --rm \
-p 80:80 -p 443:443 \
-e SPID_ACS='$(SPID_ACS)' \
--env-file environment.env \
-v "$(shell pwd)/certs/saml:/opt/shibboleth-sp/certs:ro" \
-v "$(shell pwd)/certs/tls/server.crt:/etc/pki/tls/certs/server.crt:ro" \
-v "$(shell pwd)/certs/tls/server.key:/etc/pki/tls/private/server.key:ro" \
-v "$(shell pwd)/log:/var/log" \
spid-auth-proxy bash
first-run: build
docker run -ti --rm \
-p 80:80 -p 443:443 \
-e SPID_ACS='$(SPID_ACS)' \
--env-file environment.env \
-v "$(shell pwd)/certs/saml:/opt/shibboleth-sp/certs" \
-v "$(shell pwd)/certs/tls/server.crt:/etc/pki/tls/certs/server.crt:ro" \
-v "$(shell pwd)/certs/tls/server.key:/etc/pki/tls/private/server.key:ro" \
-v "$(shell pwd)/log:/var/log" \
spid-auth-proxy