Skip to content

Commit

Permalink
chore: do not skip rebuilding docker images by default (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-XIAO authored Dec 7, 2024
1 parent 69789a0 commit 3dadeb9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: Skip rebuilding images
required: false
type: boolean
default: true
default: false

jobs:
deploy-app:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-chromadb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
description: Skip rebuilding app images
required: false
type: boolean
default: true
default: false
skip-rebuild-images-pipeline:
description: Skip rebuilding pipeline images
required: false
type: boolean
default: true
default: false

jobs:
deploy-chromadb:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: Skip rebuilding images
required: false
type: boolean
default: true
default: false

jobs:
deploy-pipeline:
Expand Down
6 changes: 3 additions & 3 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ make run
The deployment uses Ansible. It will deploy the Docker images of the application and create/update the Kubernetes cluster to run the application. Inside the container, run:

```bash
./deploy-app.sh --skip-rebuild-images=false # Deploy app
./destroy-app.sh # Destroy app
./deploy-app.sh # Deploy app (optionally --skip-rebuild-images=true)
./destroy-app.sh # Destroy app
```

## Pipeline

The deployment uses Ansible and Vertex AI pipeline. It will deploy the Docker images of the pipeline and run `/src/data-pipeline/` and `/src/embedding-model/` steps. Inside the container, run:

```bash
./deploy-pipeline.sh --skip-rebuild-images=false # Deploy pipeline
./deploy-pipeline.sh # Deploy pipeline (optionally --skip-rebuild-images=true)
```


Expand Down
10 changes: 5 additions & 5 deletions deploy/deploy-app.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#!/bin/bash

usage() {
echo "Usage: $0 [--skip-rebuild-images=true|false]"
echo "Usage: $0 [--skip-rebuild-images=false|true]"
exit 1
}

SKIP_REBUILD_IMAGES="true" # Skip rebuilding images by default
SKIP_REBUILD_IMAGES="false" # Do not skip by default

if [[ $# -gt 1 ]]; then
usage
elif [[ $# -eq 1 ]]; then
case "$1" in
--skip-rebuild-images=true)
SKIP_REBUILD_IMAGES="true"
;;
--skip-rebuild-images=false)
SKIP_REBUILD_IMAGES="false"
;;
--skip-rebuild-images=true)
SKIP_REBUILD_IMAGES="true"
;;
*)
echo "Invalid argument: $1"
usage
Expand Down
10 changes: 5 additions & 5 deletions deploy/deploy-pipeline.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#!/bin/bash

usage() {
echo "Usage: $0 [--skip-rebuild-images=true|false]"
echo "Usage: $0 [--skip-rebuild-images=false|true]"
exit 1
}

SKIP_REBUILD_IMAGES="true" # Skip rebuilding images by default
SKIP_REBUILD_IMAGES="false" # Do not skip by default

if [[ $# -gt 1 ]]; then
usage
elif [[ $# -eq 1 ]]; then
case "$1" in
--skip-rebuild-images=true)
SKIP_REBUILD_IMAGES="true"
;;
--skip-rebuild-images=false)
SKIP_REBUILD_IMAGES="false"
;;
--skip-rebuild-images=true)
SKIP_REBUILD_IMAGES="true"
;;
*)
echo "Invalid argument: $1"
usage
Expand Down

0 comments on commit 3dadeb9

Please sign in to comment.