forked from rancher/websocket-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (28 loc) · 907 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (28 loc) · 907 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
TARGETS := $(shell ls scripts)
DAPPER_IMAGE ?= pasturestack-websocket-proxy-dapper:ubuntu26
DAPPER_SOURCE ?= /go/src/github.com/PastureStack/websocket-proxy
DOCKER_VERSION ?= 29.7.2
.dapper-image: Dockerfile.dapper
docker build \
--network "$${DOCKER_BUILD_NETWORK:-host}" \
--build-arg DAPPER_HOST_ARCH=$${DAPPER_HOST_ARCH:-amd64} \
--build-arg DOCKER_VERSION=$(DOCKER_VERSION) \
-t $(DAPPER_IMAGE) \
-f Dockerfile.dapper .
$(TARGETS): .dapper-image
docker run --rm \
-v $(CURDIR):$(DAPPER_SOURCE) \
-v /var/run/docker.sock:/var/run/docker.sock \
-e DAPPER_UID=$$(id -u) \
-e DAPPER_GID=$$(id -g) \
-e ARCH=$${ARCH:-amd64} \
-e DOCKER_BUILD_NETWORK \
-e TAG \
-e REPO \
-e VERSION_OVERRIDE \
-e SOURCE_DATE_EPOCH \
$(DAPPER_IMAGE) $@
deps:
@echo "Dependencies are locked by go.mod/go.sum and vendored for offline builds."
.DEFAULT_GOAL := ci
.PHONY: $(TARGETS) deps