/[smecontribs]/rpms/smeserver-docker/contribs10/smeserver-docker.spec
ViewVC logotype

Contents of /rpms/smeserver-docker/contribs10/smeserver-docker.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Wed Jul 13 10:40:49 2022 UTC (2 years, 3 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-docker-0_4-3_el7_sme
Changes since 1.2: +20 -4 lines
* Tue Jul 12 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-3.sme
- Fix some createlink errors [SME: 11892]
- Update daemon.json and 50koozali.conf templates

1 %define name smeserver-docker
2 %define version 0.4
3 %define release 3%{?dist}
4 Summary: Contrib to manage basic docker setup
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}
8 License: GNU GPL version 2
9 URL: http://www.docker.com/
10 Group: SMEserver/addon
11 Source: %{name}-%{version}.tar.gz
12 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}
16 BuildArchitectures: noarch
17 BuildRequires: e-smith-devtools
18 Requires: e-smith-release >= 10.0
19 Requires: docker-ce >= 20.10
20 AutoReqProv: no
21
22 %description
23 Docker is an open-source project that automates the deployment of applications inside software containers
24
25 %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
31 - Add containerd db entries [SME: 11892]
32
33 * Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1.sme
34 - First import to Koozali SME Server v10 [SME: 11892]
35 - Add basic templates
36
37 * Fri Aug 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1
38 - Add template directory for docker-compose.yml
39 - You can then add gragments from your own contrib.
40
41 * Sun Apr 08 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5
42 - Missed a # in /etc/sysconfig/docker
43
44 * Tue Mar 27 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4
45 - Missed a # in the spec file
46
47 * Thu Mar 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-3
48 - add rc.7 service links for docker and mongod
49 - Fix prelink error on docker-compose see https://github.com/docker/compose/issues/
50 - fix errant semi colon in createlinks
51 - move demo docker file out of configs so it doesn't overwrite originals
52
53 * Sun Mar 11 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2
54 - update spec file to set props on docker-compose
55 - mover docker-compose to /usr/bin
56
57 * Sun Mar 4 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1
58 - initial release
59 - basic file layout
60 - removed httpd templates - need to create your own
61
62 %prep
63 %setup
64
65 %patch1 -p1
66 %patch2 -p1
67
68 %build
69 perl createlinks
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
74 rm -f %{name}-%{version}-filelist
75
76 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
77 echo "%doc COPYING LICENSE" >> %{name}-%{version}-filelist
78
79
80 %clean
81 cd ..
82 rm -rf %{name}-%{version}
83
84 %files -f %{name}-%{version}-filelist
85 %defattr(-,root,root)
86
87 %pre
88 %preun
89 %post
90
91 # Add config directories if they don't exist
92 if [[ ! -d /home/e-smith/files/docker/configs ]]; then
93 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
99
100 if [[ ! -d /etc/docker ]]; then
101 mkdir -p /etc/docker;
102 fi
103
104
105 echo "see https://wiki.contribs.org/Docker"
106 echo "Please run signal-post-upgrade;signal-event reboot"
107
108 %postun
109 #/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
110 #/sbin/e-smith/expand-template /etc/inittab
111 #/sbin/init q

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed