Skip to content

Commit 7dbd341

Browse files
committed
Move from react-scripts to vite, since "Create React App" is no longer supported
(see https://react.dev/blog/2025/02/14/sunsetting-create-react-app) This commit also updates keycloak-js
1 parent 6d859cd commit 7dbd341

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+15080
-38560
lines changed

apps/deployment/Dockerfile.prod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# as it contains only the final built app
55

66
# build environment
7-
FROM docker-registry.ebrains.eu/model-catalog/node:16-alpine as build
7+
FROM docker-registry.ebrains.eu/model-catalog/node:22-alpine as build
88

99
WORKDIR /model-catalog
1010
ENV PATH /model-catalog/node_modules/.bin:$PATH
@@ -26,7 +26,7 @@ RUN npm run build
2626
# production environment
2727
FROM docker-registry.ebrains.eu/model-catalog/nginx:stable-alpine
2828
COPY deployment/nginx-app.conf /etc/nginx/conf.d/default.conf
29-
COPY --from=build /model-catalog/build /usr/share/nginx/html/model-catalog
29+
COPY --from=build /model-catalog/dist /usr/share/nginx/html/model-catalog
3030
COPY --from=build /curation-dashboard/build /usr/share/nginx/html/curation-dashboard
3131
EXPOSE 80
3232
CMD ["nginx", "-g", "daemon off;"]

apps/deployment/Dockerfile.staging

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# as it contains only the final built app
55

66
# build environment
7-
FROM docker-registry.ebrains.eu/model-catalog/node:16-alpine as build
7+
FROM docker-registry.ebrains.eu/model-catalog/node:22-alpine as build
88

99
WORKDIR /model-catalog
1010
ENV PATH /model-catalog/node_modules/.bin:$PATH
@@ -28,7 +28,7 @@ RUN npm run build
2828
# production environment
2929
FROM docker-registry.ebrains.eu/model-catalog/nginx:stable-alpine
3030
COPY deployment/nginx-app-staging.conf /etc/nginx/conf.d/default.conf
31-
COPY --from=build /model-catalog/build /usr/share/nginx/html/model-catalog
31+
COPY --from=build /model-catalog/dist /usr/share/nginx/html/model-catalog
3232
COPY --from=build /curation-dashboard/build /usr/share/nginx/html/curation-dashboard
3333
EXPOSE 80
3434
EXPOSE 443

apps/deployment/nginx-app-staging.conf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33

44
server {
5-
listen 443 ssl;
6-
7-
# ssl on;
8-
ssl_certificate /etc/letsencrypt/live/model-catalog-dev.brainsimulation.eu/fullchain.pem;
9-
ssl_certificate_key /etc/letsencrypt/live/model-catalog-dev.brainsimulation.eu/privkey.pem;
10-
11-
server_name model-catalog-dev.brainsimulation.eu;
5+
listen 80;
126

137
location / {
148
root /usr/share/nginx/html/model-catalog;

apps/model_catalog/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" type="image/png" href="/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="EBRAINS Model Catalog"
11+
/>
12+
<link rel="apple-touch-icon" href="/favicon.png" />
13+
<link
14+
rel="stylesheet"
15+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
16+
/>
17+
<link
18+
rel="stylesheet"
19+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
20+
/>
21+
<!--
22+
manifest.json provides metadata used when your web app is installed on a
23+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
24+
-->
25+
<link rel="manifest" href="/manifest.json" />
26+
27+
<title>EBRAINS Model Catalog</title>
28+
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@700" rel="stylesheet">
29+
30+
</head>
31+
<body>
32+
<noscript>You need to enable JavaScript to run this app.</noscript>
33+
<div id="root"></div>
34+
<script type="module" src="/src/index.jsx"></script>
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)