-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add options to launch local versions of Concierge
- Loading branch information
1 parent
fa184fd
commit 88c4365
Showing
65 changed files
with
115 additions
and
1,749 deletions.
There are no files selected for viewing
Binary file not shown.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,10 +1,28 @@ | ||
import * as envfile from "envfile" | ||
import getEnvPath from "./getEnvPath" | ||
import { $ } from "bun" | ||
import runPython from "./runPython" | ||
import logMessage from "./logMessage" | ||
|
||
export default async (options: FormData, environment = "production") => { | ||
export default async function* (options: FormData) { | ||
const envs = envfile.parse(await Bun.file(getEnvPath()).text()) | ||
envs.OLLAMA_SERVICE = options.has("use_gpu") ? "ollama-gpu" : "ollama" | ||
yield logMessage(`Launching Concierge ${envs.OLLAMA_SERVICE.endsWith("gpu") ? "with" : "without"} GPU acceleration.`) | ||
await Bun.write(getEnvPath(), envfile.stringify(envs)) | ||
await $`docker compose -f ./docker_compose/docker-compose.yml up -d` | ||
const environment = options.get("environment") | ||
if (environment == "local") { | ||
yield logMessage("Building local code files to Docker image. This can take a while depending on your internet connection...") | ||
await $`docker compose -f ./docker_compose/docker-compose-local.yml build` | ||
yield logMessage("Launching Docker Compose configuration with locally built image...") | ||
await $`docker compose -f ./docker_compose/docker-compose-local.yml up -d` | ||
} | ||
else if (environment == "development") { | ||
yield logMessage("Launching Docker Compose configuration to run Concierge code locally...") | ||
await $`docker compose -f ./docker_compose/docker-compose-dev.yml up -d` | ||
await runPython("dev_launcher") | ||
} | ||
else { | ||
yield logMessage("Launching Concierge Docker Compose configuration...") | ||
await $`docker compose -f ./docker_compose/docker-compose.yml up -d` | ||
} | ||
} |
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,4 @@ | ||
export default (message: string) => { | ||
console.log(message) | ||
return message | ||
} |
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 was deleted.
Oops, something went wrong.
Empty file.
30 changes: 0 additions & 30 deletions
30
concierge_packages/installer/src/install_concierge/install.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.