-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add chat streaming changes * chore: infra:up|down --------- Co-authored-by: Jignesh Solanki <[email protected]>
- Loading branch information
1 parent
e053e0d
commit 7d685eb
Showing
5 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
#!/bin/bash | ||
|
||
container_name="premd" | ||
|
||
# Check if container exists | ||
if [ "$(docker ps -aq -f name=$container_name)" ]; then | ||
# Stop and remove the container | ||
echo "Stopping and removing existing container..." | ||
docker stop $container_name | ||
docker rm $container_name | ||
else | ||
echo "Container $container_name does not exist." | ||
fi |
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,32 @@ | ||
#!/bin/bash | ||
|
||
image="ghcr.io/premai-io/premd:v0.0.8" # replace this with your image name | ||
container_name="premd" | ||
|
||
# Check if container exists | ||
if [ "$(docker ps -q -f name=$container_name)" ]; then | ||
# If it exists and it's running, stop it | ||
if [ "$(docker ps -q -f status=running -f name=$container_name)" ]; then | ||
echo "Stopping existing container..." | ||
docker stop $container_name | ||
fi | ||
# Remove existing container | ||
echo "Removing existing container..." | ||
docker rm $container_name | ||
fi | ||
|
||
/usr/local/bin/docker run -d \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-p 54321:8000 \ | ||
--name $container_name \ | ||
-e PREM_REGISTRY_URL=https://raw.githubusercontent.com/premAI-io/prem-daemon/main/resources/mocks/manifests.json \ | ||
--rm \ | ||
$image | ||
|
||
if [ $? -eq 0 ] | ||
then | ||
echo "Docker run command executed successfully" | ||
else | ||
echo "Failed to execute docker run" >&2 | ||
exit 1 | ||
fi |
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