-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into docs_lili
* master: fix docs formatting Remove experimental auto brush feature (#6107) Fix markdown issues in docs (#6105) Unify long-running RPC timeouts (#6103) Disallow deactivating users with active tasks (#6099) Add remote origin headers also in error case (#6098) Linking layers during upload no longer restricted to public datasets (#6097) Fix layer headers layout (#6087) Fix more docs links (#6095) Update datasets.md (#6094) More PR feedback for Docs (#6091) Updates to wK Docs (#5995) Connectome Tab (#5894) Fix duplicating annotations via toggling show archived annotations button and fix downsample modal rendering errors (#6058)
- Loading branch information
Showing
109 changed files
with
2,571 additions
and
1,682 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -72,26 +72,34 @@ For non-localhost deployments, check out the [installation guide in the document | |
* [sbt](http://www.scala-sbt.org/) | ||
* [PostgreSQL 10+](https://www.postgresql.org/) | ||
* [Redis 5+](https://redis.io/) | ||
* [Blosc](https://github.com/Blosc/c-blosc) | ||
* [node.js 12+](http://nodejs.org/download/) | ||
* [yarn package manager](https://yarnpkg.com/) | ||
* [git](http://git-scm.com/downloads) | ||
|
||
### OS X | ||
If you are using OS X try using this awesome installer: | ||
https://gist.github.com/normanrz/9128496 | ||
|
||
Or install Java manually and run: | ||
|
||
### MacOS | ||
```bash | ||
# webKnossos needs to be run from x86_64 environment (only applicable for arm64-based Macs) | ||
arch -x86_64 /bin/zsh | ||
|
||
# Install Homebrew package manager | ||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
|
||
# Install git, node.js, postgres, sbt, gfind, gsed | ||
brew install git node postgresql sbt findutils coreutils gnu-sed redis | ||
npm install -g yarn | ||
|
||
# Start postgres | ||
brew install openjdk@8 openssl git node postgresql sbt findutils coreutils gnu-sed redis yarn | ||
|
||
# Set env variables for openjdk and openssl | ||
# You probably want to add these lines manually to avoid conflicts in your zshrc | ||
echo 'if [ $(arch) = "i386" ]; then' >> ~/.zshrc | ||
echo ' export PATH="/usr/local/opt/openjdk@8/bin:$PATH"' >> ~/.zshrc | ||
echo ' export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc | ||
echo ' export LDFLAGS="-L/usr/local/opt/openssl/lib"' >> ~/.zshrc | ||
echo ' export CPPFLAGS="-I/usr/local/opt/openssl/include"' >> ~/.zshrc | ||
echo 'fi' >> ~/.zshrc | ||
|
||
# Start postgres and redis | ||
brew services start postgresql | ||
brew services start redis | ||
|
||
# Create PostgreSQL user | ||
createdb | ||
|
@@ -102,8 +110,12 @@ psql -c "GRANT ALL PRIVILEGES ON DATABASE webknossos TO postgres;" | |
|
||
# Checkout the webKnossos git repository | ||
git clone [email protected]:scalableminds/webknossos.git | ||
|
||
|
||
``` | ||
|
||
Note: On arm64-based Macs (e.g. M1), you need to run webKnossos in an x86_64 environment (Rosetta 2). In case you accidentally started webKnossos in an arm64 environment, it is advisable to delete several caches `~/.m2`, `~/ivy2`, `~/.sbt`, `~/.yarn-cache` and run `./clean`. Since Postgres and Redis are isolated processes, they can be run either from arm64 or x86_64 environments. | ||
|
||
|
||
### Ubuntu 20.04 LTS | ||
|
||
|
@@ -118,7 +130,7 @@ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
|
||
sudo apt update | ||
sudo apt install -y nodejs git postgresql postgresql-client scala sbt openjdk-8-jdk yarn redis-server build-essential | ||
sudo apt install -y nodejs git postgresql postgresql-client scala sbt openjdk-8-jdk yarn redis-server build-essential libblosc1 | ||
|
||
# Assign a password to PostgreSQL user | ||
sudo -u postgres psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD 'postgres';" | ||
|
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
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
Oops, something went wrong.