From 74fee3b464e0c85f677c60728eea40db5dde24d6 Mon Sep 17 00:00:00 2001 From: HMS17 Date: Mon, 28 Jul 2025 08:31:38 -0400 Subject: [PATCH 1/8] [BI-2700] Improve Technical Documentation For DeltaBreed Paper --- README.md | 56 +++++++++++++++++++++++++++++++++++++- docker-compose-mailhog.yml | 12 ++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 docker-compose-mailhog.yml diff --git a/README.md b/README.md index 48a9037..856e63a 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,63 @@ This repo contains the docker-compose configurations used to run DeltaBreed. -# Prereqs +# Getting Started +## Outline + + +## Download Prereqs Docker and Docker-compose are both required. +## Set up OAuth with ORCID +Running DeltaBreed requires setting up OAuth with ORCID (Open Researcher and Contributor ID), --this is what orcid is-- + +TODO steps + +## Set up environmental variables +To set necessary private environmental variables for DeltaBreed to run, at the root level of the repo locally create a file called `.env`. + +(a template exists named `.env.template` todo check if .env.quicktemplate might be better alternative) + +The containers are not run by the root user but by a new user and group called +'host'. The user and group ids for host are both set to 1001 by default. If +you wish to change these to your own user and group ids, add the following +contents to .env: +``` +USER_ID=1001 +GROUP_ID=1001 +``` +Change 1001 to your own id values. You can find at the console your user and group ids using the id command: +for user id +``` +id -u +``` +and for group id +``` +id -g +``` + +todo remaining variables that need extra guidance + +## Run docker-compose +Run the following in the bi-docker-stack repository + +``` +docker-compose -f docker-compose.yml -f docker-compose-redis.yml -f docker-compose-gigwa.yml -f docker-compose-mailhog.yml up -d +``` + +## Get ORCID credentials into database +Run this shell script (TODO) + +## Access DeltaBreed on web +DeltaBreed can then be accessed via the url entered for ```WEB_BASE_URL``` in the .env file. + # Architecture The primary components of DeltaBreed are the Web UI (Breeding-Insight/bi-web) and the API (Breeding-Insight/bi-api). The [BrAPI Java Server](https://github.com/plantbreeding/brapi-Java-TestServer) is used for phenotypic data storage, [Gigwa](https://github.com/SouthGreenPlatform/Gigwa2) is used for genotypic data storage, and interoperability with external applications such as [Field Book](https://github.com/PhenoApps/Field-Book/) is enabled by [BrAPI](https://brapi.org/). diff --git a/docker-compose-mailhog.yml b/docker-compose-mailhog.yml new file mode 100644 index 0000000..ad81bf3 --- /dev/null +++ b/docker-compose-mailhog.yml @@ -0,0 +1,12 @@ +version: "3.7" + +services: + mailhog: + image: mailhog/mailhog:latest + container_name: mailhog + restart: always + ports: + - ${MAILHOG_WEB_PORT:-8025}:8025 + - ${MAILHOG_PORT:-1025}:1025 + networks: + backend: From b08df7b36295e9da27fcf36da6181a9034a7d6b7 Mon Sep 17 00:00:00 2001 From: HMS17 Date: Mon, 28 Jul 2025 16:45:19 -0400 Subject: [PATCH 2/8] [BI-2700] Add scripts and further readme changes --- README.md | 87 ++++++++++++++++++++++++----------------------------- addUser.ps1 | 8 +++++ addUser.sh | 8 +++++ 3 files changed, 56 insertions(+), 47 deletions(-) create mode 100644 addUser.ps1 create mode 100644 addUser.sh diff --git a/README.md b/README.md index 856e63a..641494d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,13 @@ This repo contains the docker-compose configurations used to run DeltaBreed. +# Table of Contents +

+ Getting Started | + Architecture | + Setting Up Other Environments +

+ # Getting Started ## Outline