fcs-mgr
fcs-mgr
eases the development and use of the FCS
subsystem development
environment.
Installation
sh> go get github.com/sbinet/lsst-ccs/...
Usage
Usage of fcs-mgr
can be inferred from fcs-mgr help
.
sh> fcs-mgr help
fcs-mgr -
Commands:
build build the code in a FCS/CCS workarea
dist build a binary distribution kit
init initialize a new FCS/CCS workarea
localdb commands for the FCS/CCS localdb application
run run a command inside a CCS container
update update FCS/CCS workarea source code
Use "fcs-mgr help <command>" for more information about a command.
fcs-mgr init
fcs-mgr init
creates a new workspace for CCS
and the FCS
subsystem.
sh> fcs-mgr init
2015/06/09 17:01:10 init-dir="${PWD}"
2015/06/09 17:01:10 updating repo [org-lsst-ccs-subsystem-fcs]...
2015/06/09 17:01:10 updating repo [org-lsst-ccs-localdb]...
fcs-mgr update
fcs-mgr update
updates the local git-svn
repositories of
org-lsst-ccs-localdb
and org-lsst-ccs-subsystem-fcs
.
sh> fcs-mgr update
2015/06/09 17:36:54 updating repo [org-lsst-ccs-subsystem-fcs]...
2015/06/09 17:36:54 updating repo [org-lsst-ccs-localdb]...
fcs-mgr build
fcs-mgr build
builds and installs the org-lsst-ccs-localdb
and
org-lsst-ccs-subsystem-fcs
repositories.
sh> fcs-mgr build
2015/06/09 17:39:31 building repo [org-lsst-ccs-subsystem-fcs]...
2015/06/09 17:39:31 building repo [org-lsst-ccs-localdb]...
2015/06/09 17:39:56 building repo [org-lsst-ccs-localdb]... [ok] (time=24.384273959s)
2015/06/09 17:40:28 building repo [org-lsst-ccs-subsystem-fcs]... [ok] (time=56.480276874s)
fcs-mgr localdb create
fcs-mgr localdb create
creates a docker
container with mysqld
properly
configured and running.
sh> fcs-mgr localdb create
1ee4533b8d663812ca77efeafd46bba80960c828abdfaf280352bbfe7df31080
fcs-mgr localdb start
fcs-mgr localdb start
starts a CCS
application where the TrendingDB process
is properly configured and running (it needs a properly packaged DISTRIB
created with fcs-mgr dist
.)
sh> fcs-mgr localdb start
7a16bec8f50d52bcb0ecc9edc7c75ddc555dde8b72fbc2b1f2f4ca069cde3591
fcs-mgr localdb stop
fcs-mgr localdb stop
stops the CCS
application (removing its enclosing
container) and the mysql
server (removing its supporting container.)
sh> fcs-mgr localdb stop
7a16bec8f50d52bcb0ecc9edc7c75ddc555dde8b72fbc2b1f2f4ca069cde3591
7a16bec8f50d52bcb0ecc9edc7c75ddc555dde8b72fbc2b1f2f4ca069cde3591
1ee4533b8d663812ca77efeafd46bba80960c828abdfaf280352bbfe7df31080
1ee4533b8d663812ca77efeafd46bba80960c828abdfaf280352bbfe7df31080
fcs-mgr dist
fcs-mgr dist
creates a CCS
distribution from the 2
org-lsst-ccs-{localdb,subsystem-fcs}
repositories.
sh> fcs-mgr dist
2015/06/09 17:41:21 creating distribution for repo [org-lsst-ccs-subsystem-fcs]...
2015/06/09 17:41:21 creating distribution for repo [org-lsst-ccs-localdb]...
sh> ll DISTRIB/
total 0
drwxr-xr-x 1 binet binet 92 Jun 26 15:41 externalResources
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-localdb-config-1.3.2
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-localdb-jar-1.3.2
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-localdb-main-1.3.2
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-localdb-war-1.3.2
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-subsystem-fcs-buses-1.6.2-SNAPSHOT
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-subsystem-fcs-gui-1.6.2-SNAPSHOT
drwxr-xr-x 1 binet binet 22 Jun 26 15:40 org-lsst-ccs-subsystem-fcs-main-1.6.2-SNAPSHOT
fcs-mgr run
fcs-mgr run
runs a command inside a docker
container with the CCS
distribution mounted under /opt/lsst
, via the fcs-run
command from
github.com/sbinet/lsst-ccs/fcs-mgr/fcs-run
.