Upgrade versions in docs and Vagrant script

This commit is contained in:
Sebastian Serth
2023-10-31 12:26:35 +01:00
parent 5c62a72875
commit 427b54d306
2 changed files with 10 additions and 10 deletions

View File

@ -22,19 +22,19 @@ sudo apt-get update
sudo apt-get -y install git ca-certificates curl libpq-dev libicu-dev sudo apt-get -y install git ca-certificates curl libpq-dev libicu-dev
``` ```
### Install PostgreSQL 15: ### Install PostgreSQL 16:
**macOS:** **macOS:**
```shell ```shell
brew install postgresql@15 brew install postgresql@16
brew services start postgresql@15 brew services start postgresql@16
``` ```
**Linux:** **Linux:**
```shell ```shell
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
echo "deb [arch=$(dpkg --print-architecture)] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list echo "deb [arch=$(dpkg --print-architecture)] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt-get update && sudo apt-get -y install postgresql-15 postgresql-client-15 sudo apt-get update && sudo apt-get -y install postgresql-16 postgresql-client-16
sudo -u postgres createuser $(whoami) -ed sudo -u postgres createuser $(whoami) -ed
``` ```
@ -96,12 +96,12 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
nvm -v nvm -v
``` ```
### Install NodeJS 18 and Yarn: ### Install NodeJS 20 and Yarn:
Reload your shell (e.g., by closing and reopening the terminal) and continue with installing Node: Reload your shell (e.g., by closing and reopening the terminal) and continue with installing Node:
```shell ```shell
nvm install lts/hydrogen nvm install lts/iron
corepack enable corepack enable
``` ```
@ -110,7 +110,7 @@ corepack enable
node -v node -v
yarn -v yarn -v
``` ```
If you have several node versions installed, check that you are using the correct version. To view your installed versions, run `nvm list`. `lts/hydrogen` should be the current and default version. You can adjust this by running `nvm alias default lts/hydrogen`. If you have several node versions installed, check that you are using the correct version. To view your installed versions, run `nvm list`. `lts/iron` should be the current and default version. You can adjust this by running `nvm alias default lts/iron`.
### Clone the repository: ### Clone the repository:
@ -359,4 +359,4 @@ Hints in case it does not work:
- Docker must be started. - Docker must be started.
- Execution environments with network access are not running on macOS. Therefore, all execution environments in the list must be edited so that network access is disabled. - Execution environments with network access are not running on macOS. Therefore, all execution environments in the list must be edited so that network access is disabled.
To check that everything works, you should also set the prewarming pool size to 1 for at least one execution environment. This can also be done via the edit function. Afterward it can be checked here <http://localhost:7000/admin/dashboard> that there are as many free runners as you have set before at pool size. In the nomad UI on <http://localhost:4646/ui/jobs> one can see the running jobs. To check that everything works, you should also set the prewarming pool size to 1 for at least one execution environment. This can also be done via the edit function. Afterward it can be checked here <http://localhost:7000/admin/dashboard> that there are as many free runners as you have set before at pool size. In the nomad UI on <http://localhost:4646/ui/jobs> one can see the running jobs.

View File

@ -4,8 +4,8 @@ cd /home/vagrant/codeocean
######## VERSION INFORMATION ######## ######## VERSION INFORMATION ########
postgres_version=15 postgres_version=16
node_version=lts/hydrogen node_version=lts/iron
ruby_version=$(cat .ruby-version) ruby_version=$(cat .ruby-version)
DISTRO="$(lsb_release -cs)" DISTRO="$(lsb_release -cs)"