Git Product home page Git Product logo

docker's Introduction

Docker

The SCSB Middleware codebase and components are all licensed under the Apache 2.0 license, with the exception of a set of API design components (JSF, JQuery, and Angular JS), which are licensed under MIT X11.

Docker is an open-source software platform to create, deploy and manage virtualized application containers on a common operating system (OS). The SCSB(Shared Collections Service Bus) application runs with docker containers running up and dependent on each other. Each container provides a microservice project which are built as separate images. All the micro services which are used in SCSB applications are given under respective modules.

Prerequisites

Ubuntu environment with Docker and JAVA 8 installed.

Installation

This project can be cloned using the command :

git clone https://github.com/ResearchCollectionsAndPreservation/docker.git

To build and run each Dockerfile,a docker build and docker run command must be used.

To build a docker image :

docker build -t {image-name} . (current directory)

To run a docker container :

docker run --name {container-name} -v /path-to-local-directory:/path-to-container-directory -p {localhost port}:{container port} -d {image-name}

The images available under this Docker repositories are :

1.scsb-base
2.scsb-mysql
3.scsb-solr-base
4.scsb-solr-server
5.scsb-cas
6.scsb-activemq-base
7.scsb-activemq
8.scsb-zookeeper-base
9.scsb-zookeeper
10.scsb
11.scsb-solr-client
12.scsb-circ
13.scsb-etl
14.scsb-shiro
15.scsb-ui
16.scsb-batch-scheduler
17.jenkins
18.scsb-javadocs

scsb-log4j

scsb-persistence -- This is no longer used.

SCSB-BASE

SCSB-BASE is the base image for building SCSB application.This image builds on Ubuntu and installs GIT,JAVA and GRADLE. This image will be used as the base image for almost all the other images.

To build scsb-base image :

Goto scsb-base where the Dockerfile is available and run the below command to build the base image

docker build -t scsb-base .  

SCSB-MYSQL

SCSB-MYSQL is an docker image which will install MySQL and all the database schema/scripts needed for SCSB application will be created and maintained here

To build the scsb-mysql image :

Goto to scsb-mysql and run the below command to build the scbs-mysql image

docker build -t scsb-mysql .  

to run the scsb-mysql container :

docker run --name scsb-mysql -v /data/mysql-data:/var/lib/mysql -p 3306:3306 -d scsb-mysql

SCSB-SOLR-BASE

SCSB-SOLR-BASE builds from the base image and installs Apache Solr Server.

To build the scsb-solr-base image :

Goto scsb-solr-base and run the below command

docker build -t scsb-solr-base .  

SCSB-SOLR-SERVER

Apache solr server configuration files are managed here.

To build the scbs-solr-server image

Goto to scsb-solr-server and the below command

docker build -t scsb-solr-server .  

To run the scsb-solr-server container

docker run --name scsb-solr-server -v /data/solr-data:/var/data/solr -p 8983:8983 -d scsb-solr-server  

SCSB-CAS

SCSB-CAS image manages the configuration files for CAS Authentication

To build the scsb-cas image :

Goto scsb-cas and run the below command

docker build -t scsb-cas .  

To run the scsb-cas conatiner :

docker run --name scsb-cas -p ${port} -p ${sslport} -e "DB_HOST=${DB_HOST}" -e "DB_USERNAME=${DB_USERNAME}" -e "DB_PASSWORD=${DB_PASSWORD}" -d scsb-cas  

SCSB-ACTIVEMQ-BASE

SCSB-ACTIVEMQ-BASE image is build from scsb-base image.This image downloads and installs ActiveMQ.

To build scsb-activemq-base :

Goto scsb-activemq-base and run the below command.

docker build -t scsb-activemq-base .

SCSB-ACTIVEMQ

This image mananges all the configuration files for ActiveMQ.

To build the scsb-activemq image :

Goto scbs-activemq and run the below command

docker build -t scsb-activemq .

To run a scsb-activemq container :

docker run --name scsb-activemq -v /data/activemq-dev-data:/opt/activemq/data  -p 8161:8161 -p 61616:61616 -p 1099:1099 -d scsb-activemq  

SCSB-ZOOKEEPER-BASE

This image downloads Apache Zookeeper.

To build the scsb-zookeeper-base :

docker build -t scsb-zookeeper-base .

SCSB-ZOOKEEPER

The environment variable and configurations needed for Apache Zookeeper are managed here.

To build a scsb-zookeeper image :

Goto scsb-zookeeper and run the below command

docker build -t scsb-zookeerper .

To run a scsb-zookeeper container :

docker run --name scsb-zookeeper  -e "ZOO_MY_ID=?" -e "ZOO_SERVERS=server.1=? server.2=? server.3=?" -v ${MOUNT_DIR}/conf:/opt/scsb-zookeeper/conf -v ${MOUNT_DIR}/data:/opt/scsb-zookeeper/data -v ${MOUNT_DIR}/log:/opt/scsb-zookeeper/datalog  -p ${CLIENT_PORT} -p ${SYNC_PORT_1} -p ${SYNC_PORT_2} -d scsb-zookeeper  

SCSB

