-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added corepack to macos dev install docs * update ubuntu section in dev_install --------- Co-authored-by: Florian M <[email protected]>
- Loading branch information
1 parent
e8445bc
commit e2140bb
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,9 @@ psql -c "CREATE USER postgres WITH ENCRYPTED PASSWORD 'postgres';" | |
psql -c "ALTER USER postgres WITH SUPERUSER;" | ||
psql -c "GRANT ALL PRIVILEGES ON DATABASE webknossos TO postgres;" | ||
|
||
# Enable corepack for nodeJs and yarn | ||
corepack enable | ||
|
||
# Checkout the WEBKNOSSOS git repository | ||
git clone [email protected]:scalableminds/webknossos.git | ||
``` | ||
|
@@ -76,17 +79,15 @@ Note: On arm64-based Macs (e.g. M1), you need to run WEBKNOSSOS in an x86_64 env | |
## Ubuntu 22.04 LTS | ||
|
||
```bash | ||
sudo apt install -y curl ca-certificates wget | ||
sudo apt update | ||
sudo apt install -y curl ca-certificates wget git postgresql postgresql-client unzip zip redis-server build-essential libblosc1 libbrotli1 libdraco-dev cmake | ||
|
||
# Install nvm, node 18 | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
source ~/.bashrc | ||
nvm install 18 | ||
nvm use 18 | ||
|
||
sudo apt update | ||
sudo apt install -y git postgresql postgresql-client unzip zip redis-server build-essential libblosc1 libbrotli1 libdraco-dev cmake | ||
|
||
# Install sdkman, java, scala and sbt | ||
curl -s "https://get.sdkman.io" | bash | ||
source "$HOME/.sdkman/bin/sdkman-init.sh" | ||
|
@@ -98,8 +99,14 @@ source "$HOME/.sdkman/bin/sdkman-init.sh" | |
|
||
# Assign a password to PostgreSQL user | ||
sudo -u postgres psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD 'postgres';" | ||
|
||
# Clone the git repo to the current directory | ||
git clone [email protected]:scalableminds/webknossos.git | ||
cd webknossos | ||
|
||
# Enable node corepack to select the right yarn, install node packages | ||
corepack enable | ||
yarn install | ||
``` | ||
|
||
On older Ubuntu distributions: Please make sure to have the correct versions of node, PostgreSQL and java installed. | ||
|