Image for post
Image for post

In my previous article here, I’ve discussed how can we launch GUI Apps like Firefox Browser, Nautilus File Manager in Docker.

Today, I’m again with another GUI App in Docker container, Spotify.

For a GUI Application to run, we need to have an XServer which is available as part of every Linux Desktop Environment.

For Windows, you can use Xming.

For OSX, you can use Xquarkz.

Image for post
Image for post

What is Docker?

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package. By doing so, thanks to the container, the developer can rest assured that the application will run on any other Linux machine regardless of any customized settings that the machine might have that could differ from the machine used for writing and testing the code.

In a way, Docker is a bit like a…

Image for post
Image for post

In order to set up the Kubernetes environment, we need to install the following in our cloud Instance:
1. Docker: docker-ce:18.06 or above
2. Kubectl
3. Minikube

Step 1: Launch an AWS EC2 Instance

Go to AWS Management Console →Services →EC2

Image for post
Image for post

Prerequisite: This article assumes you have docker installed on your machine.

Step 1: Dockerfile

FROM ubuntu:latest
LABEL maintainer="MuhammadTabish" email="" version="1.0" location="India" type="ubuntu-ssh"RUN apt update && apt install openssh-server sudo -y

RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test

RUN echo 'test:test' | chpasswd

RUN service ssh start


CMD ["/usr/sbin/sshd","-D"]

Line 1: Here I am using ubuntu as the base image for the container.

Line 2: We are setting some labels for this Docker Image.

Line 3: By default, Docker does not have sudo installed, hence the need to install it along with the open…

EC2 ○ EBS ○ S3 ○ CloudFront

Image for post
Image for post

📄 Problem Statement:

🔰 Create High Availability Architecture with AWS CLI. The architecture includes:

  1. Webserver configured on EC2 Instance

2. Document Root(/var/www/html) made persistent by mounting on EBS Block Device.

3. Static objects used in code such as pictures stored in S3

4. Setting up Content Delivery Network using CloudFront and using the origin domain as the S3 bucket.

5. Finally place the Cloud Front URL on the web app code for security and low latency.

What is CloudFront? How it uses a Content Delivery Network?

✍🏻Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers globally with low latency, high transfer speeds…

Image for post
Image for post

In this article, we will:

1.Configure Apache2/HTTPD Server on Docker Container

2. Set Up a Python Interpreter, and run our Python Code on Docker Container.

3. Commit the changes in the container and create a Docker Image.

4. Push the Image to the Docker Hub.


Docker is a platform for developers and sysadmins to develop, deploy, and run applications with containers. This is often described as containerization. Putting applications into containers leads to several advantages like:

  • Docker containers are always portable. …

Image for post
Image for post

The Hadoop Distributed File System (HDFS) is a distributed file system designed to run on commodity hardware. It has many similarities with existing distributed file systems. However, the differences from other distributed file systems are significant. HDFS is highly fault-tolerant and is designed to be deployed on low-cost hardware. HDFS provides high throughput access to application data and is suitable for applications that have large data sets.

By default, Hadoop Slave Nodes/ Data Nodes contributes all the storage present in the “/” (root drive) to the Hadoop Cluster. E.g., …

Image for post
Image for post

Amazon Web Services (AWS) is the leading platform for cloud computing. It has nearly every conceivable thing you’d need. AWS is used extensively by top companies and startups because of its wide range of products, it’s super easy to dynamically scale, and it’s very secure.

Launching EC2 Instance with EBS and Security Group using AWS CLI

  1. Create a key pair
  2. Create a security group
  3. Launch an instance using the above created key pair and security group.
  4. Create an EBS volume of 1 GB.
  5. The final step is to attach the above created EBS volume to the instance you created in the previous steps.

Step 1: Create a key pair

aws ec2 create-key-pair --key-name aws-cli-key

Muhammad Tabish Khanday

Lets code 💻.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store