-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
31 lines (23 loc) · 1.12 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
IMAGE_TAG:=aitorpazos/create-debian-iso
.PHONY: build
build: buildDebianBullseye buildUbuntuJammy buildKdeNeon
.PHONY: buildDebianBullseye
buildDebianBullseye:
docker build --rm --build-arg DISTRO=debian --build-arg DISTRO_VERSION=bullseye -t $(IMAGE_TAG) -t $(IMAGE_TAG):debian-bullseye .
.PHONY: buildUbuntuJammy
buildUbuntuJammy:
docker build --rm --build-arg DISTRO=ubuntu --build-arg DISTRO_VERSION=jammy -t $(IMAGE_TAG) -t $(IMAGE_TAG):ubuntu-jammy .
.PHONY: buildKdeNeon
buildKdeNeon:
docker build --rm --build-arg DISTRO=ubuntu --build-arg DISTRO_VERSION=jammy --build-arg DISTRO_FLAVOR=neon -t $(IMAGE_TAG) -t $(IMAGE_TAG):kde-neon .
.PHONY: test
test: testExampleBullseye testExampleJammy testExampleNeon
.PHONY: testExampleBullseye
testExampleBullseye:
docker run -t --rm --privileged -v $(shell pwd)/example:/root/files $(IMAGE_TAG):debian-bullseye
.PHONY: testExampleJammy
testExampleJammy:
docker run -t --rm --privileged -v $(shell pwd)/example:/root/files $(IMAGE_TAG):ubuntu-jammy
.PHONY: testExampleNeon
testExampleNeon:
docker run -t --rm --privileged -v $(shell pwd)/example:/root/files $(IMAGE_TAG):kde-neon