build jfjoch viewer

This commit is contained in:
2026-07-06 15:45:33 +02:00
parent eecc7e5c08
commit 9496e65e86
4 changed files with 61 additions and 0 deletions
+25
View File
@@ -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
+14
View File
@@ -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
}
+12
View File
@@ -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"]
+10
View File
@@ -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 <jiaxin.duan@psi.ch>"
module-help "testing and learning how to install"
setenv JFJOCH $PREFIX/bin