clickcat-project / ClickCat

A friendly user interface that lets you search,explore and visualize your ClickHouse Data.
http://8.135.49.240:8080/
Apache License 2.0
80 stars 6 forks source link

Docker #1

Closed bralbral closed 2 years ago

bralbral commented 2 years ago

Hello!

Is there docker image?

I found the docker-compose.yml file at the root of the project, but when I do docker-compose up -d I get this:


bral@bral:~/ClickCat$ docker-compose up -d
[+] Running 9/10
 ⠿ grafana Pulled                                                                                                                               22.0s
   ⠿ a0d0a0d46f8b Pull complete                                                                                                                  1.1s
   ⠿ 4f1fa8aedbc9 Pull complete                                                                                                                  1.1s
   ⠿ e324af75ad14 Pull complete                                                                                                                  2.0s
   ⠿ d87e8a722712 Pull complete                                                                                                                  2.6s
   ⠿ 829bf7e67ede Pull complete                                                                                                                 17.8s
   ⠿ 4f4fb700ef54 Pull complete                                                                                                                 17.9s
   ⠿ 734c6eb74c92 Pull complete                                                                                                                 18.0s
   ⠿ 3908f3b034a4 Pull complete                                                                                                                 18.1s
 ⠿ ckvision Error                                                                                                                                2.2s
[+] Building 2.7s (8/9)                                                                                                                               
 => [internal] load build definition from Dockerfile                                                                                             0.1s
 => => transferring dockerfile: 170B                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                0.1s
 => => transferring context: 78B                                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/node:16-slim                                                                                  0.0s
 => [internal] load build context                                                                                                                0.8s
 => => transferring context: 54.74MB                                                                                                             0.7s
 => [1/5] FROM docker.io/library/node:16-slim                                                                                                    0.3s
 => [2/5] ADD . /app                                                                                                                             1.0s
 => [3/5] WORKDIR /app                                                                                                                           0.1s
 => ERROR [4/5] RUN yarn set version 3.1.1                                                                                                       0.6s
------                                                                                                                                                
 > [4/5] RUN yarn set version 3.1.1:                                                                                                                  
#0 0.588 node:internal/modules/cjs/loader:936                                                                                                         
#0 0.588   throw err;                                                                                                                                 
#0 0.588   ^                                                                                                                                          
#0 0.588                                                                                                                                              
#0 0.588 Error: Cannot find module '/app/.yarn/releases/yarn-3.1.1.cjs'
#0 0.588     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
#0 0.588     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
#0 0.588     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
#0 0.588     at node:internal/main/run_main_module:17:47 {
#0 0.588   code: 'MODULE_NOT_FOUND',
#0 0.588   requireStack: []
#0 0.588 }
------
failed to solve: executor failed running [/bin/sh -c yarn set version 3.1.1]: exit code: 1
bral@bral:~/ClickCat$ 
wangqinghuan commented 2 years ago

@bralbral You can build image locally. docker build -t clickcat . Then docker-compose up -d

bralbral commented 2 years ago

@wangqinghuan yes, and the build error is shown in the first post.

[4/5] RUN yarn set version 3.1.1:

0 0.588 node:internal/modules/cjs/loader:936

0 0.588 throw err;

0 0.588 ^

0 0.588

0 0.588 Error: Cannot find module '/app/.yarn/releases/yarn-3.1.1.cjs'

0 0.588 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)

0 0.588 at Function.Module._load (node:internal/modules/cjs/loader:778:27)

0 0.588 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

0 0.588 at node:internal/main/run_main_module:17:47 {

0 0.588 code: 'MODULE_NOT_FOUND',

0 0.588 requireStack: []

0 0.588 }


failed to solve: executor failed running [/bin/sh -c yarn set version 3.1.1]: exit code: 1

wangqinghuan commented 2 years ago

Have fixed. Could you pull and try again? @bralbral

bralbral commented 2 years ago

@wangqinghuang . Thank you!