Skip to content

Commit fef22d9

Browse files
committed
Fixes some paths for the Flux config file
1 parent cb7fea1 commit fef22d9

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

2025-HPDC/docker/spawn-entrypoint.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ if [[ $# -ne 1 ]]; then
1515
/usr/bin/flux start /opt/global_py_venv/bin/jupyterhub-singleuser
1616
else
1717
last_core_id=$(( $1 - 1 ))
18-
mkdir -p /etc/flux
19-
cat > /etc/flux/resource.toml <<EOF
20-
[resource]
21-
noverify = true
22-
23-
[[resource.config]]
24-
hosts = "$(hostname)"
25-
cores = "0-${last_core_id}"
26-
EOF
27-
/usr/bin/flux start -c /etc/flux/resource.toml \
18+
mkdir -p ${HOME}/.flux
19+
cat > ${HOME}/.flux/resource.toml <<EOF
20+
[resource]
21+
noverify = true
22+
23+
[[resource.config]]
24+
hosts = "$(hostname)"
25+
cores = "0-${last_core_id}"
26+
EOF
27+
/usr/bin/flux start -c ${HOME}/.flux/resource.toml \
2828
/opt/global_py_venv/bin/jupyterhub-singleuser
29-
endif
29+
fi

2025-HPDC/docker/spawn-local-entrypoint.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ if [[ $# -ne 1 ]]; then
1111
/usr/bin/flux start /opt/global_py_venv/bin/jupyter-lab --ip=0.0.0.0
1212
else
1313
last_core_id=$(( $1 - 1 ))
14-
mkdir -p /etc/flux
15-
cat > /etc/flux/resource.toml <<EOF
16-
[resource]
17-
noverify = true
18-
19-
[[resource.config]]
20-
hosts = "$(hostname)"
21-
cores = "0-${last_core_id}"
22-
EOF
23-
/usr/bin/flux start -c /etc/flux/resource.toml \
14+
mkdir -p ${HOME}/.flux
15+
cat > ${HOME}/.flux/resource.toml <<EOF
16+
[resource]
17+
noverify = true
18+
19+
[[resource.config]]
20+
hosts = "$(hostname)"
21+
cores = "0-${last_core_id}"
22+
EOF
23+
/usr/bin/flux start -c ${HOME}/.flux/resource.toml \
2424
/opt/global_py_venv/bin/jupyter-lab --ip=0.0.0.0
25-
endif
25+
fi

0 commit comments

Comments
 (0)