-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update frontend deps, first pass on a dev container
- Loading branch information
Showing
5 changed files
with
2,938 additions
and
3,139 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,62 @@ | ||
{ | ||
"name": "OpenUI Development", | ||
"image": "mcr.microsoft.com/devcontainers/python:3.12", | ||
|
||
// More features: https://containers.dev/features. | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"nodeGypDependencies": true, | ||
"version": "lts", | ||
"nvmVersion": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/rust:1": { | ||
"version": "latest", | ||
"profile": "minimal" | ||
} | ||
}, | ||
|
||
"mounts": [ | ||
"source=codespaces-linux-cache,target=/home/vscode/.cache,consistency=delegated,type=volume" | ||
], | ||
|
||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"bungcip.better-toml", | ||
"charliermarsh.ruff", | ||
"ms-toolsai.jupyter", | ||
"ms-azuretools.vscode-docker", | ||
"GitHub.copilot", | ||
"ms-python.black-formatter" | ||
] | ||
} | ||
}, | ||
|
||
"portsAttributes": { | ||
"5173": { | ||
"label": "OpenUI UI Dev Server" | ||
}, | ||
"7878": { | ||
"label": "OpenUI Server", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
"postCreateCommand": "bash ./.devcontainer/postCreateCommand.sh", | ||
|
||
"secrets": { | ||
"OPENAI_API_KEY": { | ||
"description": "Your OpenAI API Key", | ||
"documentationUrl": "https://platform.openai.com/api-keys" | ||
}, | ||
"WANDB_API_KEY": { | ||
"description": "Your W&B API Key", | ||
"documentationUrl": "https://wandb.ai/authorize" | ||
} | ||
} | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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,19 @@ | ||
#!/bin/bash | ||
|
||
# Fix cache perms | ||
mkdir -p $HOME/.cache | ||
sudo chown -R $USER $HOME/.cache | ||
|
||
# Ollama time | ||
curl -fsSL https://ollama.com/install.sh | sh | ||
|
||
# Install python packages | ||
cd /workspaces/openui/backend | ||
pip install -e .[test] | ||
|
||
# addressing warning... | ||
git config --unset-all core.hooksPath | ||
pre-commit install | ||
|
||
# pre-commit hooks cause permission weirdness | ||
git config --global --add safe.directory /workspaces/openui |
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
Oops, something went wrong.