Skip to content

Commit

Permalink
configs with code-server module
Browse files Browse the repository at this point in the history
  • Loading branch information
DininduSenanayake committed Sep 13, 2024
1 parent 58c60f2 commit 52de851
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions form.yml → form.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ title: code-server
cluster: "my-k8s-cluster"

form:
- Codeserver
- bc_queue
- bc_num_hours
- num_cores
- num_mem
- node

attributes:
Codeserver:
widget: select
label: "code-server Version"
options:
- [ "4.92.2", "code-server/4.92.2" ]
node: ""
bc_queue:
value: interactive
Expand Down
2 changes: 1 addition & 1 deletion submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ script:
native:
container:
name: "codeserver"
image: "ghcr.io/lbrick/nesi-docker-base/nesi-docker-base:0.7.1"
image: "ghcr.io/nesi/nesi-docker-base:v0.2.0"
command: ["/bin/bash","-l","<%= staged_root %>/job_script_content.sh"]
restart_policy: 'OnFailure'
env:
Expand Down
10 changes: 8 additions & 2 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

echo "module purge"
module purge

# load codetudio Server
echo "module load"
module load <%= context.Codeserver %>


# Set our working directory.
export WORKING_DIR="<%= session.staged_root %>"

Expand Down Expand Up @@ -43,8 +51,6 @@ if [[ -f "$CPP_FILE" ]]; then
echo "$(date): Started code-server"
echo ""

# pre-compiled binary is temporarily hosted on,
export PATH=/home/shared/dsen018/code-server-4.91.1-linux-amd64/bin:$PATH

#avoid using ${host} for --bind-addr
code-server \
Expand Down

0 comments on commit 52de851

Please sign in to comment.