-
Notifications
You must be signed in to change notification settings - Fork 6
/
mapping.go
165 lines (155 loc) · 3.71 KB
/
mapping.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package cli
import (
_ "embed"
"github.com/Azure/moby-packaging/pkg/archive"
)
// #!/usr/bin/dh-exec
var (
//go:embed postinstall/deb/postinstall
debPostInst string
//go:embed postinstall/rpm/postinstall
rpmPostInst string
Archives = map[string]archive.Archive{
"bookworm": DebArchive,
"buster": DebArchive,
"bullseye": DebArchive,
"bionic": DebArchive,
"focal": DebArchive,
"centos7": RPMArchive,
"rhel8": RPMArchive,
"rhel9": RPMArchive,
"windows": BaseArchive,
"jammy": DebArchive,
"noble": DebArchive,
"mariner2": MarinerArchive,
}
BaseArchive = archive.Archive{
Name: "moby-cli",
Webpage: "https://github.com/docker/cli",
Files: []archive.File{
{
Source: "/build/src/build/docker",
Dest: "/usr/bin/docker",
},
{
Source: "/build/src/contrib/completion/zsh/_docker",
Dest: "/usr/share/zsh/vendor-completions/_docker",
},
{
Source: "/build/legal/LICENSE",
Dest: "/usr/share/doc/moby-cli/LICENSE",
},
{
Source: "/build/legal/NOTICE",
Dest: "/usr/share/doc/moby-cli/NOTICE.gz",
Compress: true,
},
{
Source: "/build/src/contrib/completion/bash/docker",
Dest: "/usr/share/bash-completion/completions/docker",
Compress: true,
},
},
Systemd: []archive.Systemd{},
Postinst: []string{
"/build/debian/moby-cli.postinst",
},
Binaries: []string{"/build/src/build/docker"},
WinBinaries: []string{"/build/src/build/docker.exe"},
Description: `Docker container platform (client package)
Docker is a platform for developers and sysadmins to develop, ship, and run
applications. Docker lets you quickly assemble applications from components and
eliminates the friction that can come when shipping code. Docker lets you get
your code tested and deployed into production as fast as possible.
.
This package provides the "docker" client binary (and supporting files).`,
}
DebArchive = archive.Archive{
Name: BaseArchive.Name,
Webpage: BaseArchive.Webpage,
Files: BaseArchive.Files,
Binaries: []string{"/build/src/build/docker"},
RuntimeDeps: []string{},
Recommends: []string{
"ca-certificates",
"git",
"moby-buildx",
"pigz",
"xz-utils",
},
Suggests: []string{
"moby-engine",
},
Conflicts: []string{
"docker",
"docker-ce",
"docker-ce-cli",
"docker-ee",
"docker-ee-cli",
"docker-engine",
"docker-engine-cs",
"docker.io",
"lxc-docker",
"lxc-docker-virtual-package",
},
Replaces: []string{
"docker",
"docker-ce",
"docker-ce-cli",
"docker-ee",
"docker-ee-cli",
"docker-engine",
"docker-engine-cs",
"docker.io",
"lxc-docker",
"lxc-docker-virtual-package",
},
InstallScripts: []archive.InstallScript{
{
When: archive.PkgActionPostInstall,
Script: debPostInst,
},
},
Description: BaseArchive.Description,
}
RPMArchive = archive.Archive{
Name: BaseArchive.Name,
Webpage: BaseArchive.Webpage,
Files: BaseArchive.Files,
Binaries: []string{"/build/src/build/docker"},
RuntimeDeps: []string{
"/bin/sh",
"container-selinux >= 2:2.95",
"device-mapper-libs >= 1.02.90-1",
"iptables",
"libcgroup",
"moby-containerd >= 1.3.9",
"moby-runc >= 1.0.2",
"systemd-units",
"tar",
"xz",
},
InstallScripts: []archive.InstallScript{
{
When: archive.PkgActionPostInstall,
Script: rpmPostInst,
},
},
Description: BaseArchive.Description,
}
MarinerArchive = func() archive.Archive {
m := RPMArchive
m.RuntimeDeps = []string{
"/bin/sh",
"device-mapper-libs >= 1.02.90-1",
"iptables",
"libcgroup",
"moby-containerd >= 1.3.9",
"moby-runc >= 1.0.2",
"systemd-units",
"tar",
"xz",
}
return m
}()
)