Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31627

docker-build.sh build fails on Linux machines

    XMLWordPrintableJSON

Details

    Description

      Building the Flink website on Linux fails due to how Docker is used as a Daemon running under root in Linux (see this blog for more details).

      Building the website will fail when copying the artifacts because they are owned by the root user.

      ./docker-build.sh build                                                                                     
      latest: Pulling from jakejarvis/hugo-extended                                                                                                
      Digest: sha256:7d7eb41d7949b5ed338c27926098b84e152e7e1d8ad8f1955c29b383a2336548                                                              
      Status: Image is up to date for jakejarvis/hugo-extended:latest                                                                              
      docker.io/jakejarvis/hugo-extended:latest                                                                                                    
      Start building sites …                                                                                                                       
      hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended linux/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=docker                 
      Error: Error building site: open /src/target/news/2014/08/26/release-0.6.html: permission denied                                             
      Total in 153 ms                                                                                                                              
      mv: cannot move 'docs/target/2014' to 'content/2014': Permission denied                                                                      
      mv: cannot move 'docs/target/2015' to 'content/2015': Permission denied                                                                      
      mv: cannot move 'docs/target/2016' to 'content/2016': Permission denied                                                                      
      mv: cannot move 'docs/target/2017' to 'content/2017': Permission denied                                                                      
      mv: cannot move 'docs/target/2018' to 'content/2018': Permission denied                                                                      
      mv: cannot move 'docs/target/2019' to 'content/2019': Permission denied                                                                      
      mv: cannot move 'docs/target/2020' to 'content/2020': Permission denied                                                                      
      mv: cannot move 'docs/target/2021' to 'content/2021': Permission denied                                                                      
      mv: cannot move 'docs/target/2022' to 'content/2022': Permission denied                                                                                                                                                                                                                   
      mv: cannot move 'docs/target/2023' to 'content/2023': Permission denied                                                                      
      mv: cannot move 'docs/target/categories' to 'content/categories': Permission denied
      [...]
      

      Attachments

        Issue Links

          Activity

            People

              mapohl Matthias Pohl
              mapohl Matthias Pohl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: