Skip to content

Commit

Permalink
Update documentation about local build
Browse files Browse the repository at this point in the history
  • Loading branch information
guiguem committed Aug 24, 2023
1 parent b8ef722 commit 46263d0
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Meta-package for HK Software stack

## How to build hk-software Docker image locally

It is important to have things for building the image locally (assuming you have Docker installed on your machine):

- Have BUILDKIT enabled (in most recent docker installation, this is enabled by default).
This can be done by either doing `export DOCKER_BUILDKIT=1` or prepending the docker build command with `DOCKER_BUILDKIT=1` (like `DOCKER_BUILDKIT=1 docker build ...`)
- Expose the ssh agent socket so that hk-pilot can use your ssh agent to clone the proper repositories e.g.
```bash
docker build --ssh default .
```

Therefore the total command to be sure it will work is:
```bash
DOCKER_BUILDKIT=1 docker build --ssh default -t ghcr.io/hyperk/hk-software:latest .
```

## How to use hk-software using docker

Built images of hk-software are available on the GitHub Container Registry (GHCR): https://github.com/hyperk/hk-software/pkgs/container/hk-software
Expand Down Expand Up @@ -28,7 +44,7 @@ Then source the hk-pilot `setup.sh` and the hk-software `setup.sh`:
. /usr/local/hk/hk-software/install-Linux_x86_64-gcc_8-python_3.8.13/setup.sh
```
From there, you should have access to all the software:
From there, you should have access to all the software, e.g.:
```bash
which WCSim
Expand Down
38 changes: 38 additions & 0 deletions hk-software.gv
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
digraph "hk-software" {
"hk-software" [label="hk-software\n0.0.1"]
"hk-software" -> "hk-meta-externals" [label="0.0.4"]
"hk-software" -> "hk-meta-base" [label="0.0.1"]
"hk-software" -> "hk-meta-recon" [label="0.0.2"]
"hk-software" -> "hk-meta-analysis" [label="0.0.1"]
"hk-meta-externals" [label="hk-meta-externals\n0.0.4"]
"hk-meta-externals" -> ToolFrameworkCore [label="1.1.1"]
"hk-meta-externals" -> ROOT [label="6.26.04"]
"hk-meta-externals" -> Geant4 [label="10.3.3"]
"hk-meta-externals" -> WCSim [label="1.11.1"]
ToolFrameworkCore [label="ToolFrameworkCore\n1.1.1"]
ROOT [label="ROOT\n6.26.04"]
Geant4 [label="Geant4\n10.1.3"]
WCSim [label="WCSim\n1.10.1"]
WCSim -> ROOT [label=any]
WCSim -> Geant4 [label=any]
"hk-meta-base" [label="hk-meta-base\n0.0.1"]
"hk-meta-recon" [label="hk-meta-recon\n0.0.2"]
"hk-meta-recon" -> fiTQun [label="6.3.2"]
"hk-meta-recon" -> "hk-BONSAI" [label="1.2.1"]
"hk-meta-recon" -> FLOWER [label="1.2.1"]
fiTQun [label="fiTQun\n6.3.2"]
fiTQun -> ROOT [label=any]
fiTQun -> WCSim [label=any]
"hk-BONSAI" [label="hk-BONSAI\nv1.2"]
"hk-BONSAI" -> ROOT [label=any]
"hk-BONSAI" -> WCSim [label=any]
FLOWER [label="FLOWER\nv1.1"]
FLOWER -> ROOT [label=any]
FLOWER -> WCSim [label=any]
"hk-meta-analysis" [label="hk-meta-analysis\n0.0.1"]
"hk-meta-analysis" -> "hk-eventDisplay" [label="2.1.0"]
"hk-eventDisplay" [label="hk-eventDisplay\n2.0"]
"hk-eventDisplay" -> ROOT [label=any]
"hk-eventDisplay" -> WCSim [label=any]
"hk-eventDisplay" -> fiTQun [label=any]
}
Binary file added hk-software.gv.pdf
Binary file not shown.

0 comments on commit 46263d0

Please sign in to comment.