redash源码部署

  • Post author:
  • Post category:其他


安装docker

uname -r

#系统内核版本为 3.10 以上。

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

sudo yum-config-manager –add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

sudo yum makecache fast

sudo yum -y install docker-ce

安装docker-compose

yum -y install epel-release

yum -y install python-pip

pip –version

pip install docker-compose

redash/bin内所有命令及manage.py chmod 777赋权

安装redash

docker-compose -f docker-compose.yml run –rm server create_db

docker-compose -f docker-compose.yml up –build

参考文章:

https://blog.csdn.net/weixin_42273374/article/details/82016922

https://blog.csdn.net/diantun00/article/details/80968604

https://discuss.redash.io/t/self-hosted-redash-5-2-from-source-centos-7/2675

https://redash.io/help/open-source/dev-guide/docker

常见问题:

npm ERR! Linux 3.10.0-693.el7.x86_64

npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” “bundle”

npm ERR! node v6.11.0

npm ERR! npm  v3.10.10

npm ERR! code ELIFECYCLE

npm ERR! redash-client@6.0.0 bundle: `bin/bundle-extensions`

npm ERR! Exit status 126

npm ERR!

npm ERR! Failed at the redash-client@6.0.0 bundle script ‘bin/bundle-extensions’.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the redash-client package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     bin/bundle-extensions

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs redash-client

npm ERR! Or if that isn’t available, you can get their info via:

npm ERR!     npm owner ls redash-client

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR!     /app/npm-debug.log

ERROR: Service ‘server’ failed to build: The command ‘/bin/sh -c npm install && npm run bundle && npm run build && rm -rf node_modules’ returned a non-zero code: 1

[root@node191 redash-6.0.0]# npm run build


silly fetchPackageMetaData   path: ‘/tmp/npm-21831-145952d3/unpack-119a8025/package.json’ }

26 silly rollbackFailedOptional Starting

27 silly rollbackFailedOptional Finishing

28 silly runTopLevelLifecycles Finishing

29 silly install printInstalled

30 verbose stack Error: ENOENT: no such file or directory, open ‘/tmp/npm-21831-145952d3/unpack-119a8025/package.json’

30 verbose stack     at Error (native)

31 verbose cwd /usr/bin

32 error Linux 3.10.0-693.el7.x86_64

33 error argv “/usr/bin/node” “/bin/npm” “install” “-g” “n”

34 error node v6.14.3

35 error npm  v3.10.10

36 error path /tmp/npm-21831-145952d3/unpack-119a8025/package.json

37 error code ENOENT

38 error errno -2

39 error syscall open

40 error enoent ENOENT: no such file or directory, open ‘/tmp/npm-21831-145952d3/unpack-119a8025/package.json’

41 error enoent ENOENT: no such file or directory, open ‘/tmp/npm-21831-145952d3/unpack-119a8025/package.json’

41 error enoent This is most likely not a problem with npm itself

41 error enoent and is related to npm not being able to find a file.

以上为docker版本问题,下载的是redash6.0.0包,docker-compose.yml 版本为3

redash-master下载最好用



版权声明:本文为cosunj原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。