Skip to content

Commit

Permalink
refactor: change docker hub to public registry (#1576)
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <syzhao1988@126.com>
  • Loading branch information
frank-zsy authored Jun 3, 2024
1 parent f294df3 commit b6e7309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"scripts": {
"build": "tsc",
"notebook": "npm run build && docker pull docker-hub.open-digger.cn/open-digger/open-digger-js-notebook:1.0 && docker run -it --rm -p 8888:8888 -v $(pwd):/home/node/notebook docker-hub.open-digger.cn/open-digger/open-digger-js-notebook:1.0",
"notebook:win": "npm run build && docker pull docker-hub.open-digger.cn/open-digger/open-digger-js-notebook:1.0 && docker run -it --rm -p 8888:8888 -v %cd%:/home/node/notebook docker-hub.open-digger.cn/open-digger/open-digger-js-notebook:1.0",
"notebook": "npm run build && docker pull registry.cn-beijing.aliyuncs.com/open-digger/open-digger-js-notebook:1.0 && docker run -it --rm -p 8888:8888 -v $(pwd):/home/node/notebook registry.cn-beijing.aliyuncs.com/open-digger/open-digger-js-notebook:1.0",
"notebook:win": "npm run build && docker pull registry.cn-beijing.aliyuncs.com/open-digger/open-digger-js-notebook:1.0 && docker run -it --rm -p 8888:8888 -v %cd%:/home/node/notebook registry.cn-beijing.aliyuncs.com/open-digger/open-digger-js-notebook:1.0",
"pull-label-file-test": "tsc && node lib/ci/pull_label_file_test.js",
"cron": "npm run build && node --max-old-space-size=25600 lib/cron/index.js",
"test": "CLICKHOUSE_HOST=http://ci.open-digger.cn:8123 CLICKHOUSE_USERNAME=default CLICKHOUSE_PASSWORD= mocha"
Expand Down
8 changes: 4 additions & 4 deletions sample_data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ We can use ClickHouse online service with full data access to make ClikcHouse sa

### ClickHouse server image

- x86-64/amd64: `docker pull --platform linux/amd64 docker-hub.open-digger.cn/open-digger/open-digger-clickhouse-base:v2`
- ARM64: `docker pull --platform linux/arm64 docker-hub.open-digger.cn/open-digger/open-digger-clickhouse-base:v2`
- x86-64/amd64: `docker pull --platform linux/amd64 registry.cn-beijing.aliyuncs.com/open-digger/open-digger-clickhouse-base:v2`
- ARM64: `docker pull --platform linux/arm64 registry.cn-beijing.aliyuncs.com/open-digger/open-digger-clickhouse-base:v2`

### Use sample data

Expand All @@ -19,8 +19,8 @@ To use sample data from OSS service, you need to follow the steps:

3. Use ClickHouse base image with extracted data to initialize the database. The extracted `data` and `table` file should be mounted into `/data/` folder into the container, here is an example:

- Linux/MacOS: `docker run -d --name container_name -m 8G -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 --volume=$(pwd)/folder_name/:/data/ docker-hub.open-digger.cn/open-digger/open-digger-clickhouse-base:v2`;
- Windows: `docker run -d --name container_name -m 8G -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 --volume=%cd%/folder_name/:/data/ docker-hub.open-digger.cn/open-digger/open-digger-clickhouse-base:v2`.
- Linux/MacOS: `docker run -d --name container_name -m 8G -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 --volume=$(pwd)/folder_name/:/data/ registry.cn-beijing.aliyuncs.com/open-digger/open-digger-clickhouse-base:v2`;
- Windows: `docker run -d --name container_name -m 8G -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 --volume=%cd%/folder_name/:/data/ registry.cn-beijing.aliyuncs.com/open-digger/open-digger-clickhouse-base:v2`.

In the above command lines, `$(pwd)` or `%cd%` makes sure the `host-src` be an absolute path.
> **Notice**: As referred in [Docker's Doc](https://docs.docker.com/engine/reference/run/#volume-shared-filesystems), the `host-src` in `--volume=[host-src:]container-dest[:<options>]` must be an absolute path or a name value.
Expand Down

0 comments on commit b6e7309

Please sign in to comment.