Skip to content

Latest commit

 

History

History
172 lines (122 loc) · 6.51 KB

setup.md

File metadata and controls

172 lines (122 loc) · 6.51 KB

Installing our stack

Make sure you read through and install all the software on the list.

What we will install:

  1. Virtual Box or HyperV or Parallels (Any virtualization software)
  2. Ubuntu Linux
  3. Python 3
  4. Docker
  5. Jenkins
  6. Ansible
  7. Git VCS
  8. Setup our cloud console on AWS.
  • Resources
  1. What is a virtual machine (what is virtualization)
  2. What is virtual box

Install Virtual box:

  1. Navigate here
  2. Click "Download VirtualBox 6.1"

On Windows:

  1. Click on Windows hosts
  2. 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)

On Mac:

  1. Click on OSX hosts
  2. Once downloaded, click on the application in the downloads section of you browser
  3. Follow the directions on this video:

On Linux:

  1. Click on Linux distributions
  2. Once downloaded, click on the application in the downloads section of you browser
  3. Follow the directions on this video

Installing Ubuntu Linux

What is linux

On Windows:

With Hyper-V:

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.

On Mac:

On Linux:


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 or sudo apt update

Python

We will be using the python 3 interpreter (python3) and the python 3 package manager (pip3).

  1. 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

Docker

  1. 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

Git

  1. 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

Cloning yout first git repo.

  1. run cd ~
  2. run git clone https://github.com/emersonmellado/devops.git
  3. run ls -l

You should see a devops in the folder list.


Jenkins

  • What is Jenkins

  • 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

    • Installing Jenkins video

  • Unlocking Jenkins

    1. Browse to http://localhost:8080
    2. 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 ;)
    3. Copy the output of that command into the input box
    4. Click continue as an admin

Ansible

AWS Account

We are going to use the free tier, but feel free to use paid resources, up to you!

  1. Browse here
  2. Click Create Free Account
  3. Fill out the form
  4. Click continue
  5. Fill out that form
  6. Click Create Account and Continue
  7. Fill out the credit card information:
  8. Log in to the aws console with the account id and password we just created. email we chose password we chose

<- Go Back