-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into standardize-alert-panels
- Loading branch information
Showing
69 changed files
with
740 additions
and
936 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#FROM node:20.15.0-alpine AS build | ||
#FROM node:18.19.1-bullseye AS build | ||
FROM node:22.11.0-bullseye AS build | ||
#FROM node:16.14.0-bullseye AS build | ||
|
||
ARG build_env | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json . | ||
|
||
RUN yarn | ||
|
||
COPY *.json . | ||
|
||
COPY src/ src/ | ||
|
||
COPY scripts/ scripts/ | ||
|
||
# RUN apk add gettext | ||
|
||
RUN yarn build:${build_env} | ||
|
||
FROM nginx:1.26.2-alpine | ||
#FROM nginx:1.26.2-bookworm | ||
|
||
RUN mkdir -p /usr/share/nginx/html/orcid-web-frontend | ||
|
||
COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf | ||
|
||
COPY --from=build /app/dist/ /usr/share/nginx/html/orcid-web-frontend/ | ||
|
||
EXPOSE 80 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '2' | ||
services: | ||
angular_yarn: | ||
image: ${DOCKER_REG_PRIVATE}/orcid/registry/orcid-web-frontend-${BUILD_ENV:-qa}:${TAG:-0.0.1} | ||
# entrypoint: sleep infinity | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.build.yarn | ||
args: | ||
build_env: ${BUILD_ENV:-qa} | ||
ports: | ||
- 0.0.0.0:13106:80 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
server { | ||
listen 80; | ||
server_name _; | ||
|
||
# redirect language code dirs to an index.html dir | ||
# | ||
if (!-f $request_filename) { | ||
rewrite "^\/orcid-web-frontend\/([a-z]{2}(_[A-Za-z]{2})?)\/.*" /orcid-web-frontend/$1/index.html last; | ||
} | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
} | ||
|
||
# redirect server error pages to the static page /50x.html | ||
# | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.