-
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.
Merge pull request #108 from davemecha/gitpodify
Gitpodify - Add support to launch Open UI in Gitpod
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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,27 @@ | ||
# Image of workspace. Learn more: https://www.gitpod.io/docs/configure/workspaces/workspace-image | ||
image: gitpod/workspace-full:latest | ||
|
||
# List the start up tasks. Learn more: https://www.gitpod.io/docs/configure/workspaces/tasks | ||
tasks: | ||
- name: Run Open UI | ||
init: | | ||
mkdir $GITPOD_REPO_ROOT/../venv | ||
cd $GITPOD_REPO_ROOT/../venv | ||
python -m venv openui | ||
source openui/bin/activate | ||
cd $GITPOD_REPO_ROOT/backend | ||
pip install . | ||
gp sync-done init-done | ||
command: | | ||
source $GITPOD_REPO_ROOT/../venv/openui/bin/activate | ||
cd $GITPOD_REPO_ROOT/backend | ||
python -m openui | ||
# List the ports to expose. Learn more: https://www.gitpod.io/docs/configure/workspaces/ports | ||
ports: | ||
- name: Open UI | ||
description: Port 7878 for Open UI | ||
port: 7878 | ||
onOpen: notify | ||
|
||
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart |
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