Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Placeholder needed for UI Cert Download #341

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BACKUP_NAME="backup"
MODEL_BASE_PATH="/app/codegate_volume/models"
CODEGATE_DB_FILE="/app/codegate_volume/db/codegate.db"
CODEGATE_CERTS="/app/codegate_volume/certs"
WEBAPP="/usr/src/webapp"

# Function to restore backup if paths are provided
restore_backup() {
Expand Down Expand Up @@ -62,8 +63,12 @@ restore_backup
# Step 2: Generate certificates
genrerate_certs

# Step 3: Start the dashboard
# Step 3: Make CA available to UI
mkdir "$WEBAPP/public/certificates/"
cp "$CERTS/ca.crt" "$WEBAPP/public/certificates/codegate_ca.crt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be $CODEGATE_CERTS instead of $CERTS?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It definitely should , thx!


# Step 4: Start the dashboard
start_dashboard

# Step 4: Start the main application
start_application
# Step 5: Start the main application
start_application
Loading