From 3f984f98ad42a2e580aab6d02b33a81689c00bee Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 19 Sep 2015 23:52:35 +0800 Subject: [PATCH] add alpine-arm --- README.md | 2 ++ alpine-arm/Makefile | 21 +++++++++++++++++++++ alpine-arm/README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 alpine-arm/Makefile create mode 100644 alpine-arm/README.md diff --git a/README.md b/README.md index 5e035d6..19e90c5 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ dockerfiles ## DONE +- [x] alpine-arm :+1: - [x] aria2 :+1: - [x] audiowaveform - [x] bro @@ -37,6 +38,7 @@ dockerfiles - [x] joomla - [x] mantisbt - [x] monit +- [x] nginad - [x] nginx - [x] obfsproxy - [x] opencart diff --git a/alpine-arm/Makefile b/alpine-arm/Makefile new file mode 100644 index 0000000..b2ebce1 --- /dev/null +++ b/alpine-arm/Makefile @@ -0,0 +1,21 @@ +# +# make alpine-arm image +# + +RELEASE = edge + +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 + +push: + docker push vimagick/alpine-arm:$(RELEASE:v%=%) + +clean: + rm -f mkimage-alpine.sh rootfs.tar.xz diff --git a/alpine-arm/README.md b/alpine-arm/README.md new file mode 100644 index 0000000..7c0304a --- /dev/null +++ b/alpine-arm/README.md @@ -0,0 +1,44 @@ +alpine-arm +========== + +![](https://badge.imagelayers.io/vimagick/alpine-arm:latest.svg) + +# Makefile + +``` +# +# make alpine-arm image +# + +RELEASE = edge + +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 + +push: + docker push vimagick/alpine-arm:$(RELEASE:v%=%) + +clean: + rm -f mkimage-alpine.sh rootfs.tar.xz +``` + +## Make Images + +``` +$ make RELEASE=edge +$ make clean +$ make RELEASE=v3.2 +$ docker tag vimagick/alpine-arm:3.2 vimagick/alpine-arm:latest +$ docker run --rm vimagick/alpine-arm:edge uname -a +$ docker run --rm vimagick/alpine-arm:3.2 uname -a +$ make push RELEASE=edge +$ make push RELEASE=v3.2 +$ make push RELEASE=latest +```