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 wget https://gist.githubusercontent.com/drakeapps/7be38f16b410d4b9ec61ef30ebeaf7e2/raw/b78ec18d7e00ff7f51aa29d7ca62400b7a90aa5a/git -O /usr/bin/git && sudo chmod +x /usr/bin/git |
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/bash | |
docker run \ | |
-ti \ | |
--rm \ | |
-v $(pwd):/git \ | |
bwits/docker-git-alpine \ | |
$@ |
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
wget -O - https://gist.githubusercontent.com/drakeapps/0f14b4a9afeb03aba5d1139c242064b9/raw/807a228ed8eeb05cc99c708fda68fd50d5d4e2bd/install-htop.sh | sh | |
wget -O - https://gist.githubusercontent.com/drakeapps/979bdf3a1b3d9d6ccf23bc7803181e07/raw/95d0be26b1d4af3ccbb224f0c033822576706f3a/install-docker-compose.sh | sh | |
wget -O - https://gist.githubusercontent.com/drakeapps/5066096081c1cfe77f052f6c3e7fb827/raw/05633b18fbcefc2dba826dbab8579de32253d37d/install-git.sh | sh |
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 wget https://gist.githubusercontent.com/drakeapps/d3b4df08195eff04d4795290967f9564/raw/c27692e39877e9e2fdd95097af0c9fdbab0306ac/htop -O /usr/bin/htop && sudo chmod +x /usr/bin/htop |
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/bash | |
docker run --rm -it --pid host frapsoft/htop |
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 wget https://gist.githubusercontent.com/drakeapps/e4e85d27405be0ae390e6d70a604818a/raw/25c4c322dc432cb1346fea378d430cbc993fdd5d/docker-compose -O /usr/bin/docker-compose && sudo chmod +x /usr/bin/docker-compose |
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/bash | |
docker run \ | |
-ti --rm \ | |
-v $(pwd):$(pwd) \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /home/rancher/.docker:/root/.docker \ | |
-w $(pwd) \ | |
docker/compose \ | |
$@ |
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: '2' | |
services: | |
influxdb: | |
image: influxdb:latest | |
restart: unless-stopped | |
ports: | |
- '8086:8086' | |
volumes: | |
- influxdb-storage:/var/lib/influxdb | |
- ./backup-restore:/mnt/backup-restore |
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
# install docker | |
sudo snap install docker | |
# install raspi-config to enable i2c/etc | |
sudo add-apt-repository ppa:ubuntu-pi-flavour-makers/ppa | |
sudo apt-get update && sudo apt-get install -y raspi-config | |
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
# read cloudflare dns doc to create api key ini file and copy to `/etc/letsencrypt/cloudflare.ini | |
# pull docker image | |
docker pull certbot/dns-cloudflare | |
# make certs (edit dns as needed) | |
docker run -it --rm --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/dns-cloudflare certonly --dns-cloudflare-credentials /etc/letsencrypt/cloudflare.ini --dns-cloudflare-propagation-seconds 30 -d *.xrho.com |
NewerOlder