Building cassandra-website with docker yields a python3 permissions error

Question:

I am trying to build 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.

[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
Asked By: msacks

||

Answers:

[SOLVED]

  1. Update to latest docker from docker official repo
  2. Update python3 and install yum install -y python36*
  3. Make sure apache ant is installed (which explains the yaml issue)
  4. Run docs build target
  5. Run preview build target
    Access 127.0.0.7:port/path/to/docs and Voila
Answered By: msacks
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.