-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (26 loc) · 930 Bytes
/
Makefile
File metadata and controls
42 lines (26 loc) · 930 Bytes
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
40
41
RELEASE = ascii
PROJECT = devuan
REPO = qxip
CONTAINER = $(REPO)/$(PROJECT):$(RELEASE)
LATEST = $(REPO)/$(PROJECT):latest
TARGETDIR = debootstrap/devuan
all: preinstall debootstrap/devuan image
preinstall:
sudo apt-get install -y debootstrap dirmngr
debootstrap/devuan:
cd debootstrap && make install && sudo ./debootstrap --variant=minbase --components=main,contrib --include=dirmngr,apt-transport-https --no-check-gpg --arch amd64 $(RELEASE) devuan/ https://packages.devuan.org/merged/
image:
sudo chroot $(TARGETDIR) apt-get clean
cd debootstrap && sudo tar -C devuan -c . | docker import - $(CONTAINER)
docker images | grep devuan | grep $(RELEASE)
push:
docker push $(CONTAINER)
docker tag $(CONTAINER) $(LATEST)
docker push $(LATEST)
clean:
test -d $(TARGETDIR) && sudo rm -rf $(TARGETDIR); echo
ci: clean all
test1:
docker run -it $(CONTAINER) /bin/bash
test2:
docker run -it $(LATEST) /bin/bash