carlosrm9 / ska-serverless

Extensible and interoperable science through a 'Serverless' model in the context of SKA
MIT License
0 stars 0 forks source link

Review of concepts #4

Closed manuparra closed 2 years ago

manuparra commented 2 years ago

HPC:

manuparra commented 2 years ago

Cloud Computing:

manuparra commented 2 years ago

Container:

manuparra commented 2 years ago

Containers:

Example:

docker pull matpower/octave docker run -it --rm matpower/octave:latest octave-cli docker run -it -v /tmp/:/data/ --rm matpower/octave:latest octave-cli /data/filtering.8c

Example with Jupyter: docker run -p 8888:8888 jupyter/scipy-notebook

carlosrm9 commented 2 years ago

I have questions on how to manage creation of new files to run Octave (or other program) from a Docker Container. I am also interested in knowing if Docker conteiners could be run using a GUI or they are only available to use from the terminal (I suppose it will depend on the container). I also don't understand well all the flags used in the commands above.

manuparra commented 2 years ago

Thank you Carlos, good questions.

For this example with OCTAVE, you can create files inside the container or outside the container (in your system). You can create files inside by using docker exec <name of the container> /bin/bash with this command you enter into the container and in this moment you can create files, with vim, emacs, etc. (if installed). The second option is to mount your local files inside the container, in this case, you have to create the container using -v LocalPath:ContainerPath for example: docker run -it -v /tmp/:/data/ --rm matpower/octave:latest octave-cli /data/filtering.8c.

In both cases you want to execute a container that was created to execute OCTAVE, but probably you want to execute other things (python, jupyter, etc.) In these cases you have to look for a container that have this functionality or you have to create from the scratch.

Yes you can execute things that have a GUI, like regular applications with windows, etc. but you have suppport for X windows. If your are in Ubuntu as host system it will work perfectly, but in windows, you have to install support for X.

manuparra commented 2 years ago

Regarding the flags: