Skip to content
代码片段 群组 项目
未验证 提交 b861143a 编辑于 作者: Gabriel Mazetto's avatar Gabriel Mazetto 提交者: GitLab
浏览文件

Merge branch 'update-clickhouse-setup-docs' into 'master'

No related branches found
No related tags found
无相关合并请求
development:
main:
database: gitlab_clickhouse_development
url: 'http://localhost:8123'
username: default
password:
test:
main:
database: gitlab_clickhouse_test
......
......@@ -13,7 +13,25 @@ Most of the tooling and APIs are considered unstable.
## GDK setup
For instructions on how to set up a ClickHouse server locally, see the [ClickHouse installation documentation](https://clickhouse.com/docs/en/install).
### Setup ClickHouse server
1. Install ClickHouse locally as described in [ClickHouse installation documentation](https://clickhouse.com/docs/en/install). If you use QuickInstall it will be installed in current directory, if you use homebrew it will be installed to `/opt/homebrew/bin/clickhouse`
1. Enable experimental services with `gdk config set gdk.experimental.ruby_services true`
1. Add clickhouse section to your `gdk.yml`. See [`gdk.example.yml`](https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/gdk.example.yml)
1. Adjust `gdk.yml` clickhouse config to point to your local clickhouse installation and local data storage. E.g.
```yaml
clickhouse:
bin: "/opt/homebrew/bin/clickhouse"
enabled: true
# these are optional if we have more then one GDK:
# http_port: 8123
# interserver_http_port: 9009
# tcp_port: 9001
```
1. Run `gdk reconfigure`
1. Start clickhouse with `gdk start clickhouse`
### Configure your Rails application
......@@ -27,7 +45,7 @@ For instructions on how to set up a ClickHouse server locally, see the [ClickHou
1. Create the database using the `clickhouse-client` CLI tool:
```shell
clickhouse-client --password
clickhouse client --port 9001
```
```sql
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册