mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 04:18:26 +00:00
Adds /pkg/vpnkit-forwarder which downloads and builds vpnkit-forwarder and vpnkit-expose-port from moby/vpnkit. Also includes an example for forwarding `sshd` and updates the documentation for `hyperkit` to include a `vpnkit` section. `vpnkit` still requires a 9P mount for coordination, so the `socat` forwarding is simpler to set up at the moment. Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
16 lines
387 B
Makefile
16 lines
387 B
Makefile
default: push
|
|
|
|
ORG?=linuxkit
|
|
IMAGE=vpnkit-forwarder
|
|
DEPS=$(wildcard *.go) Makefile Dockerfile
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --squash --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
|
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)
|
|
|