File tree Expand file tree Collapse file tree
internal/remote/firecrest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 143143# Create the environment.toml file to run the session
144144EDF_FILE=" ${SESSION_DIR} /environment.toml"
145145cat << EOF >"${EDF_FILE} "
146- image = "${REMOTE_SESSION_IMAGE} "
147-
148146#{{SESSION_MOUNTS_PLACEHOLDER}}
149147
150148workdir = "${SESSION_WORK_DIR} "
@@ -153,6 +151,8 @@ workdir = "${SESSION_WORK_DIR}"
153151com.hooks.cxi.enabled = "false"
154152EOF
155153
154+ srun_param_container_image=" --container-image ${REMOTE_SESSION_IMAGE} "
155+
156156export RENKU_MOUNT_DIR=" ${SESSION_WORK_DIR} "
157157export RENKU_WORKING_DIR=" ${SESSION_WORK_DIR} "
158158# Force the frontend to listen on 127.0.0.1
@@ -249,6 +249,10 @@ echo "Starting session..."
249249# Start session while listening to EXIT signals
250250pid=
251251trap ' exit_script && [[ $pid ]] && kill -TERM "$pid" && exit_script' EXIT
252- srun --environment " ${EDF_FILE} " --no-container-entrypoint sh /etc/rc & pid=$!
252+ srun \
253+ --environment " ${EDF_FILE} " \
254+ ${srun_param_container_image} \
255+ --no-container-entrypoint sh /etc/rc \
256+ & pid=$!
253257wait
254258pid=
You can’t perform that action at this time.
0 commit comments