Skip to content

Latest commit

 

History

History
166 lines (125 loc) · 5.96 KB

workshop1.md

File metadata and controls

166 lines (125 loc) · 5.96 KB

S-DOEA - Workshop 2 - Jenkins Installation

Pre-requisites for Cloud installation

Step by step installation

  1. Navigate to the AWS services link top left corner beside the AWS logo


  1. Search/Select EC2 under the compute category
  2. Launch a new instance, search 'bitnami jenkins' on the marketplace


  1. Search 'bitnami jenkins' on AWS marketplace click on Select to create the instance

  1. On the next page a pricing details page will be shown. Click continue


  1. Choose an instance type which is t2 micro/small (free tier). Click Next Configure Instance details


  1. Landed on a configure instance details page and by default nothing is require to be configure on this page. Click Add Storage


  1. On the configure storage page change 10GB to 15GB. Try not add more mount point overall AWS only give 30GB per instance on free tier.


  1. Define a tag for your jenkins server click add tag on the key field specify 'name' and value as 'project_name_ubuntu_jenkins'. Click Next


  1. Configure security group as default no addition configuration is needed on this page


  1. Upon launching the instance AWS require us to create a new pair of private key to be use to access the instance.


  1. Review all the configuration and click on Launch

  2. After creating the private key, a new instance will be launch. Kindly wait for a few minutes. Upon successful creation of the instance your instance is now ready to be use



  1. Click on the instance id, the look out for instance status where it is running.


  1. Access the Jupyter notebook URL
    http://159.223.95.85:8888/tree?token=0cadc22a6dc9ff20462b6dee0d749135c6e8dd1693d40fc4 . Upload the pem to the root directory of the jupyter notebook.




You will need the public DNS and the private key (PEM) file that have been downloaded to SSH into the respective EC2 bitnami instance.  



Perform this command to logon into the bitnami server, make sure the pem is on the current directory.

$ ls -lrt <pem filename>
$ chmod 400 <pem filename>
$ ssh -i <pem filename> bitnami@<aws ec2 hostname>

Upon logging into the EC2 instance, change directory to /home/bitnami

$ cd /home/bitnami 
  1. Server will prompt client to accept fingerprint signature before the terminal is allow to logon. Type 'Yes' and press enter
The authenticity of host '52.221.182.172 (52.221.182.172)' can't be established.
ECDSA key fingerprint is SHA256:XHAuxI+mgND3yKJosxgTGXRskXCOehc5kCkA+KztOI4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '52.221.182.172' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-1085-aws x86_64)
       ___ _ _                   _
      | _ |_) |_ _ _  __ _ _ __ (_)
      | _ \ |  _| ' \/ _` | '  \| |
      |___/_|\__|_|_|\__,_|_|_|_|_|

  *** Welcome to the Bitnami Jenkins 2.176.1-0 ***
  *** Documentation:  https://docs.bitnami.com/aws/apps/jenkins/ ***
  ***                 https://docs.bitnami.com/aws/ ***
  *** Bitnami Forums: https://community.bitnami.com/ ***
  1. Look for the username and password under the bitnami_credentials file. View the bitnami_credentials file with the following command
more bitnami_credentials

As result the more command will show the default username and password on your terminal screen

Welcome to the Bitnami Jenkins Stack

******************************************************************************
The default username and password is 'user' and 'Dh9b6mi4AQOF'.
******************************************************************************

You can also use this password to access the databases and any other component the stack in
cludes.

Please refer to https://docs.bitnami.com/ for more details.
  1. Retrieve ip4 public IP address or the DNS name from the AWS jenkins instance console panel


  1. Launch the web browser then access the jenkins web admin app.


  1. Login to Jenkins with the username and password retrieve from the bitnami credentials flat file


  1. Screenshot the jenkins dashboard page with the URL shown on the address bar. Save the screenshot to Luminus submission folder.