-
Notifications
You must be signed in to change notification settings - Fork 0
/
karellen-sysbox.spec
335 lines (252 loc) · 12 KB
/
karellen-sysbox.spec
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
%global debug_package %{nil}
%global _missing_build_ids_terminate_build 0
Name: karellen-sysbox
Version: 0.6.5.4
Release: 1
License: ASL 2.0
Summary: Karellen Sysbox is an UNOFFICIAL Fedora/RHEL/CentOS spin of the Nestybox Sysbox.
Url: https://github.com/karellen/%{name}
Vendor: Karellen, Inc.
Packager: Karellen, Inc. <[email protected]>
Group: Tools/Docker
BuildRequires: git
BuildRequires: make
BuildRequires: iproute
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: wget
BuildRequires: tar
BuildRequires: gzip
BuildRequires: unzip
BuildRequires: glibc-static
BuildRequires: systemd-rpm-macros
BuildRequires: libseccomp-devel
Requires: (docker or docker-ce)
Requires: systemd
Requires: fuse
Requires: libseccomp
Provides: sysbox
Source0: %{name}-%{version}.tar.gz
%description
Karellen Sysbox is an UNOFFICIAL Fedora/RHEL/CentOS spin of the Nestybox Sysbox.
The project is NOT affiliated with or supported by Docker or Nestybox.
Depending on whether you're using Karellen Sysbox with moby-engine or docker-ce either
/etc/sysconfig/docker or /etc/docker/daemon.json have to be modified respectively,
using configuration available in /etc/sysconfig/docker-karellen-sysbox or
/etc/docker/daemon-karellen-sysbox.json respectively.
Restart docker daemon (systemctl restart docker) after configuration changes.
%ifarch x86_64
%global sys_arch amd64
%global protoc_arch x86_64
%endif
%ifarch aarch64
%global sys_arch arm64
%global protoc_arch aarch_64
%endif
%ifarch arm
%global sys_arch armf
%endif
%ifarch armel
%global sys_arch armel
%endif
%prep
%autosetup
cd /tmp
mkdir -p $HOME/.local
export PATH="$PATH:$HOME/.local/bin:$HOME/.local/go/bin"
wget https://go.dev/dl/go1.22.9.linux-%{sys_arch}.tar.gz
tar -C $HOME/.local -xzf go1.22.9.linux-%{sys_arch}.tar.gz
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-%{protoc_arch}.zip
unzip -u protoc-3.15.8-linux-%{protoc_arch}.zip -d $HOME/.local
go install github.com/golang/protobuf/protoc-gen-go@latest
export PATH="$PATH:$(go env GOPATH)/bin"
%build
export PATH="$PATH:$HOME/.local/bin:$HOME/.local/go/bin"
export PATH="$PATH:$(go env GOPATH)/bin"
cd sysbox
make sysbox-local
%install
export PATH="$PATH:$HOME/.local/bin:$HOME/.local/go/bin"
export PATH="$PATH:$(go env GOPATH)/bin"
cp sysbox/OSS_DISCLOSURES.md .
cp sysbox/LICENSE LICENSE-nestybox
cp LICENSE LICENSE-karellen
install -Dpm 644 packaging/docker-karellen-sysbox \
%{buildroot}%{_sysconfdir}/sysconfig/docker-karellen-sysbox
install -Dpm 644 packaging/daemon-karellen-sysbox.json \
%{buildroot}%{_sysconfdir}/docker/daemon-karellen-sysbox.json
install -Dpm 644 packaging/sysctl.d/99-sysbox-sysctl.conf -t %{buildroot}%{_sysctldir}/
install -Dpm 644 packaging/systemd/sysbox-fs.service \
packaging/systemd/sysbox-mgr.service \
packaging/systemd/sysbox.service -t %{buildroot}%{_unitdir}/
cd sysbox
make DESTDIR=%{buildroot}%{_bindir} install
%files
%license OSS_DISCLOSURES.md LICENSE-nestybox LICENSE-karellen
%config %{_sysconfdir}/sysconfig/docker-karellen-sysbox
%config %{_sysconfdir}/docker/daemon-karellen-sysbox.json
%{_bindir}/sysbox-fs
%{_bindir}/sysbox-mgr
%{_bindir}/sysbox-runc
%{_bindir}/sysbox
%{_sysctldir}/99-sysbox-sysctl.conf
%{_unitdir}/sysbox-fs.service
%{_unitdir}/sysbox-mgr.service
%{_unitdir}/sysbox.service
%post
%sysctl_apply 99-sysbox-sysctl.conf
%systemd_post sysbox-fs.service sysbox-mgr.service sysbox.service
%preun
%systemd_preun sysbox-fs.service sysbox-mgr.service sysbox.service
%postun
%systemd_postun_with_restart sysbox-fs.service sysbox-mgr.service sysbox.service
%changelog
* Tue Nov 12 2024 Karellen Supervisor <[email protected]> 0.6.5.4-1
- Update 2024-11-12T00:14:19Z ([email protected])
* Mon Nov 11 2024 Karellen Supervisor <[email protected]> 0.6.5.2-1
- Update 2024-11-11T18:04:34Z ([email protected])
* Sun Nov 10 2024 Arcadiy Ivanov <[email protected]> 0.6.5.0-3
- Fix changelog chronological order ([email protected])
* Sat Nov 10 2024 Arcadiy Ivanov <[email protected]> 0.6.5.0-2
- Update to Golang 1.22 ([email protected])
* Sun Nov 10 2024 Karellen Supervisor <[email protected]> 0.6.5.0-1
- Update 2024-11-10T00:15:37Z ([email protected])
- Token for the update script to allow to chain triggers ([email protected])
* Sat Nov 09 2024 Karellen Supervisor <[email protected]> 0.6.4.80-1
- Update 2024-11-09T06:04:25Z ([email protected])
* Tue Nov 05 2024 Karellen Supervisor <[email protected]> 0.6.4.77-1
- Update 2024-11-05T06:04:58Z ([email protected])
- Use PAT token ([email protected])
- Try to fix the on-push-tag not working ([email protected])
* Tue Nov 05 2024 Karellen Supervisor <[email protected]> 0.6.4.75-1
- Update 2024-11-05T00:14:27Z ([email protected])
* Sun Nov 03 2024 Karellen Supervisor <[email protected]> 0.6.4.74-1
- Update 2024-11-03T00:16:05Z ([email protected])
- Fix workflow tag ([email protected])
- Another fix ([email protected])
- Fix copr gh release build ([email protected])
- Add Copr to GH Release synchronizer ([email protected])
* Sun Oct 20 2024 Karellen Supervisor <[email protected]> 0.6.4.72-1
- Update 2024-10-20T00:16:01Z ([email protected])
* Sat Oct 19 2024 Karellen Supervisor <[email protected]> 0.6.4.71-1
- Update 2024-10-19T06:04:17Z ([email protected])
* Sat Oct 19 2024 Karellen Supervisor <[email protected]> 0.6.4.70-1
- Update 2024-10-19T00:14:11Z ([email protected])
* Sun Oct 13 2024 Karellen Supervisor <[email protected]> 0.6.4.69-1
- Update 2024-10-13T00:15:57Z ([email protected])
* Sat Oct 12 2024 Karellen Supervisor <[email protected]> 0.6.4.68-1
- Update 2024-10-12T18:03:55Z ([email protected])
* Thu Oct 10 2024 Karellen Supervisor <[email protected]> 0.6.4.66-1
- Update 2024-10-10T18:04:32Z ([email protected])
* Thu Oct 10 2024 Karellen Supervisor <[email protected]> 0.6.4.65-1
- Update 2024-10-10T00:14:11Z ([email protected])
* Tue Oct 08 2024 Karellen Supervisor <[email protected]> 0.6.4.64-1
- Update 2024-10-08T18:04:26Z ([email protected])
* Tue Oct 08 2024 Karellen Supervisor <[email protected]> 0.6.4.63-1
- Update 2024-10-08T06:05:13Z ([email protected])
* Tue Oct 08 2024 Karellen Supervisor <[email protected]> 0.6.4.62-1
- Update 2024-10-08T00:14:09Z ([email protected])
* Tue Sep 24 2024 Karellen Supervisor <[email protected]> 0.6.4.58-1
- Update 2024-09-24T00:14:32Z ([email protected])
- Fix regex pattern syntax ([email protected])
* Sun Sep 22 2024 Karellen Supervisor <[email protected]> 0.6.4.56-1
- Update 2024-09-22T16:11:21Z ([email protected])
- Settle on Ubuntu 24.04 ([email protected])
- Upgrade pip ([email protected])
- Fix the pip3 install script further ([email protected])
- Fix tito not installing into root ([email protected])
* Tue Jun 04 2024 Karellen Supervisor <[email protected]> 0.6.4.42-1
- Update 2024-06-04T06:02:16Z ([email protected])
* Mon Jun 03 2024 Karellen Supervisor <[email protected]> 0.6.4.41-1
- Update 2024-06-03T06:02:10Z ([email protected])
* Sat Jun 01 2024 Karellen Supervisor <[email protected]> 0.6.4.40-1
- Update 2024-06-01T00:05:29Z ([email protected])
* Fri May 31 2024 Karellen Supervisor <[email protected]> 0.6.4.33-1
- Update 2024-05-31T18:02:05Z ([email protected])
* Fri May 31 2024 Karellen Supervisor <[email protected]> 0.6.4.30-1
- Update 2024-05-31T00:05:11Z ([email protected])
* Fri May 24 2024 Arcadiy Ivanov <[email protected]> 0.6.4.28-2
- Move to golang 1.21.10 ([email protected])
* Fri May 24 2024 Arcadiy Ivanov <[email protected]>
- Move to golang 1.21.10 ([email protected])
* Fri May 24 2024 Karellen Supervisor <[email protected]> 0.6.4.28-1
- Update 2024-05-24T19:40:00Z ([email protected])
- Add python rpm bindings ([email protected])
- Install rpm ([email protected])
- Add user-local bin to PATH ([email protected])
- This doesn't have to be self-hosted ([email protected])
- Add auto-updater ([email protected])
* Sat May 11 2024 Arcadiy Ivanov <[email protected]> 0.6.4.24-1
- Update 2024-05-11 ([email protected])
* Sat May 04 2024 Arcadiy Ivanov <[email protected]> 0.6.4.20-1
- Update 2024-05-04 ([email protected])
* Sat Apr 20 2024 Arcadiy Ivanov <[email protected]> 0.6.4.11-1
- Update 20240420 ([email protected])
* Wed Mar 27 2024 Arcadiy Ivanov <[email protected]> 0.6.3.23-1
- Update 2024-03-27 ([email protected])
* Fri Feb 16 2024 Arcadiy Ivanov <[email protected]>
- Update 20240216 ([email protected])
* Mon Feb 05 2024 Arcadiy Ivanov <[email protected]> 0.6.3.17-1
- Update 2024-02-05 ([email protected])
* Mon Jan 22 2024 Arcadiy Ivanov <[email protected]> 0.6.3.9-1
- Update 2024-01-22 (v0.6.3) ([email protected])
* Sat Dec 16 2023 Arcadiy Ivanov <[email protected]> 0.6.2.32-1
- Update 2023-12-16 ([email protected])
* Thu Nov 23 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-7
- Fix libseccomp dependency ([email protected])
* Thu Nov 23 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-6
- Do explicitly depend on libsseccomp just in case ([email protected])
* Thu Nov 23 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-5
- Attempt to build sysbox shared ([email protected])
* Thu Nov 23 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-4
- Actually we need a static version of libseccomp ([email protected])
* Thu Nov 23 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-3
- Add Libseccomp to requirements ([email protected])
* Thu Nov 23 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-2
- Attempt to fix the build with libseccomp-devel dependency
* Wed Nov 22 2023 Arcadiy Ivanov <[email protected]> 0.6.2.30-1
- Update 2023-11-22 ([email protected])
* Fri Sep 22 2023 Arcadiy Ivanov <[email protected]> 0.6.2.11-1
- Update 2023-09-22 ([email protected])
* Sun Sep 17 2023 Arcadiy Ivanov <[email protected]> 0.6.2.9-1
- Update 2023-09-17 ([email protected])
* Fri Sep 01 2023 Arcadiy Ivanov <[email protected]> 0.6.2.8-1
- Update 20230901 ([email protected])
* Thu Aug 24 2023 Arcadiy Ivanov <[email protected]> 0.6.2.6-2
- Ensure `unzip` doesn't wait for prompts ([email protected])
- Require either docker or docker-ce Add some vendor metadata
* Fri Aug 18 2023 Arcadiy Ivanov <[email protected]> 0.6.2.6-1
- Update 20230818 ([email protected])
* Tue Jul 04 2023 Arcadiy Ivanov <[email protected]> 0.6.2.1-3
- Sysbox on Fedora requires fuse package to operate ([email protected])
* Sat Jul 01 2023 Arcadiy Ivanov <[email protected]> 0.6.2.1-2
- SubmoduleAwareBuilder has been fixed in tito 0.6.23 Removing local patch
* Tue Jun 27 2023 Arcadiy Ivanov <[email protected]> 0.6.2.1-1
- Update to latest 2023-06-27 ([email protected])
* Wed May 10 2023 Arcadiy Ivanov <[email protected]> 0.6.1.29-1
- Update submodule ([email protected])
* Sat May 06 2023 Arcadiy Ivanov <[email protected]> 0.6.1.28-1
- 2023-05-06 upstream update ([email protected])
* Wed May 03 2023 Arcadiy Ivanov <[email protected]> 0.6.1.23-1
- Pull latest submodules Update summary and description
Add README.md ([email protected])
* Mon May 01 2023 Arcadiy Ivanov <[email protected]> 0.6.1.21-1
- Update to latest sysbox ([email protected])
* Mon May 01 2023 Arcadiy Ivanov <[email protected]> 0.6.1.17-5
- Fix Tito submodule population detection ([email protected])
* Mon May 01 2023 Arcadiy Ivanov <[email protected]>
- Fix Tito submodule population detection ([email protected])
* Mon May 01 2023 Arcadiy Ivanov <[email protected]>
- Fix Tito submodule population detection ([email protected])
* Mon May 01 2023 Arcadiy Ivanov <[email protected]> 0.6.1.17-4
- Harden Tito submodules processor
- Ensure selinux is disabled from Docker daemon.json ([email protected])
* Sun Apr 30 2023 Arcadiy Ivanov <[email protected]> 0.6.1.17-3
- Add `selinux-enabled` to the daemon.json template
* Sun Apr 30 2023 Arcadiy Ivanov <[email protected]> 0.6.1.17-2
- Remove Debian-only kernel sysctl ([email protected])