6 # * IP forwarding is enabled in the kernel.
8 if [ "$(/sbin/sysctl --values net.ipv4.ip_forward)" != "1" ]
10 echo >&2 "WARNING: IP forwarding must be enabled in the kernel."
11 echo >&2 "Try: sudo sysctl net.ipv4.ip_forward=1"
15 # * Docker can be found in the user's path
16 # * The user is in the docker group
18 # * the docker daemon is running
20 if ! docker images > /dev/null 2>&1
22 echo >&2 "WARNING: docker could not be run."
23 echo >&2 "Please make sure that:"
24 echo >&2 " * You have permission to read and write /var/run/docker.sock"
25 echo >&2 " * a 'cgroup' volume is mounted on your machine"
26 echo >&2 " * the docker daemon is running"
31 if [ '!' -f config.yml ]
33 echo >&2 "WARNING: no config.yml found in the current directory"
34 echo >&2 "Copy config.yml.example to config.yml and update it with settings for your site."
38 # If ok to build, then go ahead and run make