Preparing environment for building pipeline…

Keshav Mishra
3 min readAug 8, 2020

Welcome,

Till now I have told you about launching an instance on AWS and how to connect PuTTY to AWS in previous posts.Now let me clear there are many ways a DevOps pipeline can be created,but this is for people who want to dive into DevOps and are in it’s beginning phase and dream to build a DevOps pipeline of their own.I’ll be using certain tools which I use often and there is no problem in using other tools which you find more useful or work better in specific environments.

Now let’s prepare an environment to work upon.

First Part :

1) Decide the AMI(Amazon Machine Image) you want to and create instance as told in previous post .I’ll be using Linux image and instance type will be t2.2xlarge.

2) Connect it through PuTTY and login inside with the username and password.

3) You’ll get an environment of Linux where you can perform tasks which can also be done on linux after installing it in your laptop or computer.

Second Part

1)Install docker on your instance created.

Go through https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html if you want to know how to install it.

2) Start the docker daemon through “sudo systemctl start docker” command.

3) Now visit docker hub website and login.Create an account if you don’t have one.

4) Search for “JIRA” .After clicking on the image you’ll get a command on right side as to

pull it in your instance/machine.

5) Copy it and run it on the command line.It may take some time to install as depends on network connection.

6) After this run the command :

“docker run — detach — publish 8080:8080 image_name:latest”. You can change the port number if it is occupied already by any other process.

You can check for running container through “docker ps “command.

7)Now copy the public IP address of your instance and in your search bar paste it adding the port number like this “ip_add:8080”.Then you can navigate to “http://[dockerhost]:8080" and finish configuration.

This post will help you install docker and JIRA on your instance.

In later posts I’ll be discussing about setting up JIRA account and other things.

Hope you understand !!

--

--