From 78af66ad8022e3e536c4e4a63cfe4aeadcd69a9d Mon Sep 17 00:00:00 2001 From: kaibae19 <99116238+kaibae19@users.noreply.github.com> Date: Sun, 3 Apr 2022 20:28:46 -0700 Subject: [PATCH] Create docker.sh --- tools/docker.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/docker.sh diff --git a/tools/docker.sh b/tools/docker.sh new file mode 100644 index 00000000..943f1674 --- /dev/null +++ b/tools/docker.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Fixup some dependencies missing from the ubuntu:bionic image +apt install locales curl lsb-release net-tools git + +cd ~ +rm -rf mailinabox/ +git clone https://github.com/kaibae19/mailinabox + +# The setup script will fail to find the IP addresses of the container +ifconfig | grep global +ifconfig | grep inet | grep -v 127 +echo "Export PRIVATE_IP and PUBLIC_IPV6 as variables before launching the setup script." + +cd ~/mailinabox