1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/alpine-arm/README.md

55 lines
1.0 KiB
Markdown
Raw Normal View History

2015-09-19 17:52:35 +02:00
alpine-arm
==========
![](https://badge.imagelayers.io/vimagick/alpine-arm:latest.svg)
# Makefile
```
#
# make alpine-arm image
#
RELEASE = edge
2015-09-25 06:23:12 +02:00
IMAGE = vimagick/alpine-arm
2015-09-19 17:52:35 +02:00
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
2016-01-08 05:51:39 +02:00
sed -i -r -e '/docker import/s@alpine:\$$REL@vimagick/alpine-arm:$${REL#v}@' \
2015-09-19 17:52:35 +02:00
-e '/docker (tag|run)/d' mkimage-alpine.sh
chmod +x mkimage-alpine.sh
2015-09-25 06:23:12 +02:00
latest:
docker tag $(IMAGE):$(RELEASE:v%=%) vimagick/alpine-arm:latest
2015-09-19 17:52:35 +02:00
push:
2015-09-25 06:23:12 +02:00
docker push $(IMAGE):$(RELEASE:v%=%)
test:
docker run --rm $(IMAGE):$(RELEASE:v%=%) uname -a
2015-09-19 17:52:35 +02:00
clean:
rm -f mkimage-alpine.sh rootfs.tar.xz
```
## Make Images
```
$ make RELEASE=edge
2015-09-25 06:23:12 +02:00
$ make test RELEASE=edge
$ make push RELEASE=edge
2015-09-19 17:52:35 +02:00
$ make clean
2015-09-25 06:23:12 +02:00
2016-01-08 05:51:39 +02:00
$ make RELEASE=v3.3
$ make test RELEASE=v3.3
$ make push RELEASE=v3.3
2015-09-25 06:23:12 +02:00
$ make clean
2016-01-08 05:51:39 +02:00
$ make latest RELEASE=v3.3
2015-09-25 06:23:12 +02:00
$ make test RELEASE=latest
2015-09-19 17:52:35 +02:00
$ make push RELEASE=latest
```