1 |
%define name smeserver-docker |
%define name smeserver-docker |
2 |
%define version 0.4 |
%define version 0.4 |
3 |
%define release 2%{?dist} |
%define release 3%{?dist} |
4 |
Summary: Contrib to manage basic docker setup |
Summary: Contrib to manage basic docker setup |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Patch1: smeserver-docker-0.4-containerd-db-entry.patch |
Patch1: smeserver-docker-0.4-containerd-db-entry.patch |
13 |
|
Patch2: smeserver-docker-0.4-update-createlinks1.patch |
14 |
|
|
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
Docker is an open-source project that automates the deployment of applications inside software containers |
Docker is an open-source project that automates the deployment of applications inside software containers |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
|
* Tue Jul 12 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-3.sme |
27 |
|
- Fix some createlink errors [SME: 11892] |
28 |
|
- Update daemon.json and 50koozali.conf templates |
29 |
|
|
30 |
* Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-2.sme |
* Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-2.sme |
31 |
- Add containerd db entries |
- Add containerd db entries [SME: 11892] |
32 |
|
|
33 |
* Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1.sme |
* Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1.sme |
34 |
- First import to Koozali SME Server v10 [SME: 11892] |
- First import to Koozali SME Server v10 [SME: 11892] |
63 |
%setup |
%setup |
64 |
|
|
65 |
%patch1 -p1 |
%patch1 -p1 |
66 |
|
%patch2 -p1 |
67 |
|
|
68 |
%build |
%build |
69 |
perl createlinks |
perl createlinks |
88 |
%preun |
%preun |
89 |
%post |
%post |
90 |
|
|
91 |
# Add configs directory if it doesn't exist |
# Add config directories if they don't exist |
92 |
if [[ ! -d /home/e-smith/files/docker/configs ]]; then |
if [[ ! -d /home/e-smith/files/docker/configs ]]; then |
93 |
mkdir -p /home/e-smith/files/docker/configs; |
mkdir -p /home/e-smith/files/docker/configs; |
94 |
|
fi |
95 |
|
|
96 |
|
if [[ ! -d /usr/lib/systemd/system/docker.service.d ]]; then |
97 |
|
mkdir -p /usr/lib/systemd/system/docker.service.d; |
98 |
fi |
fi |
99 |
|
|
100 |
|
if [[ ! -d /etc/docker ]]; then |
101 |
|
mkdir -p /etc/docker; |
102 |
|
fi |
103 |
|
|
104 |
|
|
105 |
echo "see https://wiki.contribs.org/Docker" |
echo "see https://wiki.contribs.org/Docker" |
106 |
|
echo "Please run signal-post-upgrade;signal-event reboot" |
107 |
|
|
108 |
%postun |
%postun |
109 |
#/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |
#/sbin/e-smith/expand-template /etc/rc.d/init.d/masq |