mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 13:08:30 +00:00
This builds the dhcpcd package from a fixed Alpine 3.5 base and adds the dhcpcd daemon from the Alpine base image. This should make the build reproducible and allows us to use the git tree hash. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
15 lines
384 B
Makefile
15 lines
384 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
IMAGE=dhcpcd
|
|
DEPS=Dockerfile Makefile dhcpcd.conf usr/lib/dhcpcd/dhcpcd-hooks/10-mtu
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --squash --no-cache --network=none -t linuxkit/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
|
docker push linuxkit/$(IMAGE):$(HASH)
|