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

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

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


Revision 1.6 - (hide annotations) (download)
Wed Jul 26 20:28:44 2023 UTC (15 months, 4 weeks ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-docker-0_4-6_el7_sme
Changes since 1.5: +7 -1 lines
* Wed Jul 26 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
- add docker-compose.yml template-begin
- fix compose templates for version 2

1 jcrisp 1.1 %define name smeserver-docker
2     %define version 0.4
3 jcrisp 1.6 %define release 6%{?dist}
4 jcrisp 1.1 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 jcrisp 1.2 Patch1: smeserver-docker-0.4-containerd-db-entry.patch
13 jcrisp 1.3 Patch2: smeserver-docker-0.4-update-createlinks1.patch
14 jcrisp 1.4 Patch3: smeserver-docker-0.4-docker-compose-template.patch
15 jcrisp 1.5 Patch4: smeserver-docker-0.4-daemon-json-update.patch
16 jcrisp 1.6 Patch5: smeserver-docker-0.4-docker-compose-template-begin.patch
17 jcrisp 1.1
18     BuildRoot: /var/tmp/%{name}-%{version}
19     BuildArchitectures: noarch
20     BuildRequires: e-smith-devtools
21     Requires: e-smith-release >= 10.0
22     Requires: docker-ce >= 20.10
23     AutoReqProv: no
24    
25     %description
26     Docker is an open-source project that automates the deployment of applications inside software containers
27    
28     %changelog
29 jcrisp 1.6 * Wed Jul 26 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-6.sme
30     - add docker-compose.yml template-begin
31     - fix compose templates for version 2
32    
33 jcrisp 1.5 * Tue Oct 11 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
34     - Fix daemon.json syntax
35     - Add template-begin files
36     - Thanks to Greg Zartman for finding these
37    
38 jcrisp 1.4 * Wed Jul 13 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-4.sme
39     - Add docker-compose.yml template
40     - smeserver-docker-compose-update event to expand the compose file
41    
42 jcrisp 1.3 * Tue Jul 12 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-3.sme
43     - Fix some createlink errors [SME: 11892]
44     - Update daemon.json and 50koozali.conf templates
45    
46 jcrisp 1.2 * Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-2.sme
47 jcrisp 1.3 - Add containerd db entries [SME: 11892]
48 jcrisp 1.2
49 jcrisp 1.1 * Thu Mar 10 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1.sme
50     - First import to Koozali SME Server v10 [SME: 11892]
51     - Add basic templates
52    
53     * Fri Aug 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1
54     - Add template directory for docker-compose.yml
55     - You can then add gragments from your own contrib.
56    
57     * Sun Apr 08 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5
58     - Missed a # in /etc/sysconfig/docker
59    
60     * Tue Mar 27 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4
61     - Missed a # in the spec file
62    
63     * Thu Mar 15 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-3
64     - add rc.7 service links for docker and mongod
65     - Fix prelink error on docker-compose see https://github.com/docker/compose/issues/
66     - fix errant semi colon in createlinks
67     - move demo docker file out of configs so it doesn't overwrite originals
68    
69     * Sun Mar 11 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2
70     - update spec file to set props on docker-compose
71     - mover docker-compose to /usr/bin
72    
73     * Sun Mar 4 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1
74     - initial release
75     - basic file layout
76     - removed httpd templates - need to create your own
77    
78     %prep
79 jcrisp 1.5
80 jcrisp 1.1 %setup
81    
82 jcrisp 1.2 %patch1 -p1
83 jcrisp 1.3 %patch2 -p1
84 jcrisp 1.4 %patch3 -p1
85 jcrisp 1.5 %patch4 -p1
86 jcrisp 1.6 %patch5 -p1
87 jcrisp 1.1
88     %build
89     perl createlinks
90    
91     %install
92     rm -rf $RPM_BUILD_ROOT
93     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
94     rm -f %{name}-%{version}-filelist
95    
96     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
97     echo "%doc COPYING LICENSE" >> %{name}-%{version}-filelist
98    
99    
100     %clean
101     cd ..
102     rm -rf %{name}-%{version}
103    
104     %files -f %{name}-%{version}-filelist
105     %defattr(-,root,root)
106    
107     %pre
108     %preun
109     %post
110    
111 jcrisp 1.3 # Add config directories if they don't exist
112 jcrisp 1.1 if [[ ! -d /home/e-smith/files/docker/configs ]]; then
113 jcrisp 1.3 mkdir -p /home/e-smith/files/docker/configs;
114     fi
115    
116     if [[ ! -d /usr/lib/systemd/system/docker.service.d ]]; then
117     mkdir -p /usr/lib/systemd/system/docker.service.d;
118 jcrisp 1.1 fi
119    
120 jcrisp 1.3 if [[ ! -d /etc/docker ]]; then
121     mkdir -p /etc/docker;
122     fi
123    
124 jcrisp 1.4 # Remove the errant dir in the source
125     if [[ -d /home/e-smith/files/docker/configs/docker-compose.yml ]]; then
126     rm -rf /home/e-smith/files/docker/configs/docker-compose.yml;
127     fi
128    
129 jcrisp 1.3
130 jcrisp 1.4 echo ""
131     echo "###################################################"
132     echo "*"
133 jcrisp 1.1 echo "see https://wiki.contribs.org/Docker"
134 jcrisp 1.4 echo "*"
135     echo "###################################################"
136     echo ""
137     echo "###################################################"
138     echo "*"
139 jcrisp 1.3 echo "Please run signal-post-upgrade;signal-event reboot"
140 jcrisp 1.4 echo "*"
141     echo "###################################################"
142     echo ""
143     echo "###################################################"
144     echo "*"
145     echo "Docker compose:"
146     echo "curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose"
147     echo "chmod 0700 /usr/local/bin/docker-compose"
148     echo "chgrp docker /usr/local/bin/docker-compose"
149     echo "*"
150     echo "###################################################"
151 jcrisp 1.1
152     %postun
153     #/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
154     #/sbin/e-smith/expand-template /etc/inittab
155     #/sbin/init q

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