0

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
Erick Ramirez
  • 13,964
  • 1
  • 18
  • 23
msacks
  • 33
  • 4
  • I am not sure this is Cassandra related. Maybe something related to [this answer](https://stackoverflow.com/questions/36434764/permissionerror-errno-13-permission-denied)? – tdensmore Aug 04 '22 at 18:08
  • First problem is that ./bin directory isn't created. I tried creating the directory and running touch site_yaml_generator.py to see if I could move forward in the error but it still gets a permission denied. – msacks Aug 05 '22 at 15:15
  • I tried updating to latest docker according to https://docs.docker.com/engine/install/centos/ now yield a new error: container: INFO: Building site.yaml Traceback (most recent call last): File "./bin/site_yaml_generator.py", line 158, in site_yaml.generate_file() File "./bin/site_yaml_generator.py", line 57, in generate_file ).dump("site.yaml") File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 1603 , in dump fp = open(fp, "wb") PermissionError: [Errno 13] Permission denied: 'site.yaml' – msacks Aug 07 '22 at 04:52
  • I also installed every python3 dependency under the sun and still no luck. Looks like a bug in the docker package? – msacks Aug 07 '22 at 09:30

1 Answers1

1

[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
msacks
  • 33
  • 4