This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http: | |
routers: | |
traefik: | |
rule: "Host(`traefik.docker.localhost`)" | |
service: "api@internal" | |
tls: | |
domains: | |
- main: "docker.localhost" | |
sans: | |
- "*.docker.localhost" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt update | |
sudo apt -y upgrade | |
echo "Firewalla" | sudo tee /etc/hostname | |
sudo sed -i 's/'"$(hostname -s)"'/Firewalla/g' /etc/hosts | |
sudo apt install -y git netcat inetutils-ping wget curl bro npm nodejs | |
sudo pip install setuptools wheel | |
git clone https://github.com/firewalla/firewalla --branch release_6_0 --single-branch | |
cd firewalla | |
./buildraw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt update | |
sudo apt -y upgrade | |
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s - | |
sudo apt install -y snapd | |
sudo snap install helm --classic | |
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable | |
kubectl create namespace cattle-system | |
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.15.0/cert-manager.crds.yaml | |
kubectl create namespace cert-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl https://get.docker.com | sh | |
sudo usermod -aG docker $USER | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo apt install -y docker-compose | |
sudo systemctl stop systemd-resolved | |
sudo systemctl disable systemd-resolved | |
https://gist.githubusercontent.com/Fazendaaa/5da151f1f85f1b6c444119d756761b23/raw/05d050e57560b3ce8911f154d6399e8024383d3b/nanopineo2.friends.yml | |
mv nanopineo2.friends.yml docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
terminal: | |
container_name: wetty | |
image: fazenda/docker-wetty-alpine | |
restart: always | |
environment: | |
- REMOTE_SSH_PORT=22 | |
- REMOTE_SSH_SERVER=${SERVER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt update | |
sudo apt -y upgrade | |
sudo apt install -y vsftpd | |
echo "local_enable=YES\nwrite_enable=YES" | sudo tee -a /etc/vsftpd.conf | |
sudo service vsftpd restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt -y upgrade | |
sudo apt install snapd | |
sudo snap install microk8s --channel=1.16 --classic | |
mkdir $HOME/.kube | |
microk8s config > $HOME/.kube/config | |
sudo usermod -a -G microk8s $USER | |
sudo chown -f -R $USER $HOME/.kube | |
microk8s.enable dns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONFIG="" | |
sudo apt update | |
sudo apt -y upgrade | |
if test -f "/boot/firmware/cmdline.txt"; then | |
CONFIG="/boot/firmware/cmdline.txt" | |
else | |
CONFIG="/boot/firmware/nobtcmd.txt" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install resolvconf | |
sudo systemctl start resolvconf | |
sudo systemctl enable resolvconf | |
sudo rm /etc/resolvconf/resolv.conf.d/head | |
echo 'nameserver 9.9.9.9' | sudo tee -a /etc/resolvconf/resolv.conf.d/head | |
sudo systemctl reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build --platform=local -o . git://github.com/docker/buildx | |
mkdir -p ~/.docker/cli-plugins | |
mv buildx ~/.docker/cli-plugins/docker-buildx | |
docker buildx create --name mybuilder | |
docker buildx use mybuilder | |
docker buildx inspect --bootstrap | |
# https://github.com/docker/docker-ce/blob/master/components/cli/experimental/README.md | |
sudo printf "{\n\t\"experimental\": true\n}\n" | sudo tee /etc/docker/daemon.json | |
SHELL_RC="/dev/null" |