This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/tools/setup.sh
2023-03-01 15:19:03 +01:00

20 lines
409 B
Bash
Executable file

#!/bin/bash
fatal() {
echo "FATAL: $@"
exit 1
}
echo "# installing docker"
sudo apt update || fatal "something went wrong"
sudo apt install "docker*" || fatal "something went wrong"
echo "# check groups"
if ! groups | grep docker; then
sudo usermod $USER -aG docker
fatal "please relog to enter docker group"
fi
echo "# network"
docker network create proxy
docker network create internal