From 9496e65e8681c2cfc1e5dc8c0dddeeccdc0ac8da Mon Sep 17 00:00:00 2001 From: duan_j Date: Mon, 6 Jul 2026 15:45:33 +0200 Subject: [PATCH] build jfjoch viewer --- jfjoch_viewer/README.md | 25 +++++++++++++++++++++++++ jfjoch_viewer/build | 14 ++++++++++++++ jfjoch_viewer/files/config.yaml | 12 ++++++++++++ jfjoch_viewer/modulefile | 10 ++++++++++ 4 files changed, 61 insertions(+) create mode 100644 jfjoch_viewer/README.md create mode 100644 jfjoch_viewer/build create mode 100644 jfjoch_viewer/files/config.yaml create mode 100644 jfjoch_viewer/modulefile diff --git a/jfjoch_viewer/README.md b/jfjoch_viewer/README.md new file mode 100644 index 0000000..52802d0 --- /dev/null +++ b/jfjoch_viewer/README.md @@ -0,0 +1,25 @@ +jfjviewer + +Step 1: login with your -adm account + +``` +[smith_k@ra-l-005 xds]$ kinit smith_k-adm +[smith_k@ra-l-005 xds]$ aklog +``` + +Step 2: load the latest Pmodules package + +``` +module use unstable +module load Pmodules/1.1.20 +``` + +Step 3: go into xds directory, update config.yaml to add newest release version and build module with that release name (e.g. below is for 20240724) + +``` +cd jfjviewer +vi files/config.yaml +./build 1.0.0-rc.156 +``` + +Step 4: confirm that the module loads as expected diff --git a/jfjoch_viewer/build b/jfjoch_viewer/build new file mode 100644 index 0000000..bbe57e8 --- /dev/null +++ b/jfjoch_viewer/build @@ -0,0 +1,14 @@ +#!/usr/bin/env modbuild + + +pbuild::prep() { :; } + +pbuild::configure() { :; } + +pbuild::compile() { :; } + +pbuild::install() { + mkdir "${PREFIX}/bin" + cd "${PREFIX}/bin" + tar -xvzf "${BUILDBLOCK_DIR}/jfjoch_viewer-1.0.0-rc.156-linux-cuda12.tgz" --strip-components=1 +} diff --git a/jfjoch_viewer/files/config.yaml b/jfjoch_viewer/files/config.yaml new file mode 100644 index 0000000..dcfc6e6 --- /dev/null +++ b/jfjoch_viewer/files/config.yaml @@ -0,0 +1,12 @@ +--- +format: 1 +jfjoch_viewer: + defaults: + group: MX + overlay: base + relstage: stable + versions: + 1.0.0-rc.156: + config: + relstage: stable + build_requires: ["cuda/12.8.1"] diff --git a/jfjoch_viewer/modulefile b/jfjoch_viewer/modulefile new file mode 100644 index 0000000..9d6b861 --- /dev/null +++ b/jfjoch_viewer/modulefile @@ -0,0 +1,10 @@ +#%Pmodule + +module-whatis "jfjoch viewer trying install offline processing for mx beamlines" +module-url "https://gitea.psi.ch/mx/-/packages/rpm/jfjoch-viewer" +module-license "for internal testing right now" +module-maintainer "MX Data " + +module-help "testing and learning how to install" + +setenv JFJOCH $PREFIX/bin