Skip to content

Commit

Permalink
Merge pull request #15 from MEITREX/main
Browse files Browse the repository at this point in the history
Integration of M-Elo
  • Loading branch information
v-morlock authored Jun 27, 2024
2 parents d1a976c + bea4cee commit 44661c8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
cache: pnpm

- name: Install packages
run: pnpm install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Run relay
run: mkdir -p ./__generated__ && pnpm run relay
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
cache: pnpm

- name: Install packages
run: pnpm install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Run prettier
run: pnpm run check-format
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --no-cache libc6-compat
WORKDIR /app

COPY package.json pnpm-lock.yaml* ./
RUN yarn global add pnpm@latest-8 && pnpm i --frozen-lockfile
RUN yarn global add pnpm && pnpm i --no-frozen-lockfile


# Rebuild the source code only when needed
Expand All @@ -18,7 +18,7 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
ARG NEXT_PUBLIC_BACKEND_URL="/graphql"
ARG NEXT_PUBLIC_OAUTH_REDIRECT_URL="https://orange.informatik.uni-stuttgart.de"
ARG NEXT_PUBLIC_OAUTH_CLIENT_ID="gits-frontend"
ARG NEXT_PUBLIC_OAUTH_CLIENT_ID="frontend"
ARG NEXT_PUBLIC_OAUTH_AUTHORITY="https://orange.informatik.uni-stuttgart.de/keycloak/realms/GITS"

RUN yarn global add pnpm@latest-8 \
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dayjs.extend(isBetween);
const oidcConfig: AuthProviderProps = {
redirect_uri:
process.env.NEXT_PUBLIC_OAUTH_REDIRECT_URL ?? "http://localhost:3005",
client_id: process.env.NEXT_PUBLIC_OAUTH_CLIENT_ID ?? "gits-frontend",
client_id: process.env.NEXT_PUBLIC_OAUTH_CLIENT_ID ?? "frontend",
authority:
process.env.NEXT_PUBLIC_OAUTH_AUTHORITY ??
"http://localhost:9009/realms/GITS",
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: "3.7"

services:
gits-frontend:
frontend:
build:
context: ./../gits-frontend
context: ./../frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_BACKEND_URL: "http://localhost:8080/graphql"
NEXT_PUBLIC_OAUTH_REDIRECT_URL: "http://localhost:3005"
NEXT_PUBLIC_OAUTH_CLIENT_ID: "gits-frontend"
NEXT_PUBLIC_OAUTH_CLIENT_ID: "frontend"
NEXT_PUBLIC_OAUTH_AUTHORITY: "http://localhost:9009/realms/GITS"
ports:
- "3005:3000"
Expand All @@ -23,5 +23,5 @@ services:
command: start-dev --import-realm
volumes:
- type: bind
source: ./../gits-frontend/keycloak-realm
source: ./../frontend/keycloak-realm
target: /opt/keycloak/data/import
4 changes: 2 additions & 2 deletions keycloak-realm/GITS-realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
],
"security-admin-console": [],
"admin-cli": [],
"gits-frontend": [],
"frontend": [],
"account-console": [],
"broker": [
{
Expand Down Expand Up @@ -622,7 +622,7 @@
},
{
"id": "e08162a0-a822-4b1a-8951-abc0f1d2c63a",
"clientId": "gits-frontend",
"clientId": "frontend",
"name": "",
"description": "",
"rootUrl": "",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gits-frontend",
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down

0 comments on commit 44661c8

Please sign in to comment.