Skip to content

Commit

Permalink
Changes to dockerfile and start-oms for experimenting with interactin…
Browse files Browse the repository at this point in the history
…g with kubernetes api server using go-client
  • Loading branch information
jacekzbigniewdudek committed Jan 9, 2024
1 parent 9eed8e8 commit bdcd67e
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 8 deletions.
3 changes: 3 additions & 0 deletions docker-bits/6_jupyterlab.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ RUN julia -e 'using Pkg; Pkg.add("LanguageServer")' && \
fix-permissions /home/$NB_USER

# OpenM install
# Need golang development kit to build hook and controller for mpijob execution.
RUN apt-get install -y golang-go

# Install OpenM++ MPI
ARG OMPP_VERSION="1.15.5"
# IMPORTANT: Don't forget to update the version number in the openmpp.desktop file!!
Expand Down
7 changes: 6 additions & 1 deletion output/docker-stacks-datascience-notebook/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
3 changes: 3 additions & 0 deletions output/jupyterlab-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ RUN julia -e 'using Pkg; Pkg.add("LanguageServer")' && \
fix-permissions /home/$NB_USER

# OpenM install
# Need golang development kit to build hook and controller for mpijob execution.
RUN apt-get install -y golang-go

# Install OpenM++ MPI
ARG OMPP_VERSION="1.15.5"
# IMPORTANT: Don't forget to update the version number in the openmpp.desktop file!!
Expand Down
7 changes: 6 additions & 1 deletion output/jupyterlab-cpu/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
3 changes: 3 additions & 0 deletions output/jupyterlab-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ RUN julia -e 'using Pkg; Pkg.add("LanguageServer")' && \
fix-permissions /home/$NB_USER

# OpenM install
# Need golang development kit to build hook and controller for mpijob execution.
RUN apt-get install -y golang-go

# Install OpenM++ MPI
ARG OMPP_VERSION="1.15.5"
# IMPORTANT: Don't forget to update the version number in the openmpp.desktop file!!
Expand Down
7 changes: 6 additions & 1 deletion output/jupyterlab-pytorch/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
3 changes: 3 additions & 0 deletions output/jupyterlab-tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ RUN julia -e 'using Pkg; Pkg.add("LanguageServer")' && \
fix-permissions /home/$NB_USER

# OpenM install
# Need golang development kit to build hook and controller for mpijob execution.
RUN apt-get install -y golang-go

# Install OpenM++ MPI
ARG OMPP_VERSION="1.15.5"
# IMPORTANT: Don't forget to update the version number in the openmpp.desktop file!!
Expand Down
7 changes: 6 additions & 1 deletion output/jupyterlab-tensorflow/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
7 changes: 6 additions & 1 deletion output/remote-desktop/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
7 changes: 6 additions & 1 deletion output/rstudio/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
3 changes: 3 additions & 0 deletions output/sas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ RUN julia -e 'using Pkg; Pkg.add("LanguageServer")' && \
fix-permissions /home/$NB_USER

# OpenM install
# Need golang development kit to build hook and controller for mpijob execution.
RUN apt-get install -y golang-go

# Install OpenM++ MPI
ARG OMPP_VERSION="1.15.5"
# IMPORTANT: Don't forget to update the version number in the openmpp.desktop file!!
Expand Down
7 changes: 6 additions & 1 deletion output/sas/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down
7 changes: 6 additions & 1 deletion resources/common/start-oms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ ! -d /openmpp ]
git clone https://github.com/StatCan/openmpp.git
fi
cd openmpp
branch="main"
branch="openmpp-24"
state=$(git symbolic-ref --short HEAD 2>&1)
if [ $state != $branch ]
then
Expand All @@ -89,10 +89,15 @@ fi
git pull
cd mpi-job-files



# Copy scripts and templates into openmpp installation bin and etc folders:
cp dispatchMPIJob.sh parseCommand.py "$OM_ROOT/bin/"
cp mpi.kubeflow.template.txt MPIJobTemplate.yaml "$OM_ROOT/etc/"

# Copy golang source files into etc for experimentation for now:
cp -r mpiJobHook "$OM_ROOT/etc/"

# Delete the default mpi golang template that does not work in our context:
rm -f "$OM_ROOT/etc/mpi.ModelRun.template.txt"

Expand Down

0 comments on commit bdcd67e

Please sign in to comment.