blob: c83d56ad63dfc9a93fd1076b11bce72c0eb7ef98 (
plain)
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
|
version := 0.10.1
kiwi := "kiwi-ng"
dice := "dice"
suse := $(shell sh -c '[ -f /etc/SUSE-brand ] && echo "suse"')
ifeq ($(suse), "suse")
image := "microadei.x86_64-$(version).docker.tar.xz"
else
image := "microadei.x86_64-$(version)-DiceBuild.docker.tar.xz"
endif
.PHONY: import push clean run
all: build/$(image)
install: push
build/$(image): adei/config.xml adei/config.sh
mkdir -p build ;\
rm -rf build/* ;\
if [ "$(suse)" = "suse" ]; then \
$(kiwi) --type docker system build --description adei/ --target-dir ./build/ ;\
du -sm build/build ;\
else \
$(dice) build adei ;\
tar xf adei/.dice/build_results.tar -C build/ ;\
fi
import: build/$(image)
docker load < build/$(image)
push: import
docker push chsa/microadei:latest
clean:
rm -rf build/* adei/.dice
#check: adei/config.xml
# jing /usr/lib64/python3*/site-packages/kiwi/schema/kiwi.rng adei/config.xml
run:
docker run -it chsa/microadei:latest /bin/bash
|