-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (33 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
IMAGE := ailispaw/barge
VERSION := 2.15.0
image: Dockerfile rootfs.tar.xz
docker build -t barge .
docker create --name barge barge
docker export barge | docker import \
-c 'ENTRYPOINT [ "dumb-init" ]' \
-c 'CMD [ "bash" ]' \
-m 'https://github.com/bargees/barge-docker-image' \
- $(IMAGE):docker
docker tag $(IMAGE):docker $(IMAGE):$(VERSION)-docker
docker rm barge
docker run --name barge barge rm -f /usr/bin/docker
docker export barge | docker import \
-c 'ENTRYPOINT [ "dumb-init" ]' \
-c 'CMD [ "bash" ]' \
-m 'https://github.com/bargees/barge-docker-image' \
- $(IMAGE)
docker tag $(IMAGE):latest $(IMAGE):$(VERSION)
docker rm barge
rootfs.tar.xz:
curl -L https://github.com/bargees/barge-os/releases/download/$(VERSION)/$(@F) -o $@
release:
docker push $(IMAGE):latest
docker push $(IMAGE):$(VERSION)
docker push $(IMAGE):docker
docker push $(IMAGE):$(VERSION)-docker
clean:
$(RM) -f rootfs.tar.xz
-docker rmi `docker images -q -f dangling=true`
-docker rmi barge $(IMAGE):latest $(IMAGE):$(VERSION)
-docker rmi barge $(IMAGE):docker $(IMAGE):$(VERSION)-docker
.PHONY: image release clean