-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
30 lines (21 loc) · 840 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
default: build debug
build:
docker build -t ck-vpn .
debug:
# TODO: Reduce permission required
# See https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities
# docker run --rm -it --privileged -p 500:500/udp -p 4500:4500/udp -v $(PWD)/debug.etc:/etc --name ck-vpn-debug ck-vpn
docker run --rm -it --privileged -p 80:80 -p 500:500/udp -p 4500:4500/udp --name ck-vpn-debug -e 'IPSEC_DEBUG_OPTIONS=--debug-all' ck-vpn
debug-shell:
docker exec -it --privileged ck-vpn-debug /bin/sh
run:
docker run
test: test-unit
test-unit:
bats tests/*.sh
test-from-vm:
docker run --rm -it --privileged ck-vpn charon-cmd --host 192.168.99.100 --identity tester.docker
test-from-osx-on-vm-ip:
sudo charon-cmd --host $(shell docker-machine ip) --identity tester.osx
bootstrap-osx:
brew install strongswan bats