summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-07-31 15:46:25 -0700
committerMike Crute <mike@crute.us>2023-07-31 15:46:25 -0700
commitd7d77fd1c9035ec6356abb57a5486f0a13029628 (patch)
treecc9528787aa42171fee791bb69148c346ae4b2d9 /Makefile
parentcfbb1efaea31c498433db43cb507f54545c724f5 (diff)
downloadwebsocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.tar.bz2
websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.tar.xz
websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.zip
Make docker build work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cc3fc5f..6baad7f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ IMAGE=docker.crute.me/ssh-proxy
2BINARY=ssh-proxy 2BINARY=ssh-proxy
3CLIENT_BINARY=ssh-proxy-client 3CLIENT_BINARY=ssh-proxy-client
4 4
5$(BINARY): $(CLIENT_BINARY) $(shell find . -name '*.go') 5$(BINARY): $(CLIENT_BINARY) $(shell find . -name '*.go' -o -name '*.tpl' -o -name '*.js')
6 @[ "$(CLIENT_ID)" ] || ( echo "CLIENT_ID must be set"; exit 1 ) 6 @[ "$(CLIENT_ID)" ] || ( echo "CLIENT_ID must be set"; exit 1 )
7 7
8 CGO_ENABLED=0 go build \ 8 CGO_ENABLED=0 go build \
@@ -26,7 +26,7 @@ vet: main.go
26 26
27.PHONY: docker 27.PHONY: docker
28docker: $(BINARY) 28docker: $(BINARY)
29 mkdir docker; cp Dockerfile web-server docker; cd docker; \ 29 mkdir docker; cp Dockerfile $(BINARY) docker; cd docker; \
30 docker pull $(shell grep '^FROM ' Dockerfile | cut -d' ' -f2); \ 30 docker pull $(shell grep '^FROM ' Dockerfile | cut -d' ' -f2); \
31 docker build --no-cache -t $(IMAGE):stage . 31 docker build --no-cache -t $(IMAGE):stage .
32 32
@@ -58,6 +58,6 @@ run-web: clean $(BINARY)
58 test -n "$(VAULT_SECRET_ID)" # Caller must also export VAULT_SECRET_ID 58 test -n "$(VAULT_SECRET_ID)" # Caller must also export VAULT_SECRET_ID
59 VAULT_ADDR="https://vault.sea4.crute.me:8200" \ 59 VAULT_ADDR="https://vault.sea4.crute.me:8200" \
60 VAULT_SKIP_VERIFY=true \ 60 VAULT_SKIP_VERIFY=true \
61 ./$(BINARY) --debug \ 61 ./$(BINARY) \
62 --hostname=dev.ssh-proxy.crute.me \ 62 --hostname=dev.ssh-proxy.crute.me \
63 web 63 web