-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/integrate-lang-chain
- Loading branch information
Showing
24 changed files
with
1,617 additions
and
9 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
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 @@ | ||
nixpacks build -n hephaestus-application-server server/application-server |
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 |
---|---|---|
@@ -1,9 +1,33 @@ | ||
services: | ||
application-server: | ||
image: hephaestus-application-server | ||
ports: | ||
- '8080' | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=prod | ||
- DATABASE_URL=jdbc:postgresql://postgres:5432/hephaestus | ||
- DATABASE_USERNAME=root | ||
- DATABASE_PASSWORD=root | ||
- SECURITY_USER_NAME=${SECURITY_USER_NAME:-admin} | ||
- SECURITY_USER_PASSWORD=${SECURITY_USER_NAME:-admin_password} | ||
depends_on: | ||
- postgres | ||
networks: | ||
- app-network | ||
|
||
postgres: | ||
image: 'postgres:latest' | ||
environment: | ||
POSTGRES_DB: hephaestus | ||
POSTGRES_PASSWORD: root | ||
POSTGRES_USER: root | ||
- POSTGRES_DB=hephaestus | ||
- POSTGRES_PASSWORD=root | ||
- POSTGRES_USER=root | ||
ports: | ||
- '5432' | ||
networks: | ||
app-network: | ||
aliases: | ||
- postgres | ||
|
||
networks: | ||
app-network: | ||
driver: bridge` |
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,30 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "Hephaestus", | ||
"path": "./" | ||
}, | ||
{ | ||
"name": "webapp", | ||
"path": "./webapp" | ||
}, | ||
{ | ||
"name": "server/application-server", | ||
"path": "./server/application-server" | ||
}, | ||
{ | ||
"name": "server/intelligence-service", | ||
"path": "./server/intelligence-service" | ||
}, | ||
{ | ||
"name": "server/webhook-ingest", | ||
"path": "./server/webhook-ingest" | ||
}, | ||
], | ||
"settings": { | ||
"java.compile.nullAnalysis.mode": "automatic", | ||
"python.terminal.activateEnvironment": true, | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python" | ||
} | ||
} |
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,5 @@ | ||
[variables] | ||
NIXPACKS_JDK_VERSION = '21' | ||
|
||
[phases.build] | ||
cmds = ['chmod +x ./mvnw && ./mvnw -DskipTests clean package'] |
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 |
---|---|---|
|
@@ -10,6 +10,8 @@ class HephaestusApplicationTests { | |
|
||
@Test | ||
void contextLoads() { | ||
// ContextLoads | ||
assert (true); | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...r/application-server/src/test/java/de/tum/in/www1/hephaestus/HephaestusModulithTests.java
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,28 @@ | ||
package de.tum.in.www1.hephaestus; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.springframework.modulith.core.ApplicationModules; | ||
import org.springframework.modulith.docs.Documenter; | ||
import org.springframework.modulith.docs.Documenter.DiagramOptions; | ||
import org.springframework.modulith.docs.Documenter.DiagramOptions.DiagramStyle; | ||
|
||
public class HephaestusModulithTests { | ||
|
||
ApplicationModules modules = ApplicationModules.of(Application.class); | ||
|
||
@Test | ||
void shouldBeCompliant() { | ||
modules.forEach(System.out::println); | ||
modules.verify(); | ||
} | ||
|
||
@Test | ||
void writeDocumentationSnippets() { | ||
DiagramOptions options = DiagramOptions.defaults().withStyle(DiagramStyle.UML); | ||
new Documenter(modules) | ||
.writeModuleCanvases() | ||
.writeModulesAsPlantUml(options) | ||
.writeIndividualModulesAsPlantUml(options); | ||
} | ||
|
||
} |
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,17 @@ | ||
FROM python:3.12 as requirements-stage | ||
|
||
WORKDIR /tmp | ||
|
||
RUN pip install poetry | ||
COPY ./pyproject.toml ./poetry.lock* /tmp/ | ||
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes | ||
|
||
FROM python:3.12 | ||
|
||
WORKDIR /code | ||
|
||
COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt | ||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | ||
COPY ./app /code/app | ||
|
||
CMD ["fastapi", "run", "app/main.py", "--port", "4200"] |
Oops, something went wrong.