Created
June 21, 2021 16:20
-
-
Save JaniKibichi/00da7b235e901ea31d06aef3d7186e95 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
echo UPDATE THE VM LIBRARIES ======================================= \ | |
&& sudo apt-get update \ | |
&& echo INSTALL SNAP ================================================= \ | |
&& sudo apt-get install snapd \ | |
&& sudo snap install core; sudo snap refresh core \ | |
&& echo INSTALL GIT ================================================== \ | |
&& sudo apt-get -y install git-all \ | |
&& echo INSTALL DOCKER =============================================== \ | |
&& curl -fsSL https://get.docker.com -o get-docker.sh \ | |
&& sudo sh get-docker.sh \ | |
&& echo INSTALL DOCKER-COMPOSE ======================================= \ | |
&& sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \ | |
&& sudo chmod +x /usr/local/bin/docker-compose \ | |
&& echo PURGE APACHE2 ================================================ \ | |
&& sudo service apache2 stop \ | |
&& sudo apt-get purge apache2* \ | |
&& sudo apt-get autoremove \ | |
&& echo INSTALL NGINX ================================================ \ | |
&& sudo apt-get -y install nginx \ | |
&& echo INSTALL CERTBOT ============================================== \ | |
&& sudo snap install --classic certbot \ | |
&& sudo ln -s /snap/bin/certbot /usr/bin/certbot \ | |
&& echo INSTALL SSL ================================================== \ | |
&& sudo certbot --nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment