mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
updated alpine-arm
This commit is contained in:
parent
0bd71c4d96
commit
de261f7588
@ -1,41 +1,10 @@
|
||||
alpine-arm
|
||||
==========
|
||||
|
||||
:warning: This project has been moved to [here][1]!
|
||||
|
||||
![](https://badge.imagelayers.io/vimagick/alpine-arm:latest.svg)
|
||||
|
||||
# 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 '/trap /s@@chmod 0755 $$TMP $$ROOTFS; &@' \
|
||||
-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
|
||||
|
||||
```
|
||||
@ -55,3 +24,5 @@ $ make latest RELEASE=v3.3
|
||||
$ make test RELEASE=latest
|
||||
$ make push RELEASE=latest
|
||||
```
|
||||
|
||||
[1]: https://github.com/EasyPi/alpine-arm
|
||||
|
Loading…
Reference in New Issue
Block a user