Skip to content

Instantly share code, notes, and snippets.

View prasanjit-'s full-sized avatar
🇮🇳

Prasanjit Singh prasanjit-

🇮🇳
View GitHub Profile
@prasanjit-
prasanjit- / migrate-redis.py
Created November 20, 2017 20:39 — forked from thomasst/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@prasanjit-
prasanjit- / kubernetes.txt
Created July 27, 2017 02:38
Kubernetes Fundamentals
::KUBERNETES::
Why do we need Orchestration?
- To start a container cluster with simple commands.
- To auto-scale
- To maintain cluster state
Orchestration Tools for Docker:
@prasanjit-
prasanjit- / guestbook_example_k8s.yaml
Created July 26, 2017 20:14
Kubernetes Guest Book Example
apiVersion: v1
kind: Service
metadata:
name: redis-master
labels:
app: redis
tier: backend
role: master
spec:
ports:
@prasanjit-
prasanjit- / devops_tools_index.md
Last active July 9, 2017 21:13
DevOps Tools Index
@prasanjit-
prasanjit- / MongoDB.md
Last active July 9, 2017 21:11
MongoDB Essentials

MongoDB with Mongo Express

The following commands will run MongoDB in docker with a MongoDB frontend called Mongo Express:

docker run -d -p 27017:27017 --name mongo-db mongo:3.2.12

docker run -d -p 8081:8081 --name mongo-express \
--link mongo-db:mongo  mongo-express
'''''''''''''''''''''''''''''''''
Docker Container Management
'''''''''''''''''''''''''''''''''
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.
:: Building Images::
#-------#
Examples:
@prasanjit-
prasanjit- / JAVA BUILD AUTOMATION
Created June 28, 2017 02:58
JAVA BUILD AUTOMATION using Javac | Maven | Ant
'''''''''''''''''''''''''''''''''
JAVA BUILD AUTOMATION
'''''''''''''''''''''''''''''''''
Interpreted --
Input in High Level Language > Interpreter > Converts to Machine Lang > CPU
Examples: shell scripts, php
@prasanjit-
prasanjit- / Build SVN Server using Docker & Migrate SVN repo as GIT Repo
Created June 27, 2017 01:24
Build SVN Server using Docker & Migrate SVN repo as GIT Repo
:: SUBVERSION Image with frontend ::
3343 - HTTP CSVN Admin Sites
4434 - HTTPS CSVN Admin Sites (If SSL is enabled)
18080 - Apache Http SVN
To run SVN Server execute the command below:
docker run -d -p 3343:3343 -p 4434:4434 -p 18080:18080 \
@prasanjit-
prasanjit- / Jenkins Installation
Created June 26, 2017 01:56
Jenkins Installation
'''''''''''''''''''''''''''''
Module 3 - Process Automation
'''''''''''''''''''''''''''''
Concepts Covered:::
- Jenkins Deployment & Overview
- Process Automation
Jenkins is an open source automation server written in Java. The project was forked from Hudson after a dispute with Oracle.
'''''''''''''''''''''''''''''
Version Control + Build Management
'''''''''''''''''''''''''''''
GIT
**** create a new repository
create a new directory, open it and perform a
# git init
to create a new git repository.