1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/alpine-arm/README.md
2015-09-25 12:23:12 +08:00

1.0 KiB

alpine-arm

Makefile

#
# make alpine-arm image
#

RELEASE = edge
IMAGE = vimagick/alpine-arm

rootfs.tar.xz: mkimage-alpine.sh
	ARCH=armhf ./mkimage-alpine.sh -r $(RELEASE) -s

mkimage-alpine.sh:
	curl -sSLO https://github.com/docker/docker/raw/master/contrib/mkimage-alpine.sh
	sed -i -r -e 's/-Oxz/& APKINDEX/' \
	          -e '/docker import/s@alpine:\$$REL@vimagick/alpine-arm:$${REL#v}@' \
	          -e '/docker (tag|run)/d' mkimage-alpine.sh
	chmod +x mkimage-alpine.sh

latest:
	docker tag $(IMAGE):$(RELEASE:v%=%) vimagick/alpine-arm:latest

push:
	docker push $(IMAGE):$(RELEASE:v%=%)

test:
	docker run --rm $(IMAGE):$(RELEASE:v%=%) uname -a

clean:
	rm -f mkimage-alpine.sh rootfs.tar.xz

Make Images

$ make RELEASE=edge
$ make test RELEASE=edge
$ make push RELEASE=edge
$ make clean

$ make RELEASE=v3.2
$ make test RELEASE=v3.2
$ make push RELEASE=v3.2
$ make clean

$ make latest RELEASE=v3.2
$ make test RELEASE=latest
$ make push RELEASE=latest