/[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.5 - (hide annotations) (download)
Tue Oct 11 18:08:47 2022 UTC (2 years ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-docker-0_4-5_el7_sme
Changes since 1.4: +9 -1 lines
* Tue Oct 11 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-5.sme
- Fix daemon.json syntax
- Add template-begin files
- Thanks to Greg Zartman for finding these

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

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