Skip to content

Commit c6745c7

Browse files
committed
Communalize Dockerfiles
1 parent 5ee31ce commit c6745c7

File tree

17 files changed

+53
-405
lines changed

17 files changed

+53
-405
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -12,152 +12,102 @@ jobs:
1212
strategy:
1313
matrix:
1414
include:
15-
- name: openrc-alpine
16-
dockerfile: openrc/alpine/Dockerfile
15+
- path: openrc/alpine
1716
platforms: |-
1817
linux/amd64
1918
tags: |-
2019
jrei/openrc-alpine:latest
21-
- name: aports-dev
22-
dockerfile: aports-dev/Dockerfile
20+
- path: aports-dev
2321
platforms: |-
2422
linux/amd64
2523
tags: |-
2624
jrei/aports-dev:latest
27-
- name: systemd-centos-7
28-
dockerfile: systemd/centos/7.Dockerfile
29-
platforms: |-
30-
linux/amd64
31-
linux/arm/v7
32-
linux/arm64
25+
- path: systemd/centos
26+
version: "7"
3327
tags: |-
3428
jrei/systemd-centos:7
35-
- name: systemd-centos-8
36-
dockerfile: systemd/centos/8.Dockerfile
29+
- path: systemd/centos
30+
version: "8"
3731
platforms: |-
3832
linux/amd64
3933
linux/arm64
4034
tags: |-
4135
jrei/systemd-centos:8
4236
jrei/systemd-centos:latest
43-
- name: systemd-debian-10
44-
dockerfile: systemd/debian/10.Dockerfile
45-
platforms: |-
46-
linux/amd64
47-
linux/arm/v7
48-
linux/arm64
37+
- path: systemd/debian
38+
version: "10"
4939
tags: |-
5040
jrei/systemd-debian:10
5141
jrei/systemd-debian:buster
52-
- name: systemd-debian-11
53-
dockerfile: systemd/debian/11.Dockerfile
54-
platforms: |-
55-
linux/amd64
56-
linux/arm/v7
57-
linux/arm64
42+
- path: systemd/debian
43+
version: "11"
5844
tags: |-
5945
jrei/systemd-debian:11
6046
jrei/systemd-debian:bullseye
61-
- name: systemd-debian-12
62-
dockerfile: systemd/debian/12.Dockerfile
63-
platforms: |-
64-
linux/amd64
65-
linux/arm/v7
66-
linux/arm64
47+
- path: systemd/debian
48+
version: "12"
6749
tags: |-
6850
jrei/systemd-debian:12
6951
jrei/systemd-debian:bookworm
7052
jrei/systemd-debian:latest
71-
- name: systemd-debian-13
72-
dockerfile: systemd/debian/13.Dockerfile
73-
platforms: |-
74-
linux/amd64
75-
linux/arm/v7
76-
linux/arm64
53+
- path: systemd/debian
54+
version: "trixie"
7755
tags: |-
7856
jrei/systemd-debian:13
7957
jrei/systemd-debian:trixie
80-
- name: systemd-debian-sid
81-
dockerfile: systemd/debian/sid.Dockerfile
82-
platforms: |-
83-
linux/amd64
84-
linux/arm/v7
85-
linux/arm64
58+
- path: systemd/debian
59+
version: "sid"
8660
tags: |-
8761
jrei/systemd-debian:sid
88-
- name: systemd-fedora-latest
89-
dockerfile: systemd/fedora/Dockerfile
62+
- path: systemd/fedora
63+
version: "latest"
9064
platforms: |-
9165
linux/amd64
9266
linux/arm64
9367
tags: |-
9468
jrei/systemd-fedora:latest
95-
- name: systemd-fedora-41
96-
dockerfile: systemd/fedora/41.Dockerfile
69+
- path: systemd/fedora
70+
version: "41"
9771
platforms: |-
9872
linux/amd64
9973
linux/arm64
10074
tags: |-
10175
jrei/systemd-fedora:41
102-
- name: systemd-fedora-42
103-
dockerfile: systemd/fedora/42.Dockerfile
76+
- path: systemd/fedora
77+
version: "42"
10478
platforms: |-
10579
linux/amd64
10680
linux/arm64
10781
tags: |-
10882
jrei/systemd-fedora:42
10983
jrei/systemd-fedora:latest
110-
- name: systemd-ubuntu-16.04
111-
dockerfile: systemd/ubuntu/16.04.Dockerfile
112-
platforms: |-
113-
linux/amd64
114-
linux/arm/v7
115-
linux/arm64
84+
- path: systemd/ubuntu
85+
version: "16.04"
11686
tags: |-
11787
jrei/systemd-ubuntu:16.04
11888
jrei/systemd-ubuntu:xenial
119-
- name: systemd-ubuntu-18.04
120-
dockerfile: systemd/ubuntu/18.04.Dockerfile
121-
platforms: |-
122-
linux/amd64
123-
linux/arm/v7
124-
linux/arm64
89+
- path: systemd/ubuntu
90+
version: "18.04"
12591
tags: |-
12692
jrei/systemd-ubuntu:18.04
12793
jrei/systemd-ubuntu:bionic
128-
- name: systemd-ubuntu-20.04
129-
dockerfile: systemd/ubuntu/20.04.Dockerfile
130-
platforms: |-
131-
linux/amd64
132-
linux/arm/v7
133-
linux/arm64
94+
- path: systemd/ubuntu
95+
version: "20.04"
13496
tags: |-
13597
jrei/systemd-ubuntu:20.04
13698
jrei/systemd-ubuntu:focal
137-
- name: systemd-ubuntu-22.04
138-
dockerfile: systemd/ubuntu/22.04.Dockerfile
139-
platforms: |-
140-
linux/amd64
141-
linux/arm/v7
142-
linux/arm64
99+
- path: systemd/ubuntu
100+
version: "22.04"
143101
tags: |-
144102
jrei/systemd-ubuntu:22.04
145103
jrei/systemd-ubuntu:jammy
146-
- name: systemd-ubuntu-24.04
147-
dockerfile: systemd/ubuntu/24.04.Dockerfile
148-
platforms: |-
149-
linux/amd64
150-
linux/arm/v7
151-
linux/arm64
104+
- path: systemd/ubuntu
105+
version: "24.04"
152106
tags: |-
153107
jrei/systemd-ubuntu:24.04
154108
jrei/systemd-ubuntu:noble
155-
- name: systemd-ubuntu-25.04
156-
dockerfile: systemd/ubuntu/25.04.Dockerfile
157-
platforms: |-
158-
linux/amd64
159-
linux/arm/v7
160-
linux/arm64
109+
- path: systemd/ubuntu
110+
version: "25.04"
161111
tags: |-
162112
jrei/systemd-ubuntu:25.04
163113
jrei/systemd-ubuntu:plucky
@@ -179,12 +129,13 @@ jobs:
179129
username: jrei
180130
password: ${{ secrets.DOCKER_HUB_TOKEN }}
181131

