简体   繁体   English

使用 docker 构建 cassandra-website 会产生 python3 权限错误

[英]Building cassandra-website with docker yields a python3 permissions error

I am trying to build https://github.com/apache/cassandra-website我正在尝试构建https://github.com/apache/cassandra-website

Python3 is installed, I started the docker daemon, git pull and then run ./run.sh website preview but it yields the following permissions issue even though I am running as root. Python3 已安装,我启动了 docker 守护程序,git pull 然后运行./run.sh website preview ,但即使我以 root 身份运行,它也会产生以下权限问题。

[root@localhost cassandra-website]# ./run.sh website preview
Server Docker Engine version: 1.13.1

Executing docker command:
docker run --rm --name website_content -p 5151:5151/tcp -v /root/cassandra-website:/home/build/cassandra-website -v /root/cassandra-website/site-ui/build/ui-bundle.zip:/home/build/ui-bundle.zip  -e ANTORA_CONTENT_SOURCES_CASSANDRA_WEBSITE_URL=/home/build/cassandra-website -e ANTORA_UI_BUNDLE_URL=/home/build/ui-bundle.zip apache/cassandra-website:latest  preview
container: INFO: Entering preview mode!
container: INFO: Building site.yaml
python3: can't open file './bin/site_yaml_generator.py': [Errno 13] Permission denied

[SOLVED] [解决了]

  1. Update to latest docker from docker official repo从 docker 官方 repo 更新到最新的 docker
  2. Update python3 and install yum install -y python36*更新 python3 并安装 yum install -y python36*
  3. Make sure apache ant is installed (which explains the yaml issue)确保 apache ant 已安装(这解释了 yaml 问题)
  4. Run docs build target运行文档构建目标
  5. Run preview build target Access 127.0.0.7:port/path/to/docs and Voila运行预览构建目标访问 127.0.0.7:port/path/to/docs 和瞧

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM