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 349a1aa18b feat: add startup message to docker-compose (#4245)
349a1aa18b is described below
commit 349a1aa18b4c3458c3f6a14b0ea834986fe69093
Author: Jiadong Bai <[email protected]>
AuthorDate: Sat Feb 28 10:50:34 2026 -0800
feat: add startup message to docker-compose (#4245)
### What changes were proposed in this PR?
Add a lightweight `startup-message` service to
`bin/single-node/docker-compose.yml` that prints the Texera access URL
after nginx starts. This gives users a clear indication of where to
access the application after running `docker compose up`.
### Any related issues, documentation, discussions?
N/A
### How was this PR tested?
Verified with `docker compose up` that the startup message prints
correctly after nginx starts and the container exits cleanly.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.6)
---------
Co-authored-by: Claude Opus 4.6 <[email protected]>
---
bin/single-node/.env | 2 ++
bin/single-node/docker-compose.yml | 24 +++++++++++++++++++++---
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/bin/single-node/.env b/bin/single-node/.env
index 4da884bab0..e0e9c85fcb 100644
--- a/bin/single-node/.env
+++ b/bin/single-node/.env
@@ -16,6 +16,8 @@
# under the License.
TEXERA_HOST=http://localhost
+TEXERA_PORT=8080
+MINIO_PORT=9000
# Log level for all Texera services (valid values: ERROR, WARN, INFO, DEBUG)
TEXERA_SERVICE_LOG_LEVEL=INFO
diff --git a/bin/single-node/docker-compose.yml
b/bin/single-node/docker-compose.yml
index dd7425c345..36cd57b901 100644
--- a/bin/single-node/docker-compose.yml
+++ b/bin/single-node/docker-compose.yml
@@ -23,7 +23,7 @@ services:
image: minio/minio:RELEASE.2025-02-28T09-55-16Z
container_name: texera-minio
ports:
- - "9000:9000"
+ - "${MINIO_PORT:-9000}:9000"
env_file:
- .env
volumes:
@@ -62,7 +62,7 @@ services:
- .env
environment:
# This port also need to be changed if the port of MinIO service is
changed
- - LAKEFS_BLOCKSTORE_S3_PRE_SIGNED_ENDPOINT=${TEXERA_HOST}:9000
+ -
LAKEFS_BLOCKSTORE_S3_PRE_SIGNED_ENDPOINT=${TEXERA_HOST}:${MINIO_PORT:-9000}
entrypoint: ["/bin/sh", "-c"]
command:
- |
@@ -209,7 +209,25 @@ services:
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- - "8080:8080"
+ - "${TEXERA_PORT:-8080}:8080"
+
+ startup-message:
+ image: alpine:latest
+ depends_on:
+ nginx:
+ condition: service_started
+ environment:
+ - TEXERA_PORT=${TEXERA_PORT:-8080}
+ restart: "no"
+ command: >
+ sh -c '
+ echo "";
+ echo "=========================================";
+ echo " Texera is starting up!";
+ echo " Access at: http://localhost:$$TEXERA_PORT";
+ echo "=========================================";
+ echo "";
+ '
networks:
default: