Skip to content

Commit de760d0

Browse files
authored
Update deployment instructions for OSDU Admin UI
Updated installation instructions and configuration settings for OSDU Admin UI deployment. Changed Node.js version, added REDIRECT_URI variable, and modified build and upload commands.
1 parent c949149 commit de760d0

1 file changed

Lines changed: 41 additions & 38 deletions

File tree

articles/energy-data-services/how-to-deploy-osdu-admin-ui.md

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ There are two deployment options for the OSDU Admin UI:
106106

107107
```bash
108108
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
109-
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
110-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
111-
nvm install 14.17.3 && \
112-
export NG_CLI_ANALYTICS=false && \
109+
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" && \
110+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \
111+
nvm install 20.19.6 && \
112+
export NG_CLI_ANALYTICS=false && \
113113
npm install -g @angular/[email protected] && \
114-
apt-get install jq -y && \
114+
sudo apt-get update && \
115+
sudo apt-get install -y jq && \
115116
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
116117
```
117118
[![Screenshot that shows installation.](./media/how-to-deploy-osdu-admin-ui/install-screen.png)](./media/how-to-deploy-osdu-admin-ui/install-screen.png#lightbox)
@@ -222,37 +223,39 @@ export SCOPE="" # Scope of the ADME instance, i.e. "6ee7e0d6-0641-4b29-a283-541c
222223
export GRAPH_ENDPOINT="https://graph.microsoft.com/v1.0/" # Microsoft Graph API endpoint
223224
export APPINSIGHTS_INSTRUMENTATIONKEY="" # Optional. Application Insights instrumentation key
224225
export OSDU_CONNECTOR_API_ENDPOINT="" # Optional. API endpoint of the OSDU Connector API
225-
226-
227-
jq --arg data "$DATA_PARTITION_ID" \
228-
--arg domain "$DOMAIN_NAME" \
229-
--arg tenant "$TENANT_ID" \
230-
--arg client "$CLIENT_ID" \
231-
--arg redirect "$REDIRECT_URI" \
232-
--arg scope "$SCOPE" \
233-
--arg endpoint "$OSDU_ENDPOINT" \
234-
--arg graph "$GRAPH_ENDPOINT" \
235-
--arg appinnsights "$APPINSIGHTS_INSTRUMENTATIONKEY" \
236-
--arg connectorapi "$OSDU_CONNECTOR_API_ENDPOINT" \
237-
'.settings.appInsights.instrumentationKey = $appinnsights |
238-
.settings.data_partition = $data |
239-
.settings.domain_name = $domain |
240-
.settings.idp.tenant_id = $tenant |
241-
.settings.idp.client_id = $client |
242-
.settings.idp.redirect_uri = $redirect |
243-
.settings.idp.scope = $scope |
244-
.settings.api_endpoints.entitlement_endpoint = $endpoint |
245-
.settings.api_endpoints.storage_endpoint = $endpoint |
246-
.settings.api_endpoints.search_endpoint = $endpoint |
247-
.settings.api_endpoints.legal_endpoint = $endpoint |
248-
.settings.api_endpoints.schema_endpoint = $endpoint |
249-
.settings.api_endpoints.file_endpoint = $endpoint |
250-
.settings.api_endpoints.secrets_endpoint = $connectorapi |
251-
.settings.api_endpoints.graphAPI_endpoint = $graph |
252-
.settings.api_endpoints.workflow_endpoint = $endpoint |
253-
.settings.api_endpoints.secrets_endpoint = $endpoint |
254-
.settings.api_endpoints.wddms_endpoint = $endpoint' \
255-
src/config/config.json > src/config/temp.json
226+
export REDIRECT_URI="" # this is your static website you can find in your storage account example https://<storage account name>.z21.web.core.windows.net/"
227+
228+
229+
jq \
230+
--arg data "$DATA_PARTITION_ID" \
231+
--arg domain "$DOMAIN_NAME" \
232+
--arg tenant "$TENANT_ID" \
233+
--arg client "$CLIENT_ID" \
234+
--arg redirect "$REDIRECT_URI" \
235+
--arg scope "$SCOPE" \
236+
--arg endpoint "$OSDU_ENDPOINT" \
237+
--arg graph "$GRAPH_ENDPOINT" \
238+
--arg appinsights "$APPINSIGHTS_INSTRUMENTATIONKEY" \
239+
--arg connectorapi "$OSDU_CONNECTOR_API_ENDPOINT" \
240+
'
241+
.settings.appInsights.instrumentationKey = $appinsights |
242+
.settings.data_partition = $data |
243+
.settings.domain_name = $domain |
244+
.settings.idp.tenant_id = $tenant |
245+
.settings.idp.client_id = $client |
246+
.settings.idp.redirect_uri = $redirect |
247+
.settings.idp.scope = $scope |
248+
.settings.api_endpoints.entitlement_endpoint = $endpoint |
249+
.settings.api_endpoints.storage_endpoint = $endpoint |
250+
.settings.api_endpoints.search_endpoint = $endpoint |
251+
.settings.api_endpoints.legal_endpoint = $endpoint |
252+
.settings.api_endpoints.schema_endpoint = $endpoint |
253+
.settings.api_endpoints.file_endpoint = $endpoint |
254+
.settings.api_endpoints.secrets_endpoint = $connectorapi |
255+
.settings.api_endpoints.graphAPI_endpoint = $graph |
256+
.settings.api_endpoints.workflow_endpoint = $endpoint |
257+
.settings.api_endpoints.wddms_endpoint = $endpoint
258+
' src/config/config.json > src/config/temp.json && \
256259
mv src/config/temp.json src/config/config.json
257260
```
258261
@@ -295,14 +298,14 @@ Replace the values according to the explanation.
295298
296299
1. Build the web UI.
297300
```bash
298-
ng build
301+
ng build --configuration=azure-prod
299302
```
300303
301304
1. Upload the build to Storage Account.
302305
```azurecli
303306
az storage blob upload-batch \
304307
--account-name $WEBSITE_NAME \
305-
--source ./dist/OSDUApp \
308+
--source ./dist/OSDUApp/browser/ \
306309
--destination '$web' \
307310
--overwrite
308311
```

0 commit comments

Comments
 (0)