/xpn-docker-dcamarmas

Primary LanguageShellGNU General Public License v3.0GPL-3.0

XPN on Docker v2.2 (with Ubuntu 22.04 LTS)

Contents

Getting xpn-docker

git clone https://github.com/acaldero/xpn_docker.git
cd xpn_docker
./lab.sh build

Some use cases with lab-docker

Example To start 3 containers: Some work from container 1: To stop the containers:
Expand (native)
./lab.sh start 3
./lab.sh status
   
./lab.sh bash 1
source .profile
./data/xpn-mpi-native.sh
exit
   
./lab.sh stop
   
Expand (bypass)
./lab.sh bash 1
source .profile
./data/xpn-mpi-bypass.sh
exit
   
Expand (fuse)
./lab.sh bash 1
source .profile
./data/xpn-mpi-fuse.sh
exit
   

Using lab-docker

Action Command
First time + "each time u22-dockerfile is updated"
./lab.sh build
To start a work session with 3 containers
./lab.sh start 3
To get into container 1
 ./lab.sh bash 1
Being in container 1, to exit
exit
To stop the work session please use
./lab.sh stop
  • Available options for debugging:
    • To check running containers:
    • To get the containers internal IP addresses:
  • Available options for debugging:
    • ./lab.sh status
    • ./lab.sh network

Please beware of:

  • Any modification outside /work will be discarded on container stopping.
  • Please make a backup of your work "frequently".
  • You might need to use "sudo" before ./lab.sh if your user doesn't belong to the docker group
    • could be solved by using "sudo usermod -aG docker ${USER}"

Authors

  • 🧑‍💻 Félix García-Carballeira
  • 🧑‍💻 Alejandro Calderón Mateos
  • 🧑‍💻 Diego Camarmas Alonso (XPN)
  • 🧑‍💻 Elias del Pozo Puñal (XPN)