Skip to content

Commit

Permalink
=code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjdupont12 committed Dec 20, 2024
1 parent c4cbe0c commit fd4f9f9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
13 changes: 7 additions & 6 deletions docs/migrating_to_18.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,26 @@ TODO
above location, or copy `branding.png` to `branding.lightbg.png`


## 3. Enabling minio
## 3. Enabling MinIO

Enable minio by setting the feature flag in local.env
Enable MinIO by setting the feature flag in local.env
```bash
BENTO_MINIO_ENABLED='true'
```

After enabling the Minio feature flag for the first time,
After enabling the MinIO feature flag for the first time,
you must initialize the Docker networks, mounted directories and certs.
```bash
./bentoctl.bash init-certs -f
./bentoctl.bash init-docker # new network for minio
./bentoctl.bash init-docker # new network for MinIO
./bentoctl.bash init-dirs
```

Also set root user and password in local.env:
BENTO_MINIO_ROOT_USER=root (default value, could be change)
```bash
BENTO_MINIO_ROOT_USER=root # (default value, could be change)
BENTO_MINIO_ROOT_PASSWORD=secure-password

```

TODO

Expand Down
14 changes: 8 additions & 6 deletions docs/object-store.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# Bento object store

![Minio service logs querying](./img/minio_object_store.png)
![MinIO service logs querying](./img/minio_object_store.png)

## Configuration

Enable minio by setting the feature flag in local.env
Enable MinIO by setting the feature flag in local.env

```bash
BENTO_MINIO_ENABLED='true'
```

After enabling the Minio feature flag for the first time,
After enabling the MinIO feature flag for the first time,
you must initialize the Docker networks, mounted directories and certs.
```bash
./bentoctl.bash init-certs -f
./bentoctl.bash init-docker # new network for minio
./bentoctl.bash init-docker # new network for MinIO
./bentoctl.bash init-dirs
```

Also set root user and password in local.env:
BENTO_MINIO_ROOT_USER=root (default value, could be change)
BENTO_MINIO_ROOT_PASSWORD=secure-password
```bash
BENTO_MINIO_ROOT_USER=root # (default value, could be change)
BENTO_MINIO_ROOT_PASSWORD=secure-password
```
2 changes: 1 addition & 1 deletion etc/bento.env
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ BENTO_PROMTAIL_IMAGE=grafana/promtail
BENTO_PROMTAIL_IMAGE_VERSION=3.1.2
BENTO_PROMTAIL_CONTAINER_NAME=${BENTOV2_PREFIX}-promtail

# Minio
# MinIO
BENTO_MINIO_IMAGE=quay.io/minio/minio
BENTO_MINIO_IMAGE_VERSION=RELEASE.2024-12-13T22-19-12Z
BENTO_MINIO_CONTAINER_NAME=${BENTOV2_PREFIX}-minio
Expand Down
4 changes: 2 additions & 2 deletions etc/bento_deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BENTOV2_PORTAL_DOMAIN=portal.${BENTOV2_DOMAIN}
BENTOV2_AUTH_DOMAIN=bentov2auth.local
# Unused if cBioPortal is disabled:
BENTOV2_CBIOPORTAL_DOMAIN=cbioportal.${BENTOV2_DOMAIN}
# Unused if Minio is disabled
# Unused if MinIO is disabled
BENTO_MINIO_DOMAIN=minio.${BENTOV2_DOMAIN}
# ---------------------------------------------------------------------

Expand Down Expand Up @@ -81,7 +81,7 @@ BENTOV2_KATSU_APP_SECRET= # TODO: SET ME WHEN DEPLOYING!
# Reference
BENTO_REFERENCE_DB_PASSWORD= # TODO: SET ME WHEN DEPLOYING!

# minio
# MinIO
BENTO_MINIO_ROOT_PASSWORD= # TODO: SET ME WHEN DEPLOYING!

# HTTPS Certificates --------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions etc/bento_dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BENTOV2_PORTAL_DOMAIN=portal.${BENTOV2_DOMAIN}
BENTOV2_AUTH_DOMAIN=bentov2auth.local
# Unused if cBioPortal is disabled:
BENTOV2_CBIOPORTAL_DOMAIN=cbioportal.${BENTOV2_DOMAIN}
# Unused if Minio is disabled
# Unused if MinIO is disabled
BENTO_MINIO_DOMAIN=minio.${BENTOV2_DOMAIN}
# ---------------------------------------------------------------------

Expand Down Expand Up @@ -82,7 +82,7 @@ BENTO_REFERENCE_DB_PASSWORD=devpassword456
# BENTO_CBIOPORTAL_DATABASE_PASSWORD=somepassword Required for CBIOPORTAL
# BENTO_CBIOPORTAL_DATABASE_ROOT_PASSWORD=somepassword Required for CBIOPORTAL

# minio
# MinIO
BENTO_MINIO_ROOT_PASSWORD=devpassword789

# Development settings ------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions etc/default_config.env
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ BENTOV2_PORTAL_DOMAIN=portal.${BENTOV2_DOMAIN}
BENTOV2_AUTH_DOMAIN=bentov2auth.local
# Unused if cBioPortal is disabled:
BENTOV2_CBIOPORTAL_DOMAIN=cbioportal.${BENTOV2_DOMAIN}
# Unused if Minio is disabled
# Unused if MinIO is disabled
BENTO_MINIO_DOMAIN=minio.${BENTOV2_DOMAIN}
# ---------------------------------------------------------------------

Expand Down Expand Up @@ -110,7 +110,7 @@ BENTOV2_KATSU_DB_PASSWORD=
BENTO_CBIOPORTAL_DATABASE_PASSWORD=
BENTO_CBIOPORTAL_DATABASE_ROOT_PASSWORD=

# minio
# MinIO
BENTO_MINIO_ROOT_PASSWORD=

# Development settings ------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions py_bentoctl/other_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def init_self_signed_certs(force: bool):
"dir": auth_certs_dir,
},

# Minio
# MinIO
**({"minio": {
"var": "BENTO_MINIO_DOMAIN",
"priv_key_name": "minio_privkey1.key",
Expand Down Expand Up @@ -240,7 +240,7 @@ def init_dirs():
**({"auth": "BENTOV2_AUTH_VOL_DIR"} if not c.BENTOV2_USE_EXTERNAL_IDP else {}),
# - cBioPortal
**({"cbioportal": "BENTO_CBIOPORTAL_STUDY_DIR"} if c.BENTO_FEATURE_CBIOPORTAL.enabled else {}),
# - minio
# - MinIO
**({"minio": "BENTO_MINIO_DATA_DIR"} if c.BENTO_FEATURE_MINIO.enabled else {}),
# - Monitoring: Grafana/Loki
**({"grafana": "BENTO_GRAFANA_LIB_DIR"} if c.BENTO_FEATURE_MONITORING else {}),
Expand Down

0 comments on commit fd4f9f9

Please sign in to comment.