Commit 04f69ff3 authored by RANDRIATOAMANANA Richard's avatar RANDRIATOAMANANA Richard
Browse files

Update demo-deploy-on-g5k.md

parent e0bfb553
......@@ -84,3 +84,37 @@ You can use tgz-g5k to extract a Grid'5000 environment tarball from a running no
```bash
kadeploy3 -a cargoday12-node.env -k -m <new node>
```
### Job submission
```bash
cat<<EOF>$HOME/myjob.sh
#!/bin/zsh
#OAR -l host=1/core=1,walltime=00:05:00
#OAR -p cluster='econome'
hostname
EOF
chmod +x $HOME/myjob.sh
oarsub -S $HOME/myjob.sh
```
### Docker and Singularity
- run with singularity a docker running a `busybox` linux
```bash
oarsub -l core=1 "/grid5000/code/bin/singularity exec docker://busybox uname -a"
```
- run a `lolcow`
```bash
oarsub -l core=1 "/grid5000/code/bin/singularity run docker://godlovedc/lolcow"
```
- run a `gentoo` distro in a docker image
```bash
oarsub -l core=1 "/grid5000/code/bin/singularity exec docker://gentoo/stage3-amd64 cat /etc/gentoo-release"
```
- run a tensorflow on a gpu cluster
```bash
ssh nancy.g5k
oarsub -q testing -p "cluster='gruss'" -l gpu=1,core=2 "singularity run --nv docker://tensorflow/tensorflow:latest-gpu"
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment