Light a Beacon v2 Network¶
When multiple institutions or organizations deploy a Beacon and make it accessible to a network, they form a Beacon Network. This network enables federated querying across multiple beacons without the need of centralized data storage or direct access to the data. Thus, it allows researchers to discover data from multiple beacons in a single query.
If you want to deploy the ELIXIR Beacon v2 Network instance made by the BSC (Backend) and EGA-CRG (Frontend), follow the next steps.
Full Docker install (Recommended)¶
Download the code from this repository:
git clone https://github.com/elixir-europe/beacon-network-docker.git
cd beacon-network-docker
Edit the config.json
file located in frontend/ to point to the URLs where you will be making the queries. Here's an example of how the config.json
file should look:
{
"API_URL": "http://localhost:8080/beacon-network/v2.0.0",
"REDIRECT_URL": "https://yourUIdomain.com",
"KEYCLOAK_URL": "https://yourKEYCLOAKdomain.com"
}
Run docker compose to build and start the containers:
docker compose up -d
Congrats! You have succesfully deployed ELIXIR Beacon Network FrontEnd in http://localhost:8080/ and the backend in http://localhost:8080/beacon-network/v2.0.0/. Adjust the URLs based on your setup.
Backend Installation¶
Download the code from this repository, and run docker compose:
git clone https://github.com/elixir-europe/beacon-network-backend.git
cd beacon-network-backend/docker
docker compose up -d
Congrats! You have deployed the ELIXIR Beacon Network backend in http://localhost:8080/beacon-network/v2.0.0/. You can now view and query the backend with API GET/POST queries. Adjust the URLs as necessary based on your setup.
FrontEnd Installation¶
Download the code from this repository:
git clone https://github.com/elixir-europe/beacon-network-ui.git
cd beacon-network-ui
Create a .env
file inside the folder and modify the following variables:
REACT_APP_CLIENT_ID="ID of your LS Login"
REACT_APP_CLIENT_SECRET="password of your LS Login"
Run docker compose:
docker-compose up -d –build
Edit config.json
from frontend/src to point the URLs where you have the backend, main webpage and keycloak. Example:
{
"API_URL": "https://yourAPIdomain.com/beacon-network/v2.0.0",
"REDIRECT_URL": "https://yourUIdomain.com",
"KEYCLOAK_URL": "https://yourKEYCLOAKdomain.com"
}
You have deployed the Beacon Network Frontend in http://localhost:3000. Adjust the URLs as needed based on your setup.
Update the EBN¶
To update the ELIXIR Beacon Network (EBN) with a new image, follow these steps:
- Pull the latest image:
docker-compose pull
- Recreate and rebuild the containers with the new image:
docker-compose up --force-recreate --build -d
These commands will download the latest image for the EBN and recreate the containers using the new image. The --force-recreate
flag ensures that the containers are recreated even if they are already running, and the --build
flag rebuilds the containers if necessary. The `-d flag runs the containers in detached mode.