-
Notifications
You must be signed in to change notification settings - Fork 71
/
Makefile
24 lines (17 loc) · 1.17 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
.PHONY: docker link setup gateway ci
GATEWAY_NETWORK=gateway
docker:
docker build -t fractalnetworks/selfhosted-gateway:latest ./src/gateway/
docker build -t fractalnetworks/gateway-link:latest ./src/gateway-link/
docker build -t fractalnetworks/gateway-client:latest ./src/client-link/
docker build -t fractalnetworks/gateway-cli:latest ./src/create-link/
setup:
docker network create $(GATEWAY_NETWORK)
gateway: docker
docker run --network $(GATEWAY_NETWORK) --restart unless-stopped -p 80:80 -p 443:443 -e NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx -it -d fractalnetworks/selfhosted-gateway:latest
link:
docker run -e GATEWAY_NETWORK=$(GATEWAY_NETWORK) -e SSH_AGENT_PID=$$SSH_AGENT_PID -e SSH_AUTH_SOCK=$$SSH_AUTH_SOCK -v $$SSH_AUTH_SOCK:$$SSH_AUTH_SOCK -v "$$PWD:/workdir" --rm -it fractalnetworks/gateway-cli:latest $(GATEWAY) $(FQDN) $(EXPOSE)
link-macos:
docker run -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock -e GATEWAY_NETWORK=$(GATEWAY_NETWORK) -e SSH_AUTH_SOCK="/run/host-services/ssh-auth.sock" -v "$$PWD:/workdir" --rm -it fractalnetworks/gateway-cli:latest $(GATEWAY) $(FQDN) $(EXPOSE)
link-ci:
./ci/create-link-ci.sh $(GATEWAY) $(FQDN) nginx:80