Skip to content

Commit 843eb46

Browse files
authored
Merge pull request #483 from infosiftr/dind-git
Add `git` to `dind` variants (and make `git` an alias of `dind`, for 24.x and 25.x)
2 parents c0a2a6d + 485fefe commit 843eb46

9 files changed

+26
-62
lines changed

24/dind/Dockerfile

+6-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

24/git/Dockerfile

-9
This file was deleted.

25/dind/Dockerfile

+6-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

25/git/Dockerfile

-9
This file was deleted.

Dockerfile-dind.template

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
{{ include "shared" -}}
22
FROM docker:{{ env.version }}-cli
33

4-
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
4+
# https://github.com/moby/moby/blob/0eecd59153c03ced5f5ddd79cc98f29e4d86daec/project/PACKAGERS.md#runtime-dependencies
5+
# https://github.com/docker/docker-ce-packaging/blob/963aa02666035d4e268f33c63d7868d6cdd1d34c/deb/common/control#L28-L41
56
RUN set -eux; \
67
apk add --no-cache \
78
btrfs-progs \
89
e2fsprogs \
910
e2fsprogs-extra \
11+
git \
1012
ip6tables \
1113
iptables \
1214
openssl \
15+
pigz \
1316
shadow-uidmap \
1417
xfsprogs \
1518
xz \
16-
# pigz: https://github.com/moby/moby/pull/35697 (faster gzip implementation)
17-
pigz \
18-
; \
19-
# only install zfs if it's available for the current architecture
20-
# https://git.alpinelinux.org/cgit/aports/tree/main/zfs/APKBUILD?h=3.6-stable#n9 ("all !armhf !ppc64le" as of 2017-11-01)
21-
# "apk info XYZ" exits with a zero exit code but no output when the package exists but not for this arch
22-
if zfs="$(apk info --no-cache --quiet zfs)" && [ -n "$zfs" ]; then \
23-
apk add --no-cache zfs; \
24-
fi
25-
26-
# TODO aufs-tools
19+
zfs \
20+
;
2721

2822
# dind might be used on systems where the nf_tables kernel module isn't available. In that case,
2923
# we need to switch over to xtables-legacy. See https://github.com/docker-library/docker/issues/463

Dockerfile-git.template

-3
This file was deleted.

generate-stackbrew-library.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ versionArches() {
7777

7878
comm -12 \
7979
<(
80-
version="$version" jq -r '
80+
version="$version" jq -r --arg selector "$selector" '
8181
.[env.version].arches | to_entries[]
82-
| select(.value.'"$selector"')
82+
| select(.value[$selector])
8383
| .key
8484
' versions.json | sort
8585
) \
@@ -175,6 +175,12 @@ for version; do
175175
suiteAliases=( "${suiteAliases[@]//latest-/}" )
176176
variantAliases+=( "${suiteAliases[@]}" )
177177
if [ "$variant" = 'dind' ]; then
178+
# add "git" aliases https://github.com/docker-library/docker/issues/482#issuecomment-1955609423
179+
if [ "$version" = '24' ] || [ "$version" = '25' ]; then
180+
gitAliases=( "${versionAliases[@]/%/-git}" )
181+
gitAliases=( "${gitAliases[@]//latest-/}" )
182+
variantAliases+=( "${gitAliases[@]}" )
183+
fi
178184
# add "latest" aliases
179185
suiteAliases=( "${versionAliases[0]}" ) # only "X.Y.Z-foo"
180186
suiteAliases=( "${suiteAliases[@]/%/-alpine$alpine}" )

versions.json

-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@
134134
"cli",
135135
"dind",
136136
"dind-rootless",
137-
"git",
138137
"windows/windowsservercore-ltsc2022",
139138
"windows/windowsservercore-1809"
140139
],
@@ -276,7 +275,6 @@
276275
"cli",
277276
"dind",
278277
"dind-rootless",
279-
"git",
280278
"windows/windowsservercore-ltsc2022",
281279
"windows/windowsservercore-1809"
282280
],

versions.sh

-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ for version in "${versions[@]}"; do
267267
cli \
268268
dind \
269269
dind-rootless \
270-
git \
271270
windows/windowsservercore-ltsc2022 \
272271
windows/windowsservercore-1809 \
273272
; do

0 commit comments

Comments
 (0)