From 536450ce8e8b55e5d58bbaf84b0f5d344ef7288f Mon Sep 17 00:00:00 2001 From: MillironX <25492070+MillironX@users.noreply.github.com> Date: Mon, 14 Jun 2021 16:16:15 -0500 Subject: [PATCH] Basic Ray Image --- .gitignore | 10 ++++++++++ ray/ray.def | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 ray/ray.def diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..610bfc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +*.sif +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ diff --git a/ray/ray.def b/ray/ray.def new file mode 100644 index 0000000..a43cf74 --- /dev/null +++ b/ray/ray.def @@ -0,0 +1,22 @@ +Bootstrap: library +From: default/ubuntu:20.04 + +%post + apt-get -y update + apt-get -y --no-install-recommends install software-properties-common + add-apt-repository universe + apt-get -y update + apt-get -y --no-install-recommends install ray + +%test + if [ ! "$(command -v Ray)" ]; then + echo "command Ray not found!" + exit 1 + fi + +%runscript + mpiexec --use-hwthread-cpus Ray "$@" + +%labels + Author 25492070+MillironX@users.noreply.github.com + Version v2.3.1