Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vs4vijay/homelab

Homelab / Cloudlab
https://github.com/vs4vijay/homelab

caddy cloud-lab docker duckdns homelab portainer self-hosted self-hosting selfhosted selfhosting wireguard

Last synced: 3 days ago
JSON representation

Homelab / Cloudlab

Awesome Lists containing this project

README

        

# homelab

## Install PyInfra

```bash

pip install pyinfra

pyinfra server_name deploy.py
pyinfra server_name exec -- echo "hello world"

```

## Basic Setup

```bash

pyinfra helidon infra/basic_setup.py

```

## Install Docker

```bash
sudo curl -fsSL https://get.docker.com/ | CHANNEL=stable bash
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker --now
exit # exit all terminals to reflect the changes

OR

# Maintained by Docker
sudo apt install docker-ce docker-ce-cli containerd.io -y

OR

# Maintained by Debian
sudo apt install docker.io docker-compose -y
chmod 666 path

```

---

## Install Portainer

```bash

docker compose -f portainer.docker-compose.yml up -d

```

---

### Development Notes

```bash

sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"

sudo apt-get install kubelet kubeadm kubectl

sudo swapoff -a

sudo kubeadm init --control-plane-endpoint=$IPADDR --pod-network-cidr=$POD_CIDR --node-name $NODENAME --apiserver-cert-extra-sans=$IPADDR --ignore-preflight-errors Swap

kubeadm token create --print-join-command

docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
--privileged \
rancher/rancher:latest

curl -sfL https://get.k3s.io | sh -
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644

https://phoenixnap.com/kb/how-to-install-kubernetes-on-a-bare-metal-server

https://dockerlabs.collabnix.com/kubernetes/beginners/install/ubuntu/18.04/install-k8s.html

oci session authenticate

terraform init

terraform plan

terraform validate

terraform apply

https://github.com/wemake-services/caddy-gen

```