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 |
+} |