-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from oist/update-installation-docs
Update optinist install documents.
- Loading branch information
Showing
10 changed files
with
163 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Docker for Developer (recommended) | ||
Docker for Developer | ||
================= | ||
|
||
```{contents} | ||
|
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
118 changes: 118 additions & 0 deletions
118
docs/installation/each_platforms_for_developer_use_mamba.md
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
Each Platforms for Developer (Use Mamba) | ||
================= | ||
|
||
```{contents} | ||
:depth: 4 | ||
``` | ||
|
||
## Installation | ||
|
||
We introduce how to install optinist for developer. | ||
We have developed optinist python(backend) and typescript(frontend), so you need to make both environment. | ||
Please follow instructions below. | ||
|
||
## 1. Make backend environment | ||
|
||
### Install Tools | ||
|
||
- Unix-like platforms | ||
- Linux | ||
- [Install Tools](linux.md#install-tools) | ||
- Windows WSL | ||
- [Install Tools](windows.md#install-tools-1) | ||
- Mac | ||
- [Install Tools](mac.md#install-tools) | ||
- Windows | ||
- *Under construction. | ||
|
||
#### Install Mamba | ||
|
||
- Unix-like platforms | ||
- https://mamba.readthedocs.io/en/latest/installation.html | ||
- Use Mambaforge | ||
- https://github.com/conda-forge/miniforge#mambaforge | ||
- Install | ||
- for Linux | ||
``` | ||
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" | ||
bash Mambaforge-$(uname)-$(uname -m).sh | ||
# restart shell, and check mamba installed. (show version) | ||
mamba --version | ||
``` | ||
- for Mac (fixed with x86_64) | ||
``` | ||
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-x86_64.sh" | ||
bash Mambaforge-$(uname)-x86_64.sh | ||
# restart shell, and check mamba installed. (show version) | ||
mamba --version | ||
``` | ||
- Windows | ||
- *Under construction. | ||
### Clone repository | ||
``` | ||
git clone https://github.com/oist/optinist.git | ||
cd ./optinist | ||
``` | ||
### Create mamba(anaconda) environment | ||
<!-- | ||
mamba create -c conda-forge -c bioconda -n optinist_dev python=3.8 snakemake | ||
--> | ||
``` | ||
mamba create -n optinist_dev python=3.8 | ||
conda activate optinist_dev | ||
``` | ||
``` | ||
conda config --set channel_priority strict | ||
``` | ||
- Note: | ||
- If mamba is already installed, snakamake prefers to use mamba over conda. | ||
### Install requirements | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
### Set saving directory | ||
Optinist default saving directory is `/tmp/optinist`. If you reboot your PC, this repogitory content is deleted. And setting the saving directory in environment path. | ||
``` | ||
export OPTINIST_DIR="your_saving_dir" | ||
``` | ||
<!-- | ||
## 2. Create virtualenv | ||
Under maintenance... | ||
--> | ||
## 2. Run backend | ||
``` | ||
python main.py | ||
``` | ||
- `python main.py` log is as blow: | ||
``` | ||
$ run_optinist | ||
INFO: Will watch for changes in these directories: ['/home/oist/optinist/backend'] | ||
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) | ||
INFO: Started reloader process [6520] using statreload | ||
INFO: Started server process [6557] | ||
INFO: Waiting for application startup. | ||
INFO: Application startup complete. | ||
``` | ||
- Launch browser, and go to http://localhost:8000 | ||
It opens correctly! | ||
Done! |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.