Skip to content

Commit 8a50a91

Browse files
authored
Merge pull request #6 from UABGH-Emerging-Technologies/feature/streamlit-frontend
Feature/streamlit frontend
2 parents 2a0e3c7 + d65afe3 commit 8a50a91

138 files changed

Lines changed: 8582 additions & 5319 deletions

File tree

Some content is hidden

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

.devcontainer/Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Base from Microsoft DevContainers Miniconda Python image
1+
# Base from Microsoft DevContainers Python image
22
ARG VARIANT="3.11-bullseye"
33
FROM mcr.microsoft.com/devcontainers/python:0-${VARIANT}
44

@@ -16,15 +16,7 @@ RUN rm -f /etc/apt/sources.list.d/yarn.list /usr/share/keyrings/yarn.gpg \
1616
libxext6 \
1717
libxrender-dev \
1818
fonts-dejavu-core \
19+
default-jre-headless \
1920
&& rm -rf /var/lib/apt/lists/*
2021

21-
RUN if [ "${NODE_VERSION}" != "none" ]; then \
22-
curl -fsSL "https://deb.nodesource.com/setup_${NODE_VERSION}.x" | bash - \
23-
&& apt-get update \
24-
&& apt-get install -y --no-install-recommends nodejs \
25-
&& rm -rf /var/lib/apt/lists/* \
26-
&& node --version \
27-
&& npm --version; \
28-
fi
29-
RUN apt-cache policy nodejs && which npm || true
3022
USER vscode

.devcontainer/devcontainer.json

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.217.4/containers/python-3-miniconda
33
{
4-
"name": "Nvidia Devel",
4+
"name": "UMLBot Dev",
55
"dockerComposeFile": [
66
"docker-compose.yml"
77
],
88
"service": "umlbot-dev",
99
"workspaceFolder": "/workspaces/UMLBot",
1010
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/UMLBot,type=bind,consistency=cached",
1111

12-
// nvidia cuda
13-
//"runArgs": ["--runtime=nvidia", "--gpus", "all"],
14-
1512
// change for the specific project
1613
"mounts": [
1714
"source=${localWorkspaceFolder}/data,target=/data,type=bind,consistency=cached"
1815
],
1916

20-
"forwardPorts":[3000, 7860],
21-
17+
"forwardPorts":[8000],
18+
2219
// Set *default* container specific settings.json values on container create.
23-
"settings": {
20+
"settings": {
2421
"python.linting.enabled": true,
2522
"python.linting.pylintEnabled": true,
2623
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
@@ -32,35 +29,29 @@
3229
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
3330
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
3431
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
35-
"kilocode.activeProvider": "openai", // Or your custom provider
36-
"kilocode.apiKey": "${env:KILO_API_KEY}", // Use the env var above
37-
"kilocode.endpoint": "${env:KILO_ENDPOINT}", // Your backend endpoint
38-
"kilocode.model": "", // Optional, depends on your backend/provider
39-
"plantuml.server": "http://plantuml:8080",
40-
"plantuml.render": "PlantUMLServer",
41-
"plantuml.urlFormat": "png",
42-
32+
"kilocode.activeProvider": "openai",
33+
"kilocode.apiKey": "${env:KILO_API_KEY}",
34+
"kilocode.endpoint": "${env:KILO_ENDPOINT}",
35+
"kilocode.model": ""
4336
},
4437

4538
// Add the IDs of extensions you want installed when the container is created.
4639
"extensions": [
4740
"donjayamanne.python-extension-pack",
4841
"ms-python.vscode-pylance",
4942
"teledemic.branch-warnings",
50-
"kilocode.kilo-code",
51-
"jebbs.plantuml"
43+
"kilocode.kilo-code"
5244
],
5345

5446
"features": {
55-
"ghcr.io/devcontainers/features/node:1": { "version": "20" }
47+
"ghcr.io/devcontainers/features/java:1": { "version": "17", "installGradle": "false", "installMaven": "false" }
5648
},
5749

5850
// Use 'postCreateCommand' to run commands after the container is created.
59-
// where mlflow starts up
6051
"postCreateCommand": [
6152
"./Docker/startup.sh"
6253
],
63-
54+
6455

6556
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
6657
"remoteUser": "vscode"

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ services:
1313
volumes:
1414
- ..:/workspaces/UMLBot:cached
1515
- umlbot-venv:/workspaces/UMLBot/.venv
16-
- umlbot-frontend-node_modules:/workspaces/UMLBot/app/frontend/node_modules
1716
command: sleep infinity
1817

19-
plantuml:
20-
image: plantuml/plantuml-server:latest
21-
container_name: umlbot-plantuml
22-
restart: unless-stopped
23-
2418
volumes:
2519
umlbot-venv:
26-
umlbot-frontend-node_modules:

.dockerignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,35 @@
1414
**/coverage
1515
**/site
1616
**/out
17+
18+
# Sensitive / local
1719
data
1820
secrets
1921
.env
2022
.env.*
23+
24+
# Not needed in deployment image
25+
llm_utils
26+
.devcontainer
27+
.kilocode
28+
.vscode
29+
.claude
30+
Docker
31+
docs
32+
explorations
33+
tests
34+
hooks
35+
PlantUML
36+
37+
# Files not needed at runtime
38+
*.md
39+
!README.md
40+
azurify.md
41+
mkdocs.yml
42+
Makefile
43+
workspace.code-workspace
44+
.flake8
45+
.gitignore
46+
.dockerignore
47+
Dockerfile
48+
docker-compose.yml

.env.example

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
# Backend (Gradio/LLM) configuration
2-
UMLBOT_LLM_API_BASE=""
3-
UMLBOT_LLM_API_KEY=""
4-
UMLBOT_LLM_MODEL=gpt-4o-mini
5-
# For devcontainer compose, use: http://plantuml:8080/png/{encoded}
6-
UMLBOT_PLANTUML_SERVER_URL_TEMPLATE=http://plantuml:8080/png/{encoded}
7-
UMLBOT_CORS_ALLOW_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
1+
# PlantUML JAR path (defaults to /opt/plantuml/plantuml.jar in Docker)
2+
# UMLBOT_PLANTUML_JAR_PATH=/opt/plantuml/plantuml.jar

0 commit comments

Comments
 (0)