Skip to content

Instantly share code, notes, and snippets.

@simar1043
Last active October 18, 2022 06:28
Show Gist options
  • Save simar1043/2ca69e798509f26e8dc89b194478cbb6 to your computer and use it in GitHub Desktop.
Save simar1043/2ca69e798509f26e8dc89b194478cbb6 to your computer and use it in GitHub Desktop.
selfhosted-gateway-init.sh
#/bin/bash
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git curl make -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
sudo usermod -aG docker $2
git clone https://github.com/fractalnetworksco/selfhosted-gateway.git
cd selfhosted-gateway
make setup
make gateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment