-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgenerate-files.py
executable file
·170 lines (141 loc) · 9.52 KB
/
generate-files.py
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
166
167
168
169
170
#!/usr/bin/python3
import subprocess
keyring = "2022.06.21"
packages = "mint-dev-tools build-essential devscripts fakeroot quilt dh-make automake libdistro-info-perl less nano ubuntu-dev-tools python python2.7 python3"
new_packages = "mint-dev-tools build-essential devscripts fakeroot quilt dh-make automake libdistro-info-perl less nano ubuntu-dev-tools python3"
with open("mint18-amd64.Dockerfile", "w") as docker_file:
files = "mint18"
image = "ubuntu:16.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint18-i386.Dockerfile", "w") as docker_file:
files = "mint18"
image = "i386\/ubuntu:16.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19-amd64.Dockerfile", "w") as docker_file:
files = "mint19"
image = "ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19-i386.Dockerfile", "w") as docker_file:
files = "mint19"
image = "i386\/ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19.1-amd64.Dockerfile", "w") as docker_file:
files = "mint19.1"
image = "ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19.1-i386.Dockerfile", "w") as docker_file:
files = "mint19.1"
image = "i386\/ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19.2-amd64.Dockerfile", "w") as docker_file:
files = "mint19.2"
image = "ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19.2-i386.Dockerfile", "w") as docker_file:
files = "mint19.2"
image = "i386\/ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19.3-amd64.Dockerfile", "w") as docker_file:
files = "mint19.3"
image = "ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint19.3-i386.Dockerfile", "w") as docker_file:
files = "mint19.3"
image = "i386\/ubuntu:18.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint20-amd64.Dockerfile", "w") as docker_file:
files = "mint20"
image = "ubuntu:20.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint20.1-amd64.Dockerfile", "w") as docker_file:
files = "mint20.1"
image = "ubuntu:20.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint20.2-amd64.Dockerfile", "w") as docker_file:
files = "mint20.2"
image = "ubuntu:20.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint20.3-amd64.Dockerfile", "w") as docker_file:
files = "mint20.3"
image = "ubuntu:20.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint21-amd64.Dockerfile", "w") as docker_file:
files = "mint21"
image = "ubuntu:22.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde6-amd64.Dockerfile", "w") as docker_file:
files = "lmde6"
image = "debian:bookworm"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde6-i386.Dockerfile", "w") as docker_file:
files = "lmde6"
image = "i386\/debian:bookworm"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde5-amd64.Dockerfile", "w") as docker_file:
files = "lmde5"
image = "debian:bullseye"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde5-i386.Dockerfile", "w") as docker_file:
files = "lmde5"
image = "i386\/debian:bullseye"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % new_packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde4-amd64.Dockerfile", "w") as docker_file:
files = "lmde4"
image = "debian:buster"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde4-i386.Dockerfile", "w") as docker_file:
files = "lmde4"
image = "i386\/debian:buster"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde3-amd64.Dockerfile", "w") as docker_file:
files = "lmde3"
image = "debian:stretch"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde3-i386.Dockerfile", "w") as docker_file:
files = "lmde3"
image = "i386\/debian:stretch"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
keyring = "2009.04.29"
with open("mint17-amd64.Dockerfile", "w") as docker_file:
files = "mint17"
image = "ubuntu:14.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("mint17-i386.Dockerfile", "w") as docker_file:
files = "mint17"
image = "i386\/ubuntu:14.04"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde2-amd64.Dockerfile", "w") as docker_file:
files = "lmde2"
image = "debian:jessie"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)
with open("lmde2-i386.Dockerfile", "w") as docker_file:
files = "lmde2"
image = "i386\/debian:jessie"
command = ["sed", "-e", "s/@DOCKER_IMAGE@/%s/" % image, "-e", "s/@FILES@/%s/" % files, "-e", "s/@KEYRING@/%s/" % keyring, "-e", "s/@PACKAGES@/%s/" % packages, "template.Dockerfile"]
subprocess.call(command, stdout=docker_file)