redash服务安装

参考文献:

https://blog.csdn.net/weixin_39553910/article/details/90023844#%E8%B5%84%E6%BA%90%E5%8C%85

 

特别说明注意以下几点:

1,

因为docker从外面拉去镜像,导致速度很慢,修改一下Dockfile

FROM node:10 as frontend-builder

WORKDIR /frontend
COPY package.json package-lock.json /frontend/
RUN npm install

COPY . /frontend
RUN npm run build

FROM redash/base:latest

# Controls whether to install extra dependencies needed for all data sources.
ARG skip_ds_deps

# We first copy only the requirements file, to avoid rebuilding on every file
# change.
COPY requirements.txt requirements_dev.txt requirements_all_ds.txt ./
RUN pip install -i http://mirrors.tencentyun.com/pypi/simple --trusted-host mirrors.tencentyun.com -r requirements.txt -r requirements_dev.txt
RUN if [ "x$skip_ds_deps" = "x" ] ; then pip install -i http://mirrors.tencentyun.com/pypi/simple --trusted-host mirrors.tencentyun.com -r requirements_all_ds.txt ; else echo "Skipping pip install -r requirements_all_ds.txt" ; fi

COPY . /app
COPY --from=frontend-builder /frontend/client/dist /app/client/dist
RUN chown -R redash /app
USER redash

ENTRYPOINT ["/app/bin/docker-entrypoint"]
CMD ["server"]

凡是遇到pip install的地方加上

pip install -i http://mirrors.tencentyun.com/pypi/simple --trusted-host mirrors.tencentyun.com 

 

2,中间如果遇到某个包下载不了,先注释掉,继续安装即可

你可能感兴趣的:(docker)