22
33## get the most recent changes moved to campus cluster
44
5+ #### ONCE
6+ Move or re-create the central repo located at ` /sw/icrn/jupyter/icrn_ncsa_resources/Kernels/ ` to
7+ ` /sw/icrn/dev/kernels/ `
8+
9+ copy tools to path loc (dev paths):
10+ ``` sh
11+ cp ./icrn_manager /sw/icrn/dev/bin/
12+ cp ./update_r_libs.sh /sw/icrn/dev/bin/
13+ chmod +x /sw/icrn/dev/bin/icrn_manager
14+ chmod +x /sw/icrn/dev/bin/update_r_libs.sh
15+ ```
16+
17+ Change Kernel Central Repo Path in icrn_manager to reflect environment
18+ -- what is the signal in icrn that we are in prod/dev? --
519
6- ## Changes needed to ICRN containers in dev
720
21+ ## Changes needed to ICRN containers in dev
22+ JQ installed on container
823
924
1025## running the kernel index process
@@ -18,6 +33,15 @@ Tested on campus cluster via apptainer, this indexes the central repository of k
1833(base) [hdpriest@cc-login2 icrn_manager]$ apptainer pull docker://hdpriest0uiuc/icrn-kernel-indexer
1934
2035(base) [hdpriest@cc-login2 icrn_manager]$ apptainer run --bind /sw/icrn/jupyter/icrn_ncsa_resources/Kernels:/sw/icrn/jupyter/icrn_ncsa_resources/Kernels icrn-kernel-indexer_latest.sif
36+ ```
37+
38+ For dev and prod environments, the kernel index job needs to be run using a custom kernel root env variable (see directly below)
39+
40+ this will obviously be different based on the container runtime
41+ ``` sh
42+ # ### DEV
43+ (base) [hdpriest@cc-login2 icrn_manager]$
44+ apptainer run --env " KERNEL_ROOT=/sw/icrn/dev/kernels" --bind /sw/icrn/dev/kernels:/sw/icrn/dev/kernels icrn-kernel-indexer_latest.sif
2145# # ... output
2246Collated manifest written to: /sw/icrn/jupyter/icrn_ncsa_resources/Kernels/collated_manifests.json
2347# # ... output
@@ -36,8 +60,7 @@ docker build -t icrn-web -f web/Dockerfile web/
3660Assuming you have a built container (obtained from dockerhub, or built locally), the container expects bind mounts to the location where the manifests/index are kept, and so is flexible for its back-end storage as long as it has access to the same disk mount as the index job:
3761``` bash
3862docker run -d -p 8080:80 --name icrn-web \
39- -v /sw/icrn/jupyter/icrn_ncsa_resources/Kernels/collated_manifests.json:/app/data/collated_manifests.json \
40- -v /sw/icrn/jupyter/icrn_ncsa_resources/Kernels/package_index.json:/app/data/package_index.json \
63+ -v /sw/icrn/dev/kernels:/app/data:ro \
4164 icrn-web
4265```
4366
0 commit comments