docker swarm stack file Explained – Advanced Level

Docker swarm is a docker orchestration tool that comes along with docker engine when helps to manage multiple Docker containers across multiple hosts that are joined to the cluster. Docker Swarm enables high availability for docker containers by increasing the replicas for a particular service. let’s break the above docker-swarm stack file into smaller pieces In some cases, you might need to add a local DNS entry for your container when the hostname is not publically available. The above entry creates an entry in /etc/hosts file of docker container show…

Read More

docker swarm stack file Explained – Beginner Level

Docker swarm is a docker orchestration tool that comes along with docker engine when helps to manage multiple Docker containers across multiple hosts that are joined to the cluster. Docker Swarm enables high availability for docker containers by increasing the replicas for a particular service. if you don’t know what is the difference between docker-compose file vs docker stack check out this article. docker-compose and docker stack In this article, we are trying to explain about docker swarm stack file. We are splitting this article into two levels one is…

Read More

Install telegraf on linux system

Telegraf is a plugin-driven server agent for collecting and sending metrics and events from databases, systems, and IoT sensors. Telegraf is written in Go and compiles into a single binary with no external dependencies, and requires a very minimal memory footprint. Ubuntu Add the repository Install telegraf   Centos Add the repository     Install telegraf and start the service     Happy Learning 🙂 © 2020, Techrunnr. All rights reserved.

Read More

Nexus Blob store and its types

Nexus Repository Manager helps to create a repository for your organization where you store application artifacts and you can use it as a proxy for public repositories. t supports various formats, such as Maven, APT, and Go In this article, we will see what is Nexus blob store and what are the available types in Nexus Repository Manager. Nexus Blob Nexus Blob is the storage place linked to repository where the repository data are saved. By default, nexus uses the local file system as the blob store. The sonartype-work directory…

Read More

close and open elasticsearch indexes

Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. Elasticsearch is developed in Java. In this document, we will show how to open and close the indexes. Here is one of the uses where you might need to open and close the indexes. let’s assume that you are restoring elasticsearch snapshots from the repository using a curator. If you don’t know how to backup and restore elasticsearch data, then check out this…

Read More

Setup nfs server on Amazon Ec2

The Network File System (NFS) is a client/server application that lets a computer user view and optionally store and update files on a remote computer as though they were on the user’s own computer. The NFS protocol is one of several distributed file system standards for network-attached storage (NAS). Setup NFS Server In my case, I have a new EBS volume which is mounted to nfs server on location /backup. I need this volume to be mounted on some of the other servers. Step 1: Install NFS-server packages   Step…

Read More

Forgot Jenkins password??

Jenkins is a free and open-source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat. In this document, we show you how to reset the Jenkins password. This tutorial can be used in a crucial situation when you don’t have any other option to recover the admin username and password. Its always recommended having multiple admin privileged accounts. Step 1: Log in to…

Read More

Build and run docker containers using docker-compose

Docker-compose is an official tool by docker to manage and deploy multi-container applications. Docker-compose uses a YAML file where application services are defined. If you have any confusion between docker-compose and docker stack check out this link. Using the docker-compose file you can build docker images and run the docker containers in a single step. Here we will show you how to do this using a sample nodejs application Check this link to docker-compose installation guide How to install docker-compose in Linux Step 1: Create a folder for your application Step…

Read More

How to install docker-compose in Linux

Docker-compose is an official tool by docker to manage and deploy multi-container applications. Docker-compose uses a YAML file where application services are defined. If you have any confusion between docker-compose and docker stack check out this link. Installation Step 1: Download the docker-compose for your operating system. Step 2: Change the ownership of the downloaded file. This enabled executable permission Step 3: Check the docker-compose version Troubleshooting if the docker-compose command fails, create a symbolic link to the bin folder. sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose © 2020, Techrunnr. All rights…

Read More

configure aws cli for multiple accounts

AWS CLI helps to manage and administrate AWS resources from the command line rather than opening up the AWS management console. AWS CLI is very useful when you lot of automation tasks etc. For example, if you need to stop /start an EC2 instance every day, you can use AWS CLI for that. and place it in a cron job. Check this link to setup aws cli in Linux. If you see the above link it shows you how to configure aws cli for your aws account. Let’s say what…

Read More