Skip to content

Commit 8d77ea0

Browse files
update find-image for denv and add useful CMake options (#134)
1 parent d0e0e75 commit 8d77ea0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

docs/src/custom-acts.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ we just need to build ldmx-sw with specific `cmake` options pointing it to our n
3636
just configure -DActs_DIR=/path/to/ldmx/acts/install
3737
just build
3838
```
39+
Some other CMake options may be required depending on your version of ACTS and the version of the dev
40+
image you are using. Below are some options that we've come across while testing. They can be set on the
41+
the command line when running `just configure` with `-D<name>=<value>` like `Acts_DIR` above.
42+
- `CMAKE_FIND_DEBUG_MODE`: may need to be turned `OFF`
43+
- `nlohmann_json_DIR`: may need to be directed to the specific version that was installed with ACTS
44+
- e.g. `-Dnlohmann_json_DIR=/path/to/ldmx/acts/install/lib/cmake/nlohmann_json/`

docs/src/image-version.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ variable `apptainer` defines at runtime.
3939
```
4040
denv printenv APPTAINER_CONTAINER
4141
```
42+
Putting all this together, we can find the image version label with the following one-liner.
43+
```
44+
apptainer inspect $(denv printenv APPTAINER_CONTAINER) | grep org.opencontainers.image.version
45+
```
4246
~~~

0 commit comments

Comments
 (0)