Frontend JS UI code for site
npm install: Install dependencies via NPM.
npm run dev: Bundle and minify all code and start a development server (by default on TCP 8080).
npm run pack: Bundle and minify only.
Full local deployment
To test final product, it is useful to be able to deploy the entire program locally. Most parts are already self-contained via containers but there are a few things to deal wth since Elasticsearcha and Consul are not available locally.
Build local stack:
docker-compose -f lib/docker-compose.yml up -d
Note that a standalone Elasticsearch cluster will also be started via this compose. Elasticsearch's container requires >= 2GB RAM or it will refuse to start. Also note, you typically must increase malloc limit for process:
sysctl -w vm.max_map_count=262144. The container will crash if this limit is too low (and by default, it usually is).
Install XPack in Elasticsearch conatiner:
/usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack
Restart the container after this completes.
If unicorns are on your side, you should have access to the UI now. If not, verify all container are running:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
14f6e9f26a3d ccfoss/oss-dashboard-frontend "entrypoint.sh /usr/l" 36 minutes ago Up 36 minutes 0.0.0.0:80->80/tcp,... lib_frontend_1
655e0e505c49 ccfoss/oss-dashboard-proxy "npm start" 36 minutes ago Up 36 minutes 3000/tcp lib_proxy_1
d414e9152f79 ccfoss/oss-dashboard "npm start" 36 minutes ago Up 36 minutes 3000/tcp lib_apiserver_1
dc6b3817a58f ccfoss/kibana "entrypoint.sh kibana" 36 minutes ago Up 36 minutes 0.0.0.0:5601->5601/tcp lib_kibana_1
c787ecd59c1e elasticsearch:5 "/docker-entrypoint.s" 50 minutes ago Up 10 minutes 9200/tcp, 9300/tcp lib_elasticsearch_1