Stage
Stage is the React-based portal UI that researchers use to query and explore Overture data.
If you have not yet deployed Arranger, return to Arranger.
Setting up Stage
-
Create an env file: Create a file named
.env.stagewith the following content:# ==============================# Stage Environment Variables# ==============================# Stage VariablesNEXTAUTH_URL=http://localhost:3000/api/authNEXT_PUBLIC_LAB_NAME=Overture QuickStart PortalNEXT_PUBLIC_ADMIN_EMAIL=contact@overture.bioNEXT_PUBLIC_DEBUG=true# Keycloak VariablesNEXT_PUBLIC_AUTH_PROVIDER=keycloakACCESSTOKEN_ENCRYPTION_SECRET=super_secretSESSION_ENCRYPTION_SECRET=this_is_a_super_secret_secretNEXT_PUBLIC_KEYCLOAK_HOST=http://keycloak:8080NEXT_PUBLIC_KEYCLOAK_REALM=myrealmNEXT_PUBLIC_KEYCLOAK_CLIENT_ID=webclientKEYCLOAK_CLIENT_SECRET=ikksyrYaKX07acf4hpGrpKWcUGaFkEdMNEXT_PUBLIC_KEYCLOAK_PERMISSION_AUDIENCE=dms# Arranger VariablesNEXT_PUBLIC_ARRANGER_DOCUMENT_TYPE=fileNEXT_PUBLIC_ARRANGER_INDEX=file_centricNEXT_PUBLIC_ARRANGER_API_URL=http://arranger-server:5050NEXT_PUBLIC_ARRANGER_MANIFEST_COLUMNS=repositories.code, object_id, analysis.analysis_id, study_id, file_type, file.name, file.size, file.md5sum, file.index_file.object_id, donors.donor_id, donors.specimens.samples.sample_idClick here for a detailed breakdown
Stage Variables
-
NEXTAUTH_URLspecifies the base URL for NextAuth.js, which handles authentication in the portal. -
NEXT_PUBLIC_LAB_NAMEis the name displayed in the top left of the portal interface. -
NEXT_PUBLIC_ADMIN_EMAILis the administrator or support contact email. -
NEXT_PUBLIC_DEBUGenables debug mode.
Keycloak Variables
-
NEXT_PUBLIC_AUTH_PROVIDERspecifies the authentication provider, in this case Keycloak. -
ACCESSTOKEN_ENCRYPTION_SECRETdefines the secret used to encrypt access tokens. -
SESSION_ENCRYPTION_SECRETspecifies the secret used to encrypt session cookies. -
NEXT_PUBLIC_KEYCLOAK_HOSTspecifies the Keycloak server URL. -
NEXT_PUBLIC_KEYCLOAK_REALMdefines the Keycloak realm used for authentication. -
NEXT_PUBLIC_KEYCLOAK_CLIENT_IDandKEYCLOAK_CLIENT_SECRETare the Keycloak client credentials. -
NEXT_PUBLIC_KEYCLOAK_PERMISSION_AUDIENCEspecifies the audience for permission claims.
Arranger Variables
-
NEXT_PUBLIC_ARRANGER_DOCUMENT_TYPEdefines the document type for Arranger (file-centric or analysis-centric). -
NEXT_PUBLIC_ARRANGER_INDEXdefines the Arranger index used by the portal. -
NEXT_PUBLIC_ARRANGER_API_URLis the URL of the Arranger GraphQL API. -
NEXT_PUBLIC_ARRANGER_MANIFEST_COLUMNSlists the columns included in the manifest generated for downloads.
-
-
Run Stage: Use the docker run command with your
.env.stagefile:docker run --env-file .env.stage \--name stage \-p 3000:3000 \ghcr.io/overture-stack/stage:3ede4e2The front-end portal will now be available in your browser at
localhost:3000.
Stage depends on Arranger, so confirm Arranger is accessible before attempting to use the portal.