Code Monkey home page Code Monkey logo

epicsarchiverap-sites's Introduction

A Site-Specific (NSRL) EPICS Archiver Appliance Deployment

based on the A Site-Specific (ESS) EPICS Archiver Appliance Deployment : https://github.com/jeonghanlee/epicsarchiverap-sites

Requirements

  • CentOS 7 (Tested with 7.2 1511 & 7.3 1611)

License

Archiver Appliance Setup on CentOS 7

With the following commands, one can setup an Archiver Appliance quite easily on CentOS 7

$ curl -L https://git.io/vXSN6 -o aa_init.bash
$ bash aa_init.bash 
$ cd epicsarchiverap-sites/
$ bash 00_preAA.bash all
$ bash 01_aaBuild.bash 
$ bash 02_aaSetup.bash 
$ bash 03_aaDeploy.bash

Files

setEnvAA.bash

  • almost all important variables are defined
  • E.g., TOMCAT_HOME, EPICS_BASE, ARCHAPPL_TOP, LD_LIBRARY_PATH, and so on...

aa_init.bash

  • sudo permission is needed.
  • Remove the cumbersome package (PackageKit)
  • Install pre-required packages (git, epel-release, tree)
  • Do git clone the current repository

00_preAA.bash

  • sudo permission is needed.
  • Remove the cumbersome package (PackageKit)
  • Install pre-required packages (git, epel-release, tree)
  • Do mkdir local storages (STS, MTS, LTS)
  • Install necessary packages for Archappl (ntp, java-1.8.0-openjdk, mariadb, tomcat, etc)
  • Install necessary packages for EPICS base (....)
  • Start ntpd, mariadb, and tomcate services through systemd
  • Install EPICS base
  • Setup MariaDB (Secure MySQL Setup)
  • Prepare mariadb-connector-j from github.com (Binary can be downloaded with login in MariaDB site)
  • (Optional) Replace Gnome with Mate and replace gdm with lightdm
  • (Optional) do yum update

01_aaBuild.bash

02_aaSetup.bash

  • Prepare the target directories ${SC_DEPLOY_DIR} ${ARCHAPPL_TOP}
  • Put log4j.properties in ${TOMCAT_HOME}/lib
  • Put appliances.xml in ${ARCHAPPL_TOP}
  • Deploy multiple tomcats into ${ARCHAPPL_TOP}
  • Put context.xml in to ${ARCHAPPL_TOP}/mgmt/conf/
  • Create DB tables into DB ${DB_NAME}

03_aaDeploy.bash

  • Deploying a new release from mgmt, engine, etl, retrieval onto ${ARCHAPPL_TOP}"
  • Modifying the static contents, images, and css for the ESS site specific information

aaService.bash

  • Service start/stop/restart

Commands

  • Only Command List
[aauser@ ]$ curl -L https://git.io/vXSN6 -o aa_init.bash
[aauser@ ]$ bash aa_init.bash 
[aauser@ ]$ cd epicsarchiverap-sites/
[aauser@ epicsarchiverap-sites]$ bash 00_preAA.bash all
[aauser@ epicsarchiverap-sites]$ bash 01_aaBuild.bash 
 0: git src                             master
 1: git src   v0.0.1_SNAPSHOT_03-November-2015
 2: git src        v0.0.1_SNAPSHOT_10-Sep-2015
 3: git src        v0.0.1_SNAPSHOT_12-May-2016
 4: git src        v0.0.1_SNAPSHOT_12-Oct-2016
 5: git src       v0.0.1_SNAPSHOT_20-Sept-2016
 6: git src       v0.0.1_SNAPSHOT_22-June-2016
 7: git src        v0.0.1_SNAPSHOT_23-Sep-2015
 8: git src    v0.0.1_SNAPSHOT_26-January-2016
 9: git src       v0.0.1_SNAPSHOT_29-July-2015
10: git src      v0.0.1_SNAPSHOT_30-March-2016
Select master or one of tags which can be built, followed by [ENTER]:

[aauser@ epicsarchiverap-sites]$ bash 02_aaSetup.bash 
[aauser@ epicsarchiverap-sites]$ bash 03_aaDeploy.bash
[aauser@ epicsarchiverap-sites]$ sudo su
[root@ epicsarchiverap-sites]# bash aaService.bash start
[root@ epicsarchiverap-sites]# bash aaService.bash stop

--

Connection Example

Acknowledgement

A special word of thanks goes to Murali Shankar who develops the Archiver Appliance and answers my stupid questions again and again and again.

epicsarchiverap-sites's People

Contributors

jeonghanlee avatar yifans avatar

Watchers

 avatar  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.