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
""" | |
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. |
::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: |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: redis-master | |
labels: | |
app: redis | |
tier: backend | |
role: master | |
spec: | |
ports: |
# | DEVOPS TOOLS & REPOSITORIES | LINK INDEX | USAGE |
---|---|---|---|
1 | Jenkins | https://jenkins.io/ | Pipeline Automation |
2 | Jenkins Plugins | https://plugins.jenkins.io/ | Pipeline Automation |
3 | Docker | https://www.docker.com/ | Containerization |
4 | Docker Hub | https://hub.docker.com/ | Docker Image Repo |
5 | Ansible | https://www.ansible.com/resources | Deployment Automation |
6 | Ansible Galaxy | https://galaxy.ansible.com/ | Ansible Playbook Repo |
7 | Puppet | https://puppet.com/resources | Deployment Au |
''''''''''''''''''''''''''''''''' | |
JAVA BUILD AUTOMATION | |
''''''''''''''''''''''''''''''''' | |
Interpreted -- | |
Input in High Level Language > Interpreter > Converts to Machine Lang > CPU | |
Examples: shell scripts, php |
:: 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 \ |
''''''''''''''''''''''''''''' | |
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. |
:: NFS :: | |
NFS, stands for Network File System, is a server-client protocol used for sharing files between linux/unix to unix/linux systems. NFS enables you to mount a remote share locally. You can then directly access any of the files on that remote share. | |
- Test Nodes: | |
NFS Server Hostname: server1 | |
NFS Server IP Address: 192.168.1.104/24 | |
NFS Client Hostname: server2 | |
NFS Client IP Address: 192.168.1.102/24 |
Prerequisite Concepts - | |
- Hosts file in Linux : | |
- Web Server : Apache & Nginx, IIS | |
:: Steps to deploy a package in Linux: | |
1. Install it --> # yum install httpd | |
2. Configure it --> checking the config file |