Skip to content

Commit

Permalink
Deploy fe: cd6e799
Browse files Browse the repository at this point in the history
* Includes ability to apply configuration at runtime

* Apply changes on qa

* Apply changes on production
  • Loading branch information
stephan271 authored Nov 23, 2022
1 parent f23cbd1 commit ff8ac33
Show file tree
Hide file tree
Showing 16 changed files with 416 additions and 754 deletions.
1 change: 0 additions & 1 deletion .github/workflows/reusable.build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ jobs:
namespace: '${{ inputs.namespace_prefix }}${{ inputs.environment }}'
chart: '${{ inputs.helm_chart }}'
helm: helm3
timeout: 10m
values: |
ciRepository: ${{ inputs.registry }}/${{ inputs.image_name }}
ciTag: ${{ inputs.tag }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/scicat-fe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ jobs:
ciVars=$(cat <<EOF
{
"KEYCLOAK_ICON": $(jq -R -s < helm_configs/frontend/keycloak_icon_256px.svg),
"ENVIRONMENT": $(jq -R -s < helm_configs/frontend/${{ needs.set_env.outputs.environment }}/environment.ts),
"STYLES": $(jq -R -s < helm_configs/frontend/styles.scss),
"LOGIN_COMPONENT": $(jq -R -s < helm_configs/frontend/login.component.html),
"HELP_COMPONENT": $(jq -R -s < helm_configs/frontend/help.component.html),
"ENVIRONMENT": $(jq -R -s < helm_configs/frontend/${{ needs.set_env.outputs.environment }}/config.json),
}
EOF
)
Expand Down
2 changes: 1 addition & 1 deletion frontend
Submodule frontend updated 292 files
132 changes: 132 additions & 0 deletions helm_configs/frontend/development/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"lbBaseURL": "https://dacat-development.psi.ch",
"accessTokenPrefix": "",
"archiveWorkflowEnabled": true,
"retrieveDestinations": [{
"option": "PSI"
},
{
"option": "CSCS"
},
{
"option": "PSI-RA",
"location": "/gpfs/workfs/p18/p18525/retrieve"
}
],
"externalAuthEndpoint": null,
"editMetadataEnabled": false,
"editSampleEnabled": false,
"editPublishedData": true,
"scienceSearchEnabled": true,
"facility": "PSI",
"multipleDownloadEnabled": false,
"shoppingCartEnabled": true,
"shoppingCartOnHeader": true,
"ingestManual": "http://melanie.gitpages.psi.ch/SciCatPages/",
"gettingStarted": "http://melanie.gitpages.psi.ch/SciCatPages/SciCatGettingStartedSLSSummary.pdf",
"jupyterHubUrl": "https://jupyterhub.apps.ocp4a.psi.ch/hub/login",
"riotBaseUrl": null,
"datasetReduceEnabled": false,
"fileColorEnabled": false,
"jsonMetadataEnabled": true,
"localColumns": [{
"name": "select",
"order": 0,
"type": "standard",
"enabled": true
},
{
"name": "datasetName",
"order": 1,
"type": "standard",
"enabled": true
},
{
"name": "runNumber",
"order": 2,
"type": "custom",
"enabled": false
},
{
"name": "sourceFolder",
"order": 3,
"type": "standard",
"enabled": true
},
{
"name": "size",
"order": 4,
"type": "standard",
"enabled": true
},
{
"name": "creationTime",
"order": 5,
"type": "standard",
"enabled": true
},
{
"name": "type",
"order": 6,
"type": "standard",
"enabled": true
},
{
"name": "image",
"order": 7,
"type": "standard",
"enabled": false
},
{
"name": "metadata",
"order": 8,
"type": "standard",
"enabled": false
},
{
"name": "proposalId",
"order": 9,
"type": "standard",
"enabled": true
},
{
"name": "ownerGroup",
"order": 10,
"type": "standard",
"enabled": true
},
{
"name": "dataStatus",
"order": 11,
"type": "standard",
"enabled": true
}
],
"logbookEnabled": false,
"metadataPreviewEnabled": false,
"maxDirectDownloadSize": 5000000000,
"multipleDownloadAction": null,
"searchSamples": true,
"sftpHost": null,
"tableSciDataEnabled": false,
"shareEnabled": true,
"searchPublicDataEnabled": true,
"landingPage": "doi2.psi.ch/detail/",
"fileDownloadEnabled": false,
"jobsEnabled": true,
"policiesEnabled": true,
"addDatasetEnabled": false,
"editDatasetSampleEnabled": false,
"scienceSearchUnitsEnabled": false,
"metadataStructure": "tree",
"loginFormEnabled": true,
"oAuth2Endpoints": [{
"displayText": "PSI account",
"displayImage": "../../../assets/images/keycloak_icon_256px.svg",
"authURL": "auth/keycloak"
}],
"helpMessages": {
"gettingStarted": "(PSI intranet only) gives a brief description on how to get started using the data catalog.",
"ingestManual": "(PSI intranet only) provides detailed information on how to make your data available to the catalog as well as archiving and retrieval of datasets."
}
}
77 changes: 0 additions & 77 deletions helm_configs/frontend/development/environment.ts

This file was deleted.

4 changes: 0 additions & 4 deletions helm_configs/frontend/development/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
envFile: environment.development.ts

envValue: development

host: discovery-development.psi.ch
97 changes: 0 additions & 97 deletions helm_configs/frontend/help.component.html

This file was deleted.

Loading

0 comments on commit ff8ac33

Please sign in to comment.