-
Notifications
You must be signed in to change notification settings - Fork 1
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 #33 from BioImage-Archive/dev
Public release
- Loading branch information
Showing
52 changed files
with
127 additions
and
1,695 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,38 +1,90 @@ | ||
<!-- # Bio-Image Archive Kubernetes analysis platform --> | ||
# Relevant Links and Notebooks | ||
|
||
<!-- - [`setup.md`](docs/setup.md) If you are setting this up from scratch follow these instructions to setup GitLab CI/CD. | ||
- [`deployment.md`](docs/deployment.md) If you wish to change the deployment read this. | ||
--> | ||
- **IDR Screen Data**: [IDR Screen 2451](https://idr.openmicroscopy.org/webclient/?show=screen-2451) | ||
- **IC50 Notebook for SARS-CoV-2 Data**: [![Binder](https://binder.bioimagearchive.org/badge_logo.svg)](https://binder.bioimagearchive.org/v2/gh/IDR/idr0094-ellinger-sarscov2/master?urlpath=notebooks%2Fnotebooks%2Fidr0094-ic50.ipynb%3FscreenId%3D2602) | ||
- **S-BSST522 Image Gallery**: [EBI Image Gallery](https://www.ebi.ac.uk/bioimage-archive/galleries/S-BSST522.html) | ||
- **BIA Explorer Visualisation Notebook**: [![Binder](https://binder.bioimagearchive.org/badge_logo.svg)](https://binder.bioimagearchive.org/v2/gh/BioImage-Archive/bia-explorer/HEAD?labpath=BIA-explorer-visualisation-notebook.ipynb) | ||
- **BIA Explorer GitHub Repository**: [GitHub - BIA Explorer](https://github.com/BioImage-Archive/bia-explorer) | ||
- **BIA Training Repository**: [GitHub - BIA Training](https://github.com/BioImage-Archive/bia-training) | ||
- **BIA BMZ Integration**: [GitHub - BIA BMZ Integration](https://github.com/BioImage-Archive/bia-bmz-integration) | ||
- **BioImage Archive Notebooks**: [GitHub - BioImage Archive Notebooks](https://github.com/BioImage-Archive/bioimagearchive_notebooks) | ||
|
||
## Quick start | ||
|
||
Install minikube and helmfile | ||
# BIA Binder Deployment | ||
|
||
https://kubernetes.io/docs/tasks/tools/install-minikube/ | ||
https://github.com/roboll/helmfile#installation | ||
This repository contains the materials for deploying the BIA Binder, including the codebase and relevant supplementary files. The repository is currently aimed at deploying to Embassy Cloud and has historically also worked with DeNBI Cloud. | ||
|
||
Add the secrets to your local environment | ||
## Usage | ||
|
||
source secrets.env | ||
### Installation | ||
|
||
<!-- Create a namespace, role, account and additional token for the Gitlab runner --> | ||
1. **Clone the repository**: | ||
```bash | ||
git clone https://github.com/yourusername/bia-binder.git | ||
cd bia-binder | ||
``` | ||
|
||
<!-- | ||
https://kubernetes.io/docs/admin/service-accounts-admin/ | ||
2. **Install the necessary tools**: | ||
2.i **Install Helm**: Follow the instructions on the [Helm page](https://helm.sh/docs/intro/install/) | ||
2.ii **Install Helmsman**: Follow the instructions on the [Helmsman GitHub page](https://github.com/Praqma/helmsman) to install Helmsman on your system. | ||
2.iii *Install helm-diff* plugin: | ||
|
||
kubectl apply -f ./k8s-clusterrole/ | ||
helm plugin install https://github.com/databus23/helm-diff | ||
|
||
This will give the GitLab runner almost full administrative access to the cluster. | ||
### Deployment | ||
|
||
bash gitlab-ci/install-helm.sh | ||
helmfile -e minikube sync | ||
To deploy the application to different environments, you can use the Makefile. The Makefile supports deployment to `prod`, `dev`, and `local` environments for different variants: `embassy`, `denbi`, and `minikube`. | ||
|
||
For prod | ||
1. **Deploy to production**: | ||
```bash | ||
make embassy.prod | ||
make denbi.prod | ||
make minikube.prod | ||
``` | ||
|
||
helmfile -e default sync --> | ||
2. **Deploy to development**: | ||
```bash | ||
make embassy.dev | ||
make denbi.dev | ||
make minikube.dev | ||
``` | ||
|
||
## TODO | ||
3. **Deploy to local environment**: | ||
```bash | ||
make embassy.local | ||
make denbi.local | ||
make minikube.local | ||
``` | ||
|
||
- Continuous integration | ||
- Elixir login portal | ||
- Speed up image pull | ||
4. **Generate htpassword file**: | ||
```bash | ||
make htpassword | ||
``` | ||
|
||
### Example `.env` File | ||
|
||
Create a `.env` file in the root directory of the repository with the following structure: | ||
|
||
```env | ||
# Generic .env file example | ||
# CI/CD Configuration | ||
CI_REGISTRY_IMAGE="bioimagearchive/binder-" | ||
CI_REGISTRY_URL="https://registry.binder.bioimagearchive.org" | ||
HOST_NAME="binder.bioimagearchive.org" | ||
KUBECONFIG="kube/embassy.config" | ||
CI_REGISTRY_USER=ctr26 | ||
CI_REGISTRY_PASSWORD=4c16f763-****-****-****-80ec19d2f840 | ||
# Secret keys (values obfuscated for security) | ||
SECRET_ELIXIR_CLIENTID=********-****-****-****-************ | ||
SECRET_ELIXIR_CLIENTSECRET=********-****-****-****-************ | ||
SECRET_HUB_PASSWORD=1e54cdb91f9c78d3f93a577b90567771ad076424ab24470192cc0776a3d45bd5 | ||
SECRET_JUPYTERHUB_PROXY_TOKEN=1e54cdb91f9c78d3f93a577b90567771ad076424ab24470192cc0776a3d45bd5 | ||
SECRET_BINDERHUB_SERVICE=569d94fdabd71bf88452db33782e4fa1881241764226e3038aedf6ec2cce1aa1 | ||
SECRET_GITHUBREPOPROVIDER=ghp_************-********** | ||
SECRET_PROMETHEUS_AUTH_HTPASSWD= | ||
# AAI Configuration | ||
AAI_CLIENT_ID="cfac1c45-ab70-4596-b5b6-d1d92cf8ce3b" | ||
AAI_CLIENT_SECRET="c064871e-****-****-****-f82b1ad6e2c6" |
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
<div class="container"> | ||
<div class="row text-center"> | ||
<h3>questions?<br/>read about <a href="https://mmb.irbbarcelona.org/biobb/workflows">the workflows</a>, see the <a href="https://github.com/jupyterhub/binderhub">BinderHub code</a>, ask for help with <a href="mailto:[email protected]">Binder for the BioImageArchive</a> or even | ||
<a href="https://github.com/bioimagearchive/k8s-jupyterhub"> deploy your own</a> | ||
<a href="https://github.com/BioImage-Archive/bia-binder"> deploy your own</a> | ||
</h3> | ||
</div> | ||
</div> | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
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.