- Virtualbox
- Vagrant
- Download this Gist as a zipfile
- Run
vagrant up
to create and provision a new box
#!/bin/bash | |
# clean not running containers | |
LIST_STATUS="created restarting removing paused exited dead" | |
for status_element in $LIST_STATUS | |
do | |
for container in $(/usr/bin/docker ps -aq -f status=$status_element) | |
do | |
echo "`date '+[%Y-%m-%d %H:%M:%S]'` gracefully eliminating container ${container}" | |
/usr/bin/docker rm $container |
version: "3" | |
services: | |
tor-router: | |
container_name: tor-router | |
image: jess/tor-router:latest | |
network_mode: host | |
onion: | |
image: jess/onion:latest |
Lorem ipsum dolor sit cuchuflí barquillo bacán jote gamba listeilor po cahuín, luca melón con vino pichanga coscacho ni ahí peinar la muñeca chuchada al chancho achoclonar. Chorrocientos pituto ubicatex huevo duro bolsero cachureo el hoyo del queque en cana huevón el año del loly hacerla corta impeque de miedo quilterry la raja longi ñecla. Hilo curado rayuela carrete quina guagua lorea piola ni ahí. |
# update system | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# install software | |
sudo apt-get install hostapd dnsmasq bridge-utils openvpn unzip -y | |
sudo systemctl stop hostapd | |
sudo systemctl stop dnsmasq | |
sudo rm -f /etc/dhcpcd.conf |
# make sure volumes exist before starting this | |
# mkdir -p {jenkins/volumes/var/jenkins_home,artifactory} | |
jenkins: | |
image: jenkins/jenkins:2.84 | |
restart: always | |
ports: | |
- "80:8080" | |
- "50000:50000" | |
volumes: | |
- ./jenkins/volumes/var/jenkins_home:/var/jenkins_home |
registry: | |
image: registry:2.6.1 | |
restart: always | |
ports: | |
- "5000:5000" | |
environment: | |
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/live/domain.address.com/fullchain.pem | |
REGISTRY_HTTP_TLS_KEY: /certs/live/domain.address.com/privkey.pem | |
REGISTRY_STORAGE_DELETE_ENABLED: "true" | |
volumes: |
.vagrant/ | |
tmp/ |