Files
OpsDev/README.md

73 lines
1.5 KiB
Markdown

# A Script For NCBA MSL
## What the script can do
It is a boot menu for fast switch application environment and appilcation management
It provided a few of feature for application
- Application startup/shutdown
- Log in system feels as simulated application user
- Show more property of application (running state, version, file size, last updated... )
- Logging trace
- Colorful UI displays
- Switch application fast and friendly
## Screenshot
![](./img/tty.gif)
## Customized definition
```bash
# Default Group on Configuration center
conf_group="DEFAULT_GROUP"
# Location for configuration file store while auto pull from Configuration center
conf_directory="/home/ncbamsl/conf/"
# Configuration center's host
conf_center_host="10.0.0.13:9084"
# Communal configuration id
profile_common="common.properties"
# Application startup script
startup_script="${base_home}/bin/startApp-configclient.sh"
# Inject script (recommend don't change it)
inject_script=${base_home}/.inject.script
# Inject profile (recommend don't change it)
initrc=${base_home}/.injectrc
```
## Dependency
- expect
```bash
yum install -y expect
```
- unzip
```bash
yum install -y unzip
```
## Feature coming soon
- Logging trace (**Implemented**)
> Switch to application's logging directory and tail -f xxx.out automatic
- Display application's version on menu (**Implemented**)
> Get version from app.war like as below
> `unzip -p boss.war META-INF/MANIFEST.MF | grep Implementation-Version: | awk -F ':' '{print $2}'`
> `1.0.0-SNAPSHOT`