Author: Ankesh K

What is Data Persistence and How can we use it via Docker ?

  Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. To know about Docker in details, click here. The installation and configuration process is described in our different blog. Click here to access that. Here at linuxnix.com, we have a list of activities to be performed in this Docker series. With these tasks, we will be getting a clear picture of day-to-day docker use and the real-time scenarios we face where we need Docker the most. The lists of the activities are mentioned below: Dockerize a 2-Tier Java application by creating a Docker Image. Push the same Docker Image to Docker Hub. Run a container based version of the Application Database using the Docker-Compose file. Ensure data persistence by mounting the data outside of the containers. In this section, we are going to start the fourth task. To go through the third task, click here.   Ensure data persistence in Containers via Docker In the previous blogs, we took a Java project, created a Dockerfile. Built the image using the Dockerfile, created the container, ran it and verified the running application on the port specified. We took the same image and pushed it to the Docker Hub. We ran a database version of this application and ran both the container simultaneously via docker-compose. Now in this task, we will...

Read More

How to install Terraform and create your first infrastructure in AWS?

How to Install Terraform Terraform must first be installed on your machine. Terraform is distributed as a binary package for all supported platforms and architecture. To install Terraform, find the appropriate package for your system and download it. Terraform is packaged in a zip archive. You need to unzip it and keep it in a location. Unzip the package. Let’s create a directory terraform and save the unzipped file inside the folder. cd /home/ubuntu mkdir terraform wget https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip unzip terraform_0.11.8_linux_amd64.zip Once we have the terraform file, we will set its path in .bashrc file.  Add a line to the file: PATH=$PATH:/home/ubuntu/terraform. vi .bashrc PATH=$PATH:/home/ubuntu/terraform To verify the installation, we have to run the command terraform from anywhere on the machine. We will go through all these commands at the latter part of this blog. terraform BUILD INFRASTRUCTURE Once we have Terraform installed, we will create the infrastructure. For the cloud provider, we are going to use AWS here. We can use any other cloud vendors such as Azure, Google Cloud Platform, Digital Ocean, etc. If you don’t have AWS account, create one. We will use the resources which are under free-tier. The set of files used to describe infrastructure is called Terraform configurations. We are going to write our first configuration to launch infrastructure in AWS. Let’s create a directory for our project and create a terraform file with all our configurations. mkdir...

Read More

What are all Terraform functionalities?

MORE ON TERRAFORM Welcome to linuxnix.com. In my earlier blogs, we have discussed what is HashiCorp Ecosystem and we have been through the Terraform Introduction. In this blog, we will deep dive into Terraform and understand each and every functionality of it. If you are just starting Terraform, please follow the hyperlinks above and come back here. To create your first infrastructure using Terraform, click here. Terraform is an Infrastructure as Code tool that helps you to create and improve your infrastructure. So let’s start with the configuration. Building infrastructure is easy, but building it in an automated and usable way is harder. If you are a Developer or a DevOps Engineer, you can understand the need for managing infrastructure components efficiently. Now going straight to point, we will deep dive into the Terraform. TERRAFORM CONFIGURATION Terraform uses text files to describe the infrastructure. These files are called Terraform File and end in .tf. Here in this section, we will talk about the format of these files and how Terraform understands these files and spin up the infrastructure. There are two formats of configuration: Terraform format and JSON format. The terraform format is more human readable, more declarative, supports comments and is prescribed by Terraform. Though we can use JSON templates to modify and update the infrastructure by changing the file extension as .tf.json. TERRAFORM CONFIGURATION SYNTAX The syntax...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.