Showing posts with label Docker. Show all posts
Showing posts with label Docker. Show all posts

Monday, 20 April 2020

How to install cPanel on CentOS

Introduction:- cPanel is a very simple and easy online based control panel to manage your hosting services. The best thing is that non-technical people can also handle all aspects of their web site without any technical skill. With the cPanel you can manage all the important aspects like upload files to your server, install wordpress, connect domain name to your hosting, checking your bandwidth and other usage stats, taking backup of your web sites, setup e-mails for your site, Set up various optimizations and a lot more !!

Quick Tip: You can run this installation on a Cloud Instance or a Virtual Private Server or Dedicated server, and even on a Container such as Docker!

Let's Start:
Login to server as root (SSH).
cPanel is programmed in Perl language. So before starting the installation we need to install Perl if it isn't installed on the server.

yum users should run the following command:

#yum install -y perl

Now you need to set the hostname for your server. Using hostname you can identify your computer in the network. To change your hostname run the following command

#hostname vps.mydomain.com

You can replace vps.mydomain.com with your hostname. You must have to purchase the domain which your are setting up the hostname.

Next, step is you will need to change your current directory to /home directory, run the following command to do this.

#cd /home

It’s time to download the installation script from cPanel official website.

#curl -o latest -L https://securedownloads.cpanel.net/latest

Now, run the below execution script and install the cPanel.

#sh latest

This command will start your cPanel installation, you need to wait around half and hour and can now sit back and relax as the installation takes around half hour to complete. Once the installation script is finished you will see the following type of output:

--------------------------------------------------------------------------------------------------------------------------------

[2020-04-14 10:04:57 +0000] [9869] ( INFO): cPanel install finished in 5 minutes and 35 seconds!

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Congratulations! Your installation of cPanel & WHM 11.86 is now complete. The next step is to configure your server.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): 1. Open your preferred browser

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): 2. Navigate to the following url using the address bar and enter this one-time autologin url:

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): https://13.127.207.50:2087/cpsess0353546322/login/?session=root%3aroyqyQSyp90CRSSv%3acreate_user_session%2c08904fd92d0fea5549ca256a84ac2b18

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): After the login url expires you generate a new one using the 'whmlogin' command or manually login at:

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): https://13.127.207.50:2087

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server.

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Visit http://support.cpanel.net or https://go.cpanel.net/allfaq for additional support

[2020-04-14 10:04:57 +0000] [9869] ( INFO):

[2020-04-14 10:04:57 +0000] [9869] ( INFO): Thank you for installing cPanel & WHM 11.86!

Removing /root/installer.lock.

--------------------------------------------------------------------------------------------------------------------------------

Congratulations !!

Your cPanel installation is completed and now, you can now open your browser and go to https://your-server-ip:2086 to access cPanel. Login with username root and your root account's password. For example if your IP is 192.168.1.82 then you will have to go to

https://192.168.1.82:2086

Note:-

Once cPanel is installed you can not be uninstall it from server as it does not have any uninstaller. To uninstall you need to reinstall your operating system. cPanel is commercial software and offers a 15 day trial period. Once cPanel is installed on server it is automatically activated.

Tuesday, 14 January 2020

Latest Tensorflow version now sustained with AWS Deep Learning

The AWS Deep Learning packages are backed with Tensorflow 2.0. This version implements consequential updates to the pre-existing API, clarifies eager decapitation, offers a fresh dataset manager, and more. One can launch the advanced versions of Deep Learning packages on Amazon SageMaker, Amazon Elastic Kubernetes Service (Amazon EKS), automated Kubernetes on Amazon EC2, and Amazon Elastic Container Service (Amazon ECS). Deep Learning Containers (AWS DL Containers) are Docker images that are pre-installed with deep learning groundwork to make it convenient to expand custom machine learning (ML) surroundings rapidly by allowing one to skip the complex process of constructing and administering the environments from level zero. AWS DL Containers uphold TensorFlow, PyTorch, and Apache MXNet. The containers are accessible through Amazon Elastic Container Registry (Amazon ECR) and AWS Marketplace at no extra expenditures where one pays only for the data that is used. Docker packages are a prevalent way to open customized ML habitats that run constantly in numerous environments. The AWS Deep Learning package for TensorFlow comprises a container for Training and Inference for CPU and GPU, enhanced for performance and position on AWS. These Docker images have been certified with Amazon SageMaker, EC2, ECS, and EKS and contribute stable versions of NVIDIA CUDA, cuDNN, Intel MKL, Horovod, and other mandatory software factors to give a seamless user experience for deep learning front-loads.

