Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: demo 3.4.1 (#15315)

Danny Xu6e0a2fae873b
diff --git a/backend/demo/data/default/README.md b/backend/demo/data/default/README.md
index e8661e0756..923216bc06 100644
--- a/backend/demo/data/default/README.md
+++ b/backend/demo/data/default/README.md
@@ -4,59 +4,18 @@ This is the demo data for https://demo.bytebase.com.
`dump.sql` itself is dumped from the meta database and holds schema and data for the demo.
-# Dependencies
-
-1. Sample test and prod PG instances running on port `8083` and `8084`.
-1. [GitHub hr-sample](https://github.com/s-bytebase/hr-sample) to demonstrate GitOps Workflow.
-2. Enterprise license. https://demo.bytebase.com runs in dev mode using a dev license.
-
-# How to use
-
-Append `--demo default` to the start command.
-
-Demo only works when using embedded PostgreSQL (without supplying [--pg](https://www.bytebase.com/docs/reference/command-line/#pg-string)). This is to prevent accidentally deleting the existing data.
-
-Demo requires the sample test and prod instances run on port `8083` and `8084` respectively. So we need to
-supply the --port with `8080` to make sample instances run on those 2 desired ports.
-
-```bash
-docker run --rm --init \
- --name bytebase \
- --pull always \
- --publish 8080:8080 \
- --volume ~/.bytebase/data:/var/opt/bytebase \
- bytebase/bytebase:3.4.0 \
- --data /var/opt/bytebase \
- --port 8080 \
- --demo default
-```
-
-## Run on render
-
-1. Set the [PORT env](https://render.com/docs/environment-variables#all-services-1) to 8080.
-1. Use [/scripts/Dockerfile.render-demo](https://github.com/bytebase/bytebase/blob/main/scripts/Dockerfile.render-demo) as the Dockerfile.
-1. Supply `bytebase --port 8080 --data /var/opt/bytebase --demo default` to the Docker Command.
-
# How to update demo data
-1. Start Bytebase docker image with `--demo default`, and do whatever you want.
+1. Build and start Bytebase backend with `--demo default` on main branch.
1. Dump with the following command.
```bash
-docker exec -it bytebase pg_dump -h /tmp -p 8082 -U bb --disable-triggers --no-owner --column-inserts --on-conflict-do-nothing > /tmp/dump.sql
+pg_dump -h /tmp -p 8082 -U bb --disable-triggers --no-owner --column-inserts --on-conflict-do-nothing > ~/dump.sql
```
1. Copy and replace `dump.sql`.
-# How to verify the demo data
-
-The demo data is from the release build of Bytebase. If you want to verify the demo data in dev, you can use the following steps:
-
-1. Replace https://github.com/bytebase/bytebase/blob/main/backend/bin/server/cmd/profile_dev.go#L16 with `p.PgUser = "bb"`
-
-1. Start Bytebase with `--demo default`, and do whatever you want.
-
-# API
+# Users
Demo data service account: [email protected] password: bbs_iqysPHMqhNpG4rQ5SFEJ