182-
- name: Build and push ${{ matrix.name }}
183-
uses: docker/build-push-action@v6
132+
- name: Build and push ${{ matrix.name }} ${{ matrix.version }}
133+
uses: docker/build-push-action@v3
184134
with:
185135
context: .
186-
file: ${{ matrix.dockerfile }}
187-
platforms: ${{ matrix.platforms }}
136+
build-args: ${{ matrix.version && format('VERSION={0}', matrix.version) }}
137+
file: ${{ matrix.path }}/Dockerfile
138+
platforms: ${{ matrix.platforms || 'linux/amd64,linux/arm/v7,linux/arm64' }}
188139
push: true
189140
tags: ${{ matrix.tags }}
190141
labels: |

systemd/centos/8.Dockerfile

Lines changed: 0 additions & 18 deletions
This file was deleted.

systemd/centos/7.Dockerfile renamed to systemd/centos/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM centos:7
1+
ARG VERSION
22

3-
ENV container docker
3+
FROM centos:${VERSION}
44

55
RUN cd /lib/systemd/system/sysinit.target.wants/; \
66
for i in *; do [ $i = systemd-tmpfiles-setup.service ] || rm -f $i; done

systemd/debian/10.Dockerfile

Lines changed: 0 additions & 27 deletions
This file was deleted.

systemd/debian/11.Dockerfile

Lines changed: 0 additions & 27 deletions
This file was deleted.

systemd/debian/12.Dockerfile

Lines changed: 0 additions & 27 deletions
This file was deleted.

systemd/debian/13.Dockerfile

Lines changed: 0 additions & 27 deletions
This file was deleted.

systemd/debian/sid.Dockerfile renamed to systemd/debian/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM debian:sid
1+
ARG VERSION
22

3-
ENV container docker
4-
ENV LC_ALL C
5-
ENV DEBIAN_FRONTEND noninteractive
3+
FROM debian:${VERSION}
4+
5+
ENV LC_ALL=C
6+
ENV DEBIAN_FRONTEND=noninteractive
67

78
RUN apt-get update \
89
&& apt-get install -y systemd systemd-sysv \

systemd/fedora/41.Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)