Thursday, 3 October 2019

Introducing Docker with Installation Commands


Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Docker containers are lightweight alternatives to Virtual Machine and it uses the host OS. You don't have to pre-allocate any RAM in containers.




Difference between Virtualization and Containerization:

Refer the below diagram for more understanding.


    Virtualization Containerization


Architecture Diagram of Docker



Docker Components :

1. Docker File

  1. Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession.

2. Docker Registry
  1. Docker registry is a storage component of Docker images.
  2. We can store the images in either public and private repositories.
  3. Docker Hub is a Docker’s very own cloud repository.

3. Docker Images
  1. Read only template used to create containers.
  2. Stored in docker hub or your local registry.

4. Docker Containers
  1. Isolated Application Platform.
  2. Contains everything needed to run the application.

Docker installation commands for beginners. How to install Docker on ubuntu :

1. Update the software repository.
  • sudo apt-get update

2. Uninstall any older docker packages and software of docker before installation of new docker packages.
  • sudo apt-get remove docker docker-engine docker.io

3. Install the docker, enter the below command in the terminal.
  • sudo apt-get install docker.io

4. The Docker service needs to be setup to run at startup. Enter the following commands.
  • sudo systemctl start docker
  • sudo systemctl enable docker
  • systemctl status docker

5. We can check the version of docker.
  • docker --version

6. We can pull any type of images from docker hub or we can create our own docker image from docker file. Here we have pulled the ubuntu image from docker hub, kindly refer the below command.
  • docker pull ubuntu
  • docker images (using this command we can list the images that we have pulled from docker hub.)

7. After getting the image we need to run that images to create the container. [Note: we can create number of containers from single docker image for multi tier architecture]. Refer the below command to run the docker image.
  • docker run --name ubuntu-server -d -p 80:80 -t ubuntu [Explanation: port forwarding, network port:container port and given the ubuntu-server as container name.
  • docker ps -a [list the containers name and from which images we have created the containers along with port and status]

8. Once the container ready we need to enter in container. Refer the below command.
  • docker exec -it ubuntu-server bash [example: container name: ubuntu-server. Put the same name of container that you have given at the time of creating the container]

9. We have successfully entered into the container.now we can work with the container whatever we want to run. [Install the web servers and all.]

10. To remove container
  • docker rm ubuntu-server

11. To check the IP address of containers.
  • sudo docker inspect container_id.

12. To stop docker
  • docker stop ubuntu-server

We hope that this article will help you understand basic Docker information. If you have any queries related to Docker then do let us know.

Friday, 12 July 2019

Fluent Bit Plugins for AWS Introduced By Amazon ECS

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, high-performance container orchestration service which helps Docker containers and permits you to directly execute and scale containerized applications on AWS. Amazon ECS removes the necessity for you to install and run your personal container orchestration software, manage and scale a cluster of virtual machines, or schedule containers on those virtual machines. AWS Container Services introduces AWS Fluent Bit, a container image pre-installed with Amazon CloudWatch and Amazon Kinesis Data Firehose plugins which guides users route container logs to several targets like CloudWatch, Amazon S3, Amazon Redshift, and Amazon Elasticsearch Service. Fluent Bit is an open source and multi-platform Log Processor and Forwarder that enables you to gather data and logs from multiple sources, merge and transfer them to different places. It's completely compatible with Docker and Kubernetes environments. With the help of recently introduced AWS Fluent Bit image, you can send container logs to the range of services for logs storage and analytics at AWS. The blog about how to use the Fluent Bit image on both Amazon ECS and Amazon EKS will help you to learn further.

Reduce Amazon Bedrock costs by 50% using Intelligent Prompt Routing

The problem: premium models are quietly draining your AWS budget Here's a pattern that shows up in almost every Bedrock account we look ...