From 0059dd7cdec99f85a49a819abddd209a957e5e2f Mon Sep 17 00:00:00 2001 From: ozgur Date: Mon, 20 Nov 2023 01:40:36 +0000 Subject: [PATCH] merged with master --- .dockerignore | 2 +- Dockerfile | 4 +++- .../auth/login/login.component.html | 4 ++-- .../components/auth/login/login.component.ts | 10 +++++--- .../public/guides/guides.component.ts | 14 ++++------- .../public/header/header.component.ts | 2 +- .../public/study/study.component.html | 2 +- .../async-task-status-transform.pipe.ts | 10 ++++---- .../shared/nav-bar/nav-bar.component.html | 4 ++-- .../shared/nav-bar/nav-bar.component.ts | 4 ++-- .../shared/ontology/ontology.component.ts | 23 +++++++++++++----- .../rsync/rsync-status-transform.pipe.ts | 14 +++++------ src/app/configuration.mock.service.ts | 7 +++--- .../metabolights/metabolights.service.ts | 9 +++++++ src/app/services/publications/doi.service.ts | 7 ++++-- src/assets/configs/validations.json | 24 +++++++++---------- src/environment.interface.ts | 1 - 17 files changed, 82 insertions(+), 59 deletions(-) diff --git a/.dockerignore b/.dockerignore index 09e83725..868ce4d8 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ nginx.conf e2e -src/assets/configs/*.config.json +src/assets/configs/*config.json dist .github node_modules diff --git a/Dockerfile b/Dockerfile index 58c96010..04227ed0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,14 @@ WORKDIR /app-root COPY . . RUN npm install --save --legacy-peer-deps ARG CONFIGURATION=production +ARG BASE_HREF=/metabolights/editor ENV NODE_OPTIONS=--openssl-legacy-provider -RUN npm run build -- --configuration $CONFIGURATION +RUN npm run build -- --configuration $CONFIGURATION --base-href="$BASE_HREF/" # Stage 2, use the compiled app, ready for production with Nginx FROM nginx:stable LABEL maintainer="MetaboLights (metabolights-help @ ebi.ac.uk)" +COPY --from=build /app-root/dist/metabolights-editor /editor COPY --from=build /app-root/dist /editor ARG EXPOSED_PORT=8008 diff --git a/src/app/components/auth/login/login.component.html b/src/app/components/auth/login/login.component.html index 326bc218..36b2e40d 100644 --- a/src/app/components/auth/login/login.component.html +++ b/src/app/components/auth/login/login.component.html @@ -7,8 +7,8 @@ public Back to MetaboLights
- (Environment: {{ environmentName }}, URL: {{ endpoint }}) (Environment: {{ environmentName }} hosted on {{ endpoint }})