From 2549aaff0bd2efb5190963cc027e739381c2fad6 Mon Sep 17 00:00:00 2001 From: An Phi Date: Mon, 23 Dec 2024 13:13:10 -0500 Subject: [PATCH] datacube: rename base route to /datacube --- .../legend-application-data-cube-deployment/Dockerfile | 2 +- .../data-cube.config.js | 2 +- .../docker/server-config.json | 8 ++++---- .../legend-application-data-cube-deployment/package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/legend-application-data-cube-deployment/Dockerfile b/packages/legend-application-data-cube-deployment/Dockerfile index 4fd084c545..142249474d 100644 --- a/packages/legend-application-data-cube-deployment/Dockerfile +++ b/packages/legend-application-data-cube-deployment/Dockerfile @@ -1,5 +1,5 @@ FROM finos/legend-shared-server:0.23.5 -COPY dist/data-cube /app/bin/webapp-content/web/data-cube/ +COPY dist/datacube /app/bin/webapp-content/web/datacube/ RUN mkdir -p /config COPY docker/server-config.json /config/server-config.json diff --git a/packages/legend-application-data-cube-deployment/data-cube.config.js b/packages/legend-application-data-cube-deployment/data-cube.config.js index bd38dca542..bb84953214 100644 --- a/packages/legend-application-data-cube-deployment/data-cube.config.js +++ b/packages/legend-application-data-cube-deployment/data-cube.config.js @@ -27,7 +27,7 @@ export default { * e.g. `/something/` is the `baseUrl` of https://www.example.org/something/ * For URLs that have no path, use '/'. */ - baseUrl: '/data-cube/', + baseUrl: '/datacube/', /** * `devServerOptions` [object, optional] * Options to override `webpack-dev-server` configs. diff --git a/packages/legend-application-data-cube-deployment/docker/server-config.json b/packages/legend-application-data-cube-deployment/docker/server-config.json index e4488c3dee..aba3714160 100644 --- a/packages/legend-application-data-cube-deployment/docker/server-config.json +++ b/packages/legend-application-data-cube-deployment/docker/server-config.json @@ -1,7 +1,7 @@ { "pac4j": { - "callbackPrefix": "/data-cube/log.in", - "bypassPaths": ["/data-cube/admin/healthcheck"], + "callbackPrefix": "/datacube/log.in", + "bypassPaths": ["/datacube/admin/healthcheck"], "clients": [ { "org.finos.legend.server.pac4j.gitlab.GitlabClient": { @@ -32,14 +32,14 @@ "/static" ], "localAssetPaths": { - "/data-cube/config.json": "/config/config.json" + "/datacube/config.json": "/config/config.json" }, "uiPath": "/data-cube", "sessionCookie": "LEGEND_DATA_CUBE_JSESSIONID", "server": { "type": "simple", "applicationContextPath": "/", - "adminContextPath": "/data-cube/admin", + "adminContextPath": "/datacube/admin", "connector": { "type": "http", "port": ${DATA_CUBE_PORT} diff --git a/packages/legend-application-data-cube-deployment/package.json b/packages/legend-application-data-cube-deployment/package.json index d7792ef3cf..77bc5108ab 100644 --- a/packages/legend-application-data-cube-deployment/package.json +++ b/packages/legend-application-data-cube-deployment/package.json @@ -19,7 +19,7 @@ "scripts": { "build:tailwindcss": "tailwindcss -i ./style/tailwind.css -o ./lib/tailwind.css --minify", "build:webpack": "cross-env NODE_ENV=production webpack --mode production", - "build-dry:docker": "../../scripts/docker/dry-build-docker-image.sh legend-data-cube ./dist/data-cube", + "build-dry:docker": "../../scripts/docker/dry-build-docker-image.sh legend-data-cube ./dist/datacube", "bundle": "yarn clean && yarn build:webpack && node ./scripts/setup.js ./dist/data-cube", "bundle:analyze": "cross-env NODE_ENV=production webpack --mode production --analyze", "bundle:fast": "cross-env NODE_ENV=production PRODUCTION_MODE=fast webpack --mode production && node ./scripts/setup.js ./dist/data-cube",