-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 942 Bytes
/
Makefile
File metadata and controls
44 lines (32 loc) · 942 Bytes
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
.PHONY: test
build:
@chmod +x docker-entrypoint.sh cgi-bin/*.sh
@docker build --no-cache -t javanile/proxy .
start: build
docker run --rm -d -p 80:80 -p 443:443 -v proxy:/data --name proxy javanile/proxy
stop:
docker stop proxy || true
logs:
@docker logs -f proxy
validate: build
@docker run --rm -p 8080:80 -p 8443:443 --name proxy javanile/proxy
release: build
git config credential.helper 'cache --timeout=3600'
git add .
git commit -m "Release" || true
git push
update: stop
@git pull
@make -s start
test:
@#bash tests/webrequest-test.sh
@bash tests/binst-test.sh
test-binst:
@bash tests/binst-test.sh
test-log:
@bash tests/log-test.sh
test-localhost: build
@docker kill proxy-test || true
@docker run -d --rm -p 8080:80 -p 8443:443 --name proxy-test javanile/proxy
@sleep 1
@curl -i -H "Custom-Header: test" -H "Host: localhost" -H "Port: 8183" "http://localhost:8080/debug.sh?a=1&b=2" -d '{"a":1,"b":3}'