initial commit of file from CVS for smeserver-docker on Sat Sep 7 20:19:01 AEST 2024
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
$OUT .= "\{\n";
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
my $datadir = "/home/e-smith/files/docker/data/";
|
||||
$OUT .= "\"data-root\": \"$datadir\",\n";
|
||||
}
|
||||
|
10
root/etc/e-smith/templates/etc/docker/daemon.json/30dns
Normal file
10
root/etc/e-smith/templates/etc/docker/daemon.json/30dns
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
my $dockerdns = $docker{'DNS'} || ${LocalIP};
|
||||
|
||||
my @dnsarray = split (",", $dockerdns);
|
||||
|
||||
my $dns = join ',', map { qq/"$_"/ } @dnsarray;
|
||||
|
||||
$OUT .= "\"dns\": \[$dns],\n";
|
||||
}
|
||||
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
if ($dockernet = $docker{'DockerNetwork'}) {
|
||||
$OUT .= " \"bip\": $dockernet,\n";
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
# Last line MUST be without a comma
|
||||
# So we set this to always be without a comma
|
||||
$iptables = $docker{iptables} || "true";
|
||||
$OUT .= "\"iptables\": $iptables\n";
|
||||
}
|
||||
|
3
root/etc/e-smith/templates/etc/docker/daemon.json/99end
Normal file
3
root/etc/e-smith/templates/etc/docker/daemon.json/99end
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
$OUT .= "\}\n";
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
version: '2'
|
||||
services:
|
@@ -0,0 +1,5 @@
|
||||
hello_world:
|
||||
container_name: my_hello
|
||||
image: ubuntu
|
||||
command: [/bin/echo, 'Hello world']
|
||||
network_mode: host
|
@@ -0,0 +1,4 @@
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
Reference in New Issue
Block a user