-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into makdown-for-community
- Loading branch information
Showing
21 changed files
with
28,450 additions
and
20,289 deletions.
There are no files selected for viewing
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,4 @@ | ||
.git | ||
node_modules | ||
dist | ||
!*/.empty |
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,35 @@ | ||
#stage 1 | ||
FROM node:20 as node | ||
WORKDIR /app | ||
#define env vars | ||
ARG ENVIRONMENT=openebench | ||
ARG OEB_LEGACY_ANGULAR_URI=https://legacy.openebench.bsc.es/ | ||
ARG VRE_URI=https://openebench.bsc.es/vre/home/ | ||
ARG OBSERVATORY_URI=https://observatory.openebench.bsc.es | ||
ARG REST_API_URL=https://openebench.bsc.es/monitor/rest/ | ||
ARG SCIENTIFIC_SERVICE_URL=https://openebench.bsc.es/api/scientific | ||
ARG BENCH_EVENT_API_URL=https://openebench.bsc.es/rest/bench_event_api | ||
ARG KEYCLOAK_HOST=https://inb.bsc.es | ||
ARG KEYCLOAK_REALM=openebench | ||
ARG KEYCLOAK_CLIENT_ID=oeb-frontend | ||
ARG OBSERVATORY_API_URL=https://observatory.openebench.bsc.es/api/stats | ||
ENV ENVIRONMENT $ENVIRONMENT | ||
ENV OEB_LEGACY_ANGULAR_URI $OEB_LEGACY_ANGULAR_URI | ||
ENV VRE_URI $VRE_URI | ||
ENV OBSERVATORY_URI $OBSERVATORY_URI | ||
ENV REST_API_URL $REST_API_URL | ||
ENV SCIENTIFIC_SERVICE_URL $SCIENTIFIC_SERVICE_URL | ||
ENV BENCH_EVENT_API_URL $BENCH_EVENT_API_URL | ||
ENV KEYCLOAK_HOST $KEYCLOAK_HOST | ||
ENV KEYCLOAK_REALM $KEYCLOAK_REALM | ||
ENV KEYCLOAK_CLIENT_ID $KEYCLOAK_CLIENT_ID | ||
ENV OBSERVATORY_API_URL $OBSERVATORY_API_URL | ||
ENV NODE_OPTIONS --openssl-legacy-provider | ||
|
||
COPY . . | ||
|
||
RUN npm ci | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["npm", "run", "dev"] |
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
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
Empty file.
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,42 @@ | ||
version: '3' | ||
volumes: | ||
dist-volume: | ||
node-modules-volume: | ||
services: | ||
nuxt: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.devci | ||
image: openebench-nuxt:devci | ||
restart: on-failure | ||
volumes: | ||
- ./assets:/app/assets:ro | ||
- ./components:/app/components:ro | ||
- ./config:/app/config:ro | ||
- ./layouts:/app/layouts:ro | ||
- ./pages:/app/pages:ro | ||
- ./plugins:/app/plugins:ro | ||
- ./static:/app/static | ||
- ./store:/app/store:ro | ||
- ./stories:/app/stories:ro | ||
- ./test:/app/test:ro | ||
- ./jest.config.js:/app/jest.config.js:ro | ||
- ./nuxt.config.js:/app/nuxt.config.js:ro | ||
- ./package.json:/app/package.json:ro | ||
- ./package-lock.json:/app/package-lock.json | ||
- ./stylelint.config.js:/app/stylelint.config.js:ro | ||
- ./tsconfig.json:/app/tsconfig.json:ro | ||
|
||
- node-modules-volume:/app/node_modules | ||
- dist-volume:/app/dist | ||
ports: | ||
- '3000:3000' | ||
proxy: | ||
image: nginx:alpine | ||
depends_on: | ||
- nuxt | ||
volumes: | ||
- dist-volume:/usr/share/nginx/html/:ro | ||
- ./nginx.conf.devci:/etc/nginx/conf.d/default.conf:ro | ||
ports: | ||
- '8080: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,23 @@ | ||
server { | ||
listen 80; | ||
sendfile on; | ||
default_type application/octet-stream; | ||
|
||
location / { | ||
proxy_pass http://nuxt:3000/; | ||
proxy_http_version 1.1; | ||
proxy_cache_bypass $http_upgrade; | ||
proxy_buffering off; | ||
proxy_request_buffering off; | ||
|
||
# Proxy headers | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
# proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Port $server_port; | ||
} | ||
} |
Empty file.
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.