[
https://issues.apache.org/jira/browse/FLINK-31627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias Pohl resolved FLINK-31627.
-----------------------------------
Resolution: Fixed
asf-site: a935b1201c1197ab05406e0db5a5206cdba0608d
> docker-build.sh build fails on Linux machines
> ---------------------------------------------
>
> Key: FLINK-31627
> URL: https://issues.apache.org/jira/browse/FLINK-31627
> Project: Flink
> Issue Type: Bug
> Components: Project Website
> Reporter: Matthias Pohl
> Assignee: Matthias Pohl
> Priority: Major
> Labels: pull-request-available
>
> Building the Flink website on Linux fails due to how Docker is used as a
> Daemon running under root in Linux (see [this
> blog|https://jtreminio.com/blog/running-docker-containers-as-current-host-user/#ok-so-what-actually-works]
> for more details).
> Building the website will fail when copying the artifacts because they are
> owned by the root user.
> {code}
> ./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
> [...]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)