This image is build from the scsb-base image.This image clones the SCSB github project and starts the application when a container is created.

To build the scsb image :

Goto scsb and run the below command :

docker build -t scsb .

To run a scsb container :

docker run --name scsb -v ${mountVolume}  -p ${port} -e "ENV=-XX:+HeapDumpOnOutOfMemoryError -Dspring.config.location=?  -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*"" -d scsb  

SCSB-SOLR-CLIENT

This image is build from the scsb-base image.This image clones the SCSB-CIRC-CLIENT github project and starts the application when a container is created.

To build the scsb-solr-client image :

Goto scsb-solr-client and run the below command :

docker build -t scsb-solr-client .

To run a scsb-solr-client container :

docker run --name scsb-solr-client --link scsb-activemq:activemq -v ${dataDir}  -p ${port} -e "ENV=-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdumps/scsb-solr-client -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*" -Dspring.config.location=?" -d scsb-solr-client  

SCSB-CIRC

This image is build from the scsb-base image.This image clones the SCSB-CIRC github project and starts the application when a container is created.

To build the scsb-circ image :

Goto scsb-circ and run the below command :

docker build -t scsb-circ .

To run a scsb-circ container :

docker run --name scsb-circ --link scsb-mysql:mysql --link scsb-solr-client:scsb-solr-client --link scsb-activemq:activemq  -v ${dataDir}  -p ${port} -e "ENV=  -XX:+HeapDumpOnOutOfMemoryError  -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*" -Dspring.config.location=?" -d scsb-circ  

SCSB-ETL

This image is build from the scsb-base image.This image clones the SCSB-ETL github project and starts the application when a container is created.

To build the scsb-etl image :

Goto scsb-etl and run the below command :

docker build -t scsb-etl .

To run a scsb-etl container :

docker run --name scsb-etl --link scsb-mysql:mysql -v ${pendingDir}  -p ${port} -e "ENV=-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdumps/scsb-etl -Xmx4g -Xms256m -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*"  -Dspring.config.location=?" -d scsb-etl 

SCSB-SHIRO

This image is build from the scsb-base image.This image clones the SCSB-SHIRO github project and starts the application when a container is created.

To build the scsb-shiro image :

Goto scsb-shiro and run the below command :

docker build -t scsb-shiro .

To run a scsb-shiro container :

docker run --name scsb-shiro --link scsb-mysql:mysql -v ${mountdir}  -p ${port} -e "ENV=-XX:+HeapDumpOnOutOfMemoryError  -Dspring.config.location=?" -d scsb-shiro

SCSB-UI

This image is build from the scsb-base image.This image clones the SCSB-UI github project and starts the application when a container is created.

To build the scsb-ui image :

Goto scsb-etl and run the below command :

docker build -t scsb-ui .

To run a scsb-ui container :

docker run --name scsb-ui --link scsb-mysql:mysql --link scsb-solr-client:scsb-solr-client --link scsb:scsb --link scsb-shiro:scsb-shiro --link  -v ${mountdir}  -p ${port} -e "ENV=-XX:+HeapDumpOnOutOfMemoryError -Dspring.config.location=?" -d scsb-ui

JENKINS

JENKINS is used as an automation tool for deployment and run other jenkins jobs as necessary.

To build the jenkins image :

Goto jenkins and run the below command :

docker build -t scsb-jenkins .

To run a scsb-jenkins container :

docker run --name scsb-jenkins -v /data/jenkins:/var/lib/jenkins -p 8080:8080 -d scsb-jenkins

To get the administrative password :

#Get inside the container
docker exec -it scsb-jenkins bin/bash  
#Goto  
cd /data  
#Type the below command,tt displays the password
sudo tail jenkins/secrets/initialAdminPassword

SCSB-BATCH-SCHEDULER

This image is build from the scsb-base image.This image clones the SCSB-BATCH-SCHEDULER github project and starts the application when a container is created.

To build the scsb-batch-scheduler image :

Goto scsb-batch-scheduler and run the below command :

docker build -t scsb-batch-scheduler .

To run a scsb-batch-scheduler container :

docker run --name scsb-batch-scheduler --link scsb-mysql:mysql --link scsb-solr-client:scsb-solr-client --link scsb-circ:scsb-circ --link scsb-activemq:activemq -v ${mountVolume}  -p ${port} -e "ENV= -XX:+HeapDumpOnOutOfMemoryError -Dspring.config.location=?" -d scsb-batch-scheduler

SCSB-JAVADOCS

This image generates the javadocs for all the projects based on the war file built.

To create a scsb-javadocs image :

Goto scsb-javadocs and run the below command

docker build -t scsb-javadocs .  

To run a scsb-javadocs container :

docker run --name scsb-javadocs -p ${port} -d scsb-javadocs

SCSB-LOG4J

scsb-log4j folder contains the log file configurations for all the projects.

docker's People

Contributors

angelindayana avatar chenchulakshmig avatar govindarajank avatar hari-krishnan19 avatar kirankumar03 avatar peris avatar premkumarbalu avatar rajeshbabuk avatar sheiksalahudeen avatar srinduri04 avatar sudhish74 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.