This is an automated email from the ASF dual-hosted git repository.

jiadongb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/main by this push:
     new 465b850383 fix: update example-data-loader to reference correct 
service names in docker-compose (#4255)
465b850383 is described below

commit 465b85038363d3539001b62d1d2b23f5d0c3d763
Author: Jiadong Bai <[email protected]>
AuthorDate: Tue Mar 3 22:03:23 2026 -0800

    fix: update example-data-loader to reference correct service names in 
docker-compose (#4255)
    
    ### What changes were proposed in this PR?
    
    The `example-data-loader` service in
    `bin/single-node/docker-compose.yml` referenced a non-existent service
    `texera-web-application`, causing the error:
    
    > service "example-data-loader" depends on undefined service
    "texera-web-application": invalid compose project
    
    This was missed during the service/container name alignment in #4249.
    This PR updates the `example-data-loader` service to use the correct
    names:
    
    | What | Before (broken) | After (fixed) |
    |---|---|---|
    | `depends_on` | `texera-web-application` | `dashboard-service` |
    | `TEXERA_DASHBOARD_SERVICE_URL` |
    `http://texera-web-application:8080/api` |
    `http://dashboard-service:8080/api` |
    | `TEXERA_FILE_SERVICE_URL` | `http://texera-file-service:9092/api` |
    `http://file-service:9092/api` |
    
    
    ### Any related issues, documentation, discussions?
    
    Related to #4249
    
    
    ### How was this PR tested?
    
    Verified that all service names referenced in `depends_on` and
    environment variables now match existing services defined in the
    docker-compose file. Running `docker compose --profile examples config`
    no longer produce the "undefined service" error.
    
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (claude-opus-4-6)
    
    ---------
    
    Co-authored-by: Claude <[email protected]>
---
 bin/single-node/docker-compose.yml                         |  8 ++++----
 bin/single-node/examples/load-examples.sh                  | 14 +++++++-------
 .../[Example] Data Exploration on Movies Dataset.json      |  2 +-
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/bin/single-node/docker-compose.yml 
b/bin/single-node/docker-compose.yml
index 09dff1fa7d..28eb8a218d 100644
--- a/bin/single-node/docker-compose.yml
+++ b/bin/single-node/docker-compose.yml
@@ -46,7 +46,7 @@ services:
     volumes:
       - postgres_data:/var/lib/postgresql/data
       # mount the sql files for initializing the postgres
-      - ../../sql:/docker-entrypoint-initdb.d
+      - ./sql:/docker-entrypoint-initdb.d
 
   # lakeFS is the underlying storage of Texera's dataset service
   lakefs:
@@ -235,15 +235,15 @@ services:
   example-data-loader:
     image: alpine:latest
     depends_on:
-      texera-web-application:
+      dashboard-service:
         condition: service_healthy
       file-service:
         condition: service_healthy
     volumes:
       - ./examples:/examples:ro
     environment:
-      - TEXERA_WEB_APPLICATION_URL=http://texera-web-application:8080/api
-      - TEXERA_FILE_SERVICE_URL=http://texera-file-service:9092/api
+      - TEXERA_DASHBOARD_SERVICE_URL=http://dashboard-service:8080/api
+      - TEXERA_FILE_SERVICE_URL=http://file-service:9092/api
       - TEXERA_EXAMPLE_USERNAME=${USER_SYS_ADMIN_USERNAME}
       - TEXERA_EXAMPLE_PASSWORD=${USER_SYS_ADMIN_PASSWORD}
     restart: "no"
diff --git a/bin/single-node/examples/load-examples.sh 
b/bin/single-node/examples/load-examples.sh
index 80e9e4c422..899f78c4bb 100755
--- a/bin/single-node/examples/load-examples.sh
+++ b/bin/single-node/examples/load-examples.sh
@@ -23,8 +23,8 @@
 set -euo pipefail
 
 # Configuration from environment variables with defaults
-TEXERA_WEB_APPLICATION_URL=${TEXERA_WEB_APPLICATION_URL:-"http://texera-web-application:8080/api"}
-TEXERA_FILE_SERVICE_URL=${TEXERA_FILE_SERVICE_URL:-"http://texera-file-service:9092/api"}
+TEXERA_DASHBOARD_SERVICE_URL=${TEXERA_DASHBOARD_SERVICE_URL:-"http://dashboard-service:8080/api"}
+TEXERA_FILE_SERVICE_URL=${TEXERA_FILE_SERVICE_URL:-"http://file-service:9092/api"}
 USERNAME=${TEXERA_EXAMPLE_USERNAME:-"texera"}
 PASSWORD=${TEXERA_EXAMPLE_PASSWORD:-"texera"}
 # In Texera, registration sets email = username
@@ -80,7 +80,7 @@ wait_for_service() {
 # Authenticate and obtain JWT token
 authenticate() {
     print_status "Logging in as $USERNAME..."
-    LOGIN_RESPONSE=$(curl -s -X POST "$TEXERA_WEB_APPLICATION_URL/auth/login" \
+    LOGIN_RESPONSE=$(curl -s -X POST 
"$TEXERA_DASHBOARD_SERVICE_URL/auth/login" \
         -H "Content-Type: application/json" \
         -d "{\"username\": \"$USERNAME\", \"password\": \"$PASSWORD\"}")
 
@@ -91,7 +91,7 @@ authenticate() {
     fi
 
     print_status "User doesn't exist, attempting to register..."
-    REGISTER_RESPONSE=$(curl -s -X POST 
"$TEXERA_WEB_APPLICATION_URL/auth/register" \
+    REGISTER_RESPONSE=$(curl -s -X POST 
"$TEXERA_DASHBOARD_SERVICE_URL/auth/register" \
         -H "Content-Type: application/json" \
         -d "{\"username\": \"$USERNAME\", \"password\": \"$PASSWORD\"}")
 
@@ -230,7 +230,7 @@ load_workflows() {
     fi
 
     # Get list of existing workflows
-    WORKFLOW_LIST_RESPONSE=$(curl -s -X GET 
"$TEXERA_WEB_APPLICATION_URL/workflow/list" \
+    WORKFLOW_LIST_RESPONSE=$(curl -s -X GET 
"$TEXERA_DASHBOARD_SERVICE_URL/workflow/list" \
         -H "Authorization: Bearer $TOKEN")
 
     for workflow_file in "$WORKFLOW_DIR"/*.json; do
@@ -253,7 +253,7 @@ load_workflows() {
         fi
 
         print_status "Creating workflow: $workflow_name"
-        response=$(curl -s -X POST 
"$TEXERA_WEB_APPLICATION_URL/workflow/create" \
+        response=$(curl -s -X POST 
"$TEXERA_DASHBOARD_SERVICE_URL/workflow/create" \
             -H "Authorization: Bearer $TOKEN" \
             -H "Content-Type: application/json" \
             -d "{\"name\":\"$workflow_name\", \"content\": $(jq -Rs <<< 
"$content")}")
@@ -274,7 +274,7 @@ load_workflows() {
 main() {
     print_status "=== Texera Example Data Loader ==="
 
-    wait_for_service "Web Application" 
"$TEXERA_WEB_APPLICATION_URL/healthcheck"
+    wait_for_service "Dashboard Service" 
"$TEXERA_DASHBOARD_SERVICE_URL/healthcheck"
     wait_for_service "File Service" "$TEXERA_FILE_SERVICE_URL/healthcheck"
 
     authenticate
diff --git a/bin/single-node/examples/workflows/[Example] Data Exploration on 
Movies Dataset.json b/bin/single-node/examples/workflows/[Example] Data 
Exploration on Movies Dataset.json
index 6852aea96f..3e9f99c613 100644
--- a/bin/single-node/examples/workflows/[Example] Data Exploration on Movies 
Dataset.json      
+++ b/bin/single-node/examples/workflows/[Example] Data Exploration on Movies 
Dataset.json      
@@ -8,7 +8,7 @@
         "fileEncoding": "UTF_8",
         "customDelimiter": ",",
         "hasHeader": true,
-        "fileName": "/texera/popular-movies-of-imdb/v1/TMDb_updated.CSV",
+        "fileName": "/texera/popular-movies-of-imdb/v1/TMDb_updated.csv",
         "offset": 0,
         "limit": 1000
       },

Reply via email to