项目作者: ChannelFinder

项目描述 :
EPICS ChannelFinder SpringBoot Building and Configuration Environment
高级语言: Shell
项目地址: git://github.com/ChannelFinder/ChannelFinder-env.git
创建时间: 2020-02-20T19:28:14Z
项目社区:https://github.com/ChannelFinder/ChannelFinder-env

开源协议:GNU General Public License v2.0

下载


ChannelFinder-env

Debian 11
Rocky8
Ubuntu Latest
ChannelFinderService
Linter Run

Configuration Environment for ChannelFinderService at https://github.com/ChannelFinder/ChannelFinderService

Pre-requirement packages

  1. git make sudo tree maven jq

Elasticsearch

Three configurations are changed for the elasticsearch.

  • Elasticsearch JVM options : [default] -Xms1g -Xmx1g
  • Elasticsearch pack.security.enabled option : [default] false
  • Elasticsearch configuration location : [default] /etc/elasticsearch

These options can be changed through the variables CF_ES_JAVA_OPTS, CF_ES_CONF_PATH, and CF_ES_XPACK_SECURITY in configure/CONFIG_SITE.

Debian 11 / Rocky 8

  1. make install.esdeb or install.esrpm
  2. make conf.es
  3. make conf.es.show
  4. make start.es
  5. make status.es

Note that conf.es will use the pack.security.enabled: false in elasticsearch.yml, where is in /etc/elasticsearch.
The log file elasticsearch.log is located in /etc/elasticsearch.

macOS (M1)

  1. brew install openjdk@18
  1. make install.esmac
  2. make conf.macos
  3. make conf.esmac
  4. make conf.esmac.show
  5. make start.esmac
  6. make stop.esmac

The log file elasticsearch.log is located in the installation location log folder of the elastisserch.

JAVA

The following four variables must be defined. Please setup them according to one’s systems configuration.

  1. echo "JAVA_HOME:=/usr/" > ./configure/CONFIG_COMMON.local
  2. echo "JAVA_PATH:=/usr/bin" >> ./configure/CONFIG_COMMON.local
  3. echo "MAVEN_HOME:=/usr/" >> ./configure/CONFIG_COMMON.local
  4. echo "MAVEN_PATH:=/usr/bin" >> ./configure/CONFIG_COMMON.local

Support OS

Debian 11 (EOL: 2024-06-01/2026-08-15), Rocky8 (EOL: 2029-05-31)

It will works with other systems. Please check github action workflows.

  1. make init
  2. make build
  3. make install
  4. make mapping
  5. make sd_start
  6. make sd_status

ChannelFinder log is shown in /var/log/syslog.

  1. tail -f /var/log/syslog |grep java
  2. make cflog.show

Please check Tomcat generic service, if CF doesn’t start.

  1. lsof -i:8080
  2. systemctl status tomcat{9}
  3. systemctl stop tomcat{9}
  4. systemctl disable tomcat{9}

macOS (tested with aarch64 with brew)

  1. make init
  2. make conf.macbrew
  3. make conf
  4. make build
  5. make run
  6. make mapping
  7. make mapping.clean

ChannelFinder Configuration

Please see docs/ChannelFinderConf.md.

Run Demo

Please see docs/ChannelFinderDemo.md.

  1. make run
  2. make run.status
  3. make run.kill
  4. make demo
  5. make demo.clean

Docker Image

The Docker image is hosted at https://hub.docker.com/orgs/alscontrols
And for further information, please see docs/Docker.md :whale: