|
|
@ -68,6 +68,19 @@ cat <<\EOF >/etc/motd
|
|
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# --- Enable IPv6 and IP forwarding
|
|
|
|
|
|
|
|
sysctl -w net.ipv4.ip_forward=1
|
|
|
|
|
|
|
|
sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
|
|
|
|
sysctl -w net.ipv6.conf.all.forwarding=1
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
|
|
|
|
-e "/^net.ipv6.conf.all.disable_ipv6 = 1/d" \
|
|
|
|
|
|
|
|
/etc/sysctl.conf
|
|
|
|
|
|
|
|
cat <<EOF >>/etc/sysctl.conf
|
|
|
|
|
|
|
|
net.ipv4.ip_forward = 1
|
|
|
|
|
|
|
|
net.ipv6.conf.all.disable_ipv6 = 0
|
|
|
|
|
|
|
|
net.ipv6.conf.all.forwarding = 1
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
# --- Utility function to download go
|
|
|
|
# --- Utility function to download go
|
|
|
|
download_go() {
|
|
|
|
download_go() {
|
|
|
|
goversion=$(grep "golang:" Dockerfile.dapper | sed -e 's/.*golang:\(.*\)-.*/\1/')
|
|
|
|
goversion=$(grep "golang:" Dockerfile.dapper | sed -e 's/.*golang:\(.*\)-.*/\1/')
|
|
|
|