This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-9360-44b69d4a56c216e181dbb9b877981001072b2d74 in repository https://gitbox.apache.org/repos/asf/texera.git
commit 0adb38af016bb3ee04ca1150581b61249122bdcc Author: Meng Wang <[email protected]> AuthorDate: Sun Nov 8 00:43:36 2026 +0000 docs(single-node): use docker compose commands in the README (#9360) ### What changes were proposed in this PR? The single-node README tells users to run `bin/single-node.sh`, but the Docker Compose release bundle (`apache-texera-<version>-docker-compose.tar.gz`) does not ship that script, so someone who downloads only the bundle cannot follow the README. This PR restores the `docker compose` instructions the README used before #5998, which 1.2.x was released with, and keeps one note on the wrapper for source checkouts. ### Any related issues, documentation, discussions? Found while testing the 1.3.0 RC1 bundle. The wrapper was added in #5998. ### How was this PR tested? Built the Compose bundle from release/v1.3 (bdffbf6e9) with create-release-tarballs.sh and ran the README's commands in the extracted folder: `docker compose --profile examples up -d` started the stack and the example loader created the Iris dataset and workflow, and `docker compose --profile examples down -v` removed every container and volume. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5) --- bin/single-node/README.md | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/bin/single-node/README.md b/bin/single-node/README.md index ed15df8223..2f935fad12 100644 --- a/bin/single-node/README.md +++ b/bin/single-node/README.md @@ -68,18 +68,20 @@ If any command produces output, that port is occupied by another process. You wi ## Launch Texera -From the repo root, run: +Enter the extracted directory and run the following command to start Texera: ```bash -bin/single-node.sh up +docker compose --profile examples up ``` -This pre-flights Docker, then runs `docker compose up -d` to start the stack in the background. The command returns once containers are started; tail any service with `bin/single-node.sh logs <service>`. +This command will start docker containers that host the Texera services, and pre-create two example workflows and datasets. -To also pre-create two example workflows and datasets (the `examples` profile), add `--with-examples`: +If you don't want to have these examples pre-created, run the following command instead: ```bash -bin/single-node.sh up --with-examples +docker compose up ``` +In a source checkout, run these commands in `bin/single-node/`. You can also run `bin/single-node.sh up` from the repo root (add `--with-examples` for the examples), which starts the same stack in the background. + > If you see the error message like `unable to get image 'nginx:alpine': > Cannot connect to the Docker daemon at > unix:///Users/kunwoopark/.docker/run/docker.sock. Is the docker daemon > running?`, please make sure Docker Desktop is installed and running > When you start Texera for the first time, it will take around 5 minutes to > download needed images. @@ -104,18 +106,21 @@ Input the default account `texera` with password `texera`, and then click on the ## Stop, Restart, and Uninstall Texera ### Stop +Press `Ctrl+C` in the terminal to stop Texera. + +If you already closed the terminal, you can go to the installation folder and run: ```bash -bin/single-node.sh down +docker compose --profile examples stop ``` -Stops every container; data volumes are preserved so the next `bin/single-node.sh up` resumes where you left off. +to stop Texera. ### Restart -Same as the way you [launch Texera](#launch-texera) (`bin/single-node.sh up`). +Same as the way you [launch Texera](#launch-texera). ### Uninstall -To remove Texera and all its data: +To remove Texera and all its data, go to the installation folder and run: ```bash -bin/single-node.sh down --volumes +docker compose --profile examples down -v ``` > ⚠️ Warning: This will permanently delete all the data used by Texera. @@ -188,9 +193,9 @@ For example, to change the folder of storing `workflow_result_data` to `/Users/j device: /Users/johndoe/texera/data ``` -If you already launched texera and want to change the data locations, existing data volumes need to be recreated and override in the next boot-up, i.e. select `y` when running `bin/single-node.sh up` again: +If you already launched texera and want to change the data locations, existing data volumes need to be recreated and override in the next boot-up, i.e. select `y` when running `docker compose up` again: ``` -$ bin/single-node.sh up +$ docker compose up ? Volume "texera-single-node-release-1-1-0_workflow_result_data" exists but doesn't match configuration in compose file. Recreate (data will be lost)? (y/N) y // answer y to this prompt ``` @@ -250,13 +255,13 @@ Stop the conflicting process, or change Texera's ports following the instruction ### Volume conflicts -PostgreSQL only runs the database initialization scripts on first startup (when its data volume is empty). If you previously started Texera and then ran `bin/single-node.sh down` (without `--volumes`), the data volume still exists. On the next `bin/single-node.sh up`, the initialization is skipped, which can cause services like lakeFS to fail because their required databases were never created. +PostgreSQL only runs the database initialization scripts on first startup (when its data volume is empty). If you previously started Texera and then ran `docker compose down` (without `-v`), the data volume still exists. On the next `docker compose up`, the initialization is skipped, which can cause services like lakeFS to fail because their required databases were never created. To resolve this, remove all existing volumes and start fresh: ``` -bin/single-node.sh down --volumes -bin/single-node.sh up +docker compose --profile examples down -v +docker compose --profile examples up ``` -> ⚠️ Warning: `bin/single-node.sh down --volumes` permanently deletes all Texera data. +> ⚠️ Warning: `docker compose --profile examples down -v` permanently deletes all Texera data.
