README.md 1.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from labdev-nomad.container

     cd /nomad/nomadlab/servers/nomad-vis-test/analytics/remotevis

Update info on services of labdev that we use as we share the session db (we should probably clean up this ugly command)

     kubectl exec -ti $(kubectl get po | grep nomad-container-manager-beaker | cut -f1 -d ' ') node app.js serviceDumper -- --out-file labdev-nomad.services.yaml

update config with current info on the redis dbs of labdev (default-remotevis.hjson.in -> default-remotevis.hjson)

     docker run -ti -v $PWD:/usr/src/app -v /nomad/nomadlab/servers/labdev-nomad/analytics/beaker:/mnt -w /usr/src/app --rm node:carbon node app.js templateEvaluer --replacements /mnt/labdev-nomad.services.yaml --template config/nomad-vis-test.hjson.in --out-file config/nomad-vis-test.hjson

deploy
     ./deploy.sh --tls --env nomad-vis-test --target-hostname nomad-vis-test --secret-web-certs web-certs

and execute the deploy for remote vis

     kubectl create -f container-manager-service-remotevis.yaml
     if ! kubectl get deployment nomad-container-manager-remotevis >& /dev/null ;  then
       kubectl create --save-config -f container-manager-deploy-remotevis.yaml
     else
       kubectl apply -f container-manager-deploy-remotevis.yaml
     fi

if only that changed, otherwise on has also to create the secrets and analytics namespace.

A serviceDump has to be run to reexport the ports to the frontend, then the frontend setup needs to be updated.