Make sure you read through and install all the software on the list.
What we will install:
- Virtual Box or HyperV or Parallels (Any virtualization software)
- Ubuntu Linux
- Python 3
- Docker
- Jenkins
- Ansible
- Git VCS
- Setup our cloud console on AWS.
- Resources
- Navigate here
- Click "Download VirtualBox 6.1"
- Click on Windows hosts
- Installation video from community
(ignore the section on downloading the virtual box binary, as its a little different than using the current version of virtualbox)
- Click on OSX hosts
- Once downloaded, click on the application in the downloads section of you browser
- Follow the directions on this video:
- Click on Linux distributions
- Once downloaded, click on the application in the downloads section of you browser
- Follow the directions on this video
- To Install Linux 19.04 inside of Virtual Box
- Here you can find some extra resources on configuring a Virtual Machine on Virtualbox
There are sometimes issues getting VirtualBox working on a windows host. As a work-around, you can use Hyper-V.
Note: Ubuntu 19.04 no longer has updates. We will be using the image without an upgrade.
- To Install Linux 19.04 inside of Hyper-V
- Ubuntu 19.04 installs in a small box on your screen on Hyper-V. This is a little annoying. The workaround is here
From this point forward you will be performing actions in your virtual machine. Now that we all have a working copy of Ubuntu Linux 19.04 installed. We can begin building our development server.
Let's update the apt packages as this will be needed for all installations:
- run:
sudo apt-get update
orsudo apt update
We will be using the python 3 interpreter (python3) and the python 3 package manager (pip3).
- Install python3:
TL;DR
- run
sudo apt install python3
- run
sudo apt install python3-pip
- run
python3 --version
- run
pip3 --version
- If it shows the version you are good to go.
- If you want more details: Install Python 3 tutorial
- run
- Install Docker:
TL;DR
- run
sudo apt install curl
- run:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
- run:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- run:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic test"
- run:
sudo apt install docker-ce
- run
docker --version
- If it shows the version you are good to go.
- If you want more details: Installation video
- run
- Installing Git:
- run:
sudo apt install git
- run:
git --version
- If it shows the version you are good to go.
- If you want more details: Installing Git tutorial
- run:
Cloning yout first git repo.
- run
cd ~
- run
git clone https://github.com/emersonmellado/devops.git
- run
ls -l
You should see a devops in the folder list.
-
Installing Jenkins:
-
If you know want to skip a few steps check this out
-
If you have no idea whete the previous link is all about keep reading:
-
run:
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
-
run:
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
-
run:
sudo apt-get update
-
run:
sudo apt-get install jenkins
-
-
Unlocking Jenkins
- Browse to
http://localhost:8080
- Open a terminal and run:
cat /var/lib/jenkins/secrets/initialAdminPassword
- If on docker you need to get the logs of the running container, you probably know what to do ;)
- Copy the output of that command into the input box
- Click continue as an admin
- Browse to
We are going to use the free tier, but feel free to use paid resources, up to you!
- Browse here
- Click Create Free Account
- Fill out the form
- Click continue
- Fill out that form
- Click Create Account and Continue
- Fill out the credit card information:
- Log in to the aws console with the account id and password we just created. email we chose password we chose