/[smecontribs]/rpms/smeserver-docker/contribs10/smeserver-docker-0.4-docker-compose-template.patch
ViewVC logotype

Contents of /rpms/smeserver-docker/contribs10/smeserver-docker-0.4-docker-compose-template.patch

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


Revision 1.1 - (show annotations) (download)
Wed Jul 13 14:13:22 2022 UTC (2 years, 4 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-docker-0_4-4_el7_sme, smeserver-docker-0_4-7_el7_sme, smeserver-docker-0_4-5_el7_sme, smeserver-docker-0_4-6_el7_sme, HEAD
Error occurred while calculating annotation data.
* Wed Jul 13 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-4.sme
- Add docker-compose.yml template
- smeserver-docker-compose-update event to expand the compose file

1 diff -ruN smeserver-docker-0.4.old/createlinks smeserver-docker-0.4/createlinks
2 --- smeserver-docker-0.4.old/createlinks 2022-07-13 13:54:30.805881536 +0100
3 +++ smeserver-docker-0.4/createlinks 2022-07-13 14:11:07.569443831 +0100
4 @@ -29,7 +29,6 @@
5 post-upgrade
6 console-save
7 bootstrap-console-save
8 - remoteaccess-update
9 smeserver-docker-update
10 ));
11 }
12 @@ -41,4 +40,13 @@
13 #action specific to this package
14 event_link("smeserver-docker-update", $event, "60");
15
16 +# Event to just update the compose file
17 +$event = "smeserver-docker-compose-update";
18
19 +foreach my $file (qw(
20 + /home/e-smith/files/docker/configs/docker-compose.yml
21 +
22 +))
23 +{
24 + templates2events($file, $event);
25 +}
26 diff -ruN smeserver-docker-0.4.old/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/01version smeserver-docker-0.4/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/01version
27 --- smeserver-docker-0.4.old/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/01version 1970-01-01 01:00:00.000000000 +0100
28 +++ smeserver-docker-0.4/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/01version 2022-07-13 14:11:07.569443831 +0100
29 @@ -0,0 +1,2 @@
30 +version: '2'
31 +
32 diff -ruN smeserver-docker-0.4.old/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/10HelloWordTest smeserver-docker-0.4/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/10HelloWordTest
33 --- smeserver-docker-0.4.old/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/10HelloWordTest 1970-01-01 01:00:00.000000000 +0100
34 +++ smeserver-docker-0.4/root/etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml/10HelloWordTest 2022-07-13 14:11:07.569443831 +0100
35 @@ -0,0 +1,10 @@
36 +{
37 +$OUT = << 'EOF';
38 +services:
39 + hello_world:
40 + container_name: my_hello
41 + image: ubuntu
42 + command: [/bin/echo, 'Hello world']
43 + network_mode: host
44 +EOF
45 +}

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