Update the tutorials running via kubernetes
-
Assuming your git repo(nomad-lab-base) is up to date: $ sbt notebook/docker
-
$ docker push imageName:latestTag. Push the docker image to the private repository
-
On labdev3-nomad & labdev4-nomad(ssh): $ docker pull imageName:latestTag. Pull the docker image from the private repository, on the machines running kubernetes.
-
Change the production/k8component/image variable in /u/ankar/NOMAD/container-manager-https/config/config.js to the latest imageName:latestTag.
Overview of the development machine
On the development machine(labdev-nomad), we have two separate servers running at port 80(http) and 443(https).
The server at 80 (i.e. http://labdev-nomad.esc.rzg.mpg.de) is a dumb proxy forwarder. You can start a container at any port and then can tell this server to forward you (or any other user) to that particular container. Here is the documentation: https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-lab-base/wikis/hackathon-technical-overview.
At port 443 (i.e. https://labdev-nomad.esc.rzg.mpg.de) runs a container for you via kubernetes, currently it doesn't start a container with fresh image if a container already exists for a user.
And hence you will have to remove it manually via kubernetes. Here are the commands(you can run them from any machine like labdev, labdev3 ...)
$ /nomad/nomadlab/kubernetes/kubernetes/platforms/linux/amd64/kubectl -s http://labdev3-nomad.esc.rzg.mpg.de:8080 delete rc beaker-rc-emrea
$ /nomad/nomadlab/kubernetes/kubernetes/platforms/linux/amd64/kubectl -s http://labdev3-nomad.esc.rzg.mpg.de:8080 delete svc beaker-svc-emrea
Update git repo(nomad-lab-base):
- git pull --rebase
- git submodule update --init
- git submodule foreach git checkout master
- git submodule foreach git pull --rebase