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

Commit e028776

Browse files
author
Luke Hinds
authored
Merge pull request #341 from stacklok/webapp
Placeholder needed for UI Cert Download
2 parents 17a99ec + c46c4b1 commit e028776

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/entrypoint.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ BACKUP_NAME="backup"
66
MODEL_BASE_PATH="/app/codegate_volume/models"
77
CODEGATE_DB_FILE="/app/codegate_volume/db/codegate.db"
88
CODEGATE_CERTS="/app/codegate_volume/certs"
9+
WEBAPP="/usr/src/webapp"
910

1011
# Function to restore backup if paths are provided
1112
restore_backup() {
@@ -62,8 +63,12 @@ restore_backup
6263
# Step 2: Generate certificates
6364
genrerate_certs
6465

65-
# Step 3: Start the dashboard
66+
# Step 3: Make CA available to UI
67+
mkdir "$WEBAPP/public/certificates/"
68+
cp "$CERTS/ca.crt" "$WEBAPP/public/certificates/codegate_ca.crt"
69+
70+
# Step 4: Start the dashboard
6671
start_dashboard
6772

68-
# Step 4: Start the main application
69-
start_application
73+
# Step 5: Start the main application
74+
start_application

0 commit comments

Comments
 (0)