Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEVNOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Alternatively, you may install DUOS locally.
1. Install Node LTS, but verify the [version of Node declared in the Dockerfile](https://github.com/DataBiosphere/duos-ui/blob/develop/Dockerfile#L2) and install that when setting up. You can install it with [Volta](https://docs.volta.sh/guide/understanding) or NVM.

```
volta install node@24.7.0
volta install node@24.9.0
```

2. Next, install the project dependencies.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# builder image
FROM node:24.7.0-trixie AS builder
FROM node:24.9.0-trixie AS builder
LABEL maintainer="[email protected]"

# set working directory
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ gcloud auth application-default login
gcloud auth configure-docker

# install the appropriate version of nodejs and its dependencies
NODE_VERSION=$(curl -L https://raw.githubusercontent.com/DataBiosphere/duos-ui/develop/Dockerfile | awk 'NR==2 {gsub(":","@",$2); print $2}')
NODE_VERSION=$(curl -L https://raw.githubusercontent.com/DataBiosphere/duos-ui/develop/Dockerfile | awk 'NR==2 {gsub(/node:|-.*/,"", $2); print "node@" $2}')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed now that we specify the OS version.

volta setup && volta install ${NODE_VERSION}
```

Expand Down
7 changes: 7 additions & 0 deletions scripts/setup-devcontainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ install_gcloud_cli() {
sudo apt install -y google-cloud-cli
}

install_node_with_nvm() {
NODE_VERSION=$(awk 'NR==2 {gsub(/node:|-.*/,"", $2); print $2}' Dockerfile)
. "${NVM_DIR}/nvm.sh"
nvm install "$NODE_VERSION"
}

install_duos_cypress() {
npm install
npx cypress install
Expand All @@ -41,6 +47,7 @@ dev_container() {
cypress_requirements
gcloud_cli_requirements
install_gcloud_cli
install_node_with_nvm
install_duos_cypress
install_duos_config
}
Expand Down
Loading