Skip to content

Commit a2d0afe

Browse files
docs: extract docker run with sample data (#801)
* extract prepare section with sample data * integrate with the one in first-schema-change
1 parent e367b0e commit a2d0afe

File tree

6 files changed

+20
-21
lines changed

6 files changed

+20
-21
lines changed

mintlify/content/docs/tutorials/first-schema-change/account.webp renamed to mintlify/content/docs/tutorials/shared/account.webp

File renamed without changes.

mintlify/content/docs/tutorials/deploy-schema-migration/bb-setup-built-in-sample.webp renamed to mintlify/content/docs/tutorials/shared/bb-setup-built-in-sample.webp

File renamed without changes.

mintlify/content/docs/tutorials/first-schema-change/dk-bb-running.webp renamed to mintlify/content/docs/tutorials/shared/dk-bb-running.webp

File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import TerminalDockerRunVolume from '/snippets/install/terminal-docker-run-volume.mdx';
2+
3+
1. Ensure Docker is running, then start the Bytebase container:
4+
5+
<TerminalDockerRunVolume />
6+
7+
![dk-bb-running](/content/docs/tutorials/shared/dk-bb-running.webp)
8+
9+
1. Open Bytebase in [localhost:8080](http://localhost:8080/), fill in the fields and click **Create admin account**. You'll be redirected to Workspace.
10+
11+
![account](/content/docs/tutorials/shared/account.webp)
12+
13+
1. During workspace setup, choose the built-in sample data.
14+
15+
![setup-built-in-sample-data](/content/docs/tutorials/shared/bb-setup-built-in-sample.webp)

mintlify/tutorials/deploy-schema-migration.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ estimated_time: '30 mins'
1010
featured: true
1111
---
1212

13-
import TerminalDockerRunVolume from '/snippets/install/terminal-docker-run-volume.mdx';
13+
import PreparationWithSampleData from '/snippets/tutorials/preparation-with-sample-data.mdx';
1414

1515
Bytebase provides a powerful GUI for deploying schema migrations. This tutorial walks you through deploying schema changes with features such as SQL Review, rollout policies, custom approval, time scheduling, and more.
1616

@@ -26,15 +26,7 @@ Bytebase offers **Community**, **Pro**, and **Enterprise** [plans](https://www.b
2626

2727
### Preparation
2828

29-
1. Ensure Docker is running, then start the Bytebase container:
30-
31-
<TerminalDockerRunVolume />
32-
33-
1. After Bytebase starts, visit `localhost:8080`. Register an admin account, and it will be granted the `workspace admin` role automatically.
34-
35-
1. During workspace setup, choose the built-in sample data.
36-
37-
![setup-built-in-sample-data](/content/docs/tutorials/deploy-schema-migration/bb-setup-built-in-sample.webp)
29+
<PreparationWithSampleData />
3830

3931
### Level 1: Automatic rollout in the Test environment (All plans)
4032

mintlify/tutorials/first-schema-change.mdx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,13 @@ estimated_time: '5 mins'
1010
featured: true
1111
---
1212

13-
import TerminalDockerRunVolume from '/snippets/install/terminal-docker-run-volume.mdx';
13+
import PreparationWithSampleData from '/snippets/tutorials/preparation-with-sample-data.mdx';
1414

1515
In this tutorial, you'll use the default sample databases to get familiar with the product in the quickest way.
1616

17-
## Step 1 - Run via Docker
17+
## Step 1 - Run via Docker and Setup
1818

19-
1. Install and start [Docker](https://www.docker.com/).
20-
1. Open Terminal to run the command:
21-
22-
<TerminalDockerRunVolume />
23-
24-
![dk-bb-running](/content/docs/tutorials/first-schema-change/dk-bb-running.webp)
25-
26-
1. Open Bytebase in [localhost:8080](http://localhost:8080/), fill in the fields and click **Create admin account**. You'll be redirected to Workspace.
27-
![account](/content/docs/tutorials/first-schema-change/account.webp)
19+
<PreparationWithSampleData />
2820

2921
## Step 2 - Configure the SQL Review
3022

0 commit comments

Comments
 (0)