-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
When building using the package-specific docker container setup, I get the following error:
docker run --platform linux/amd64 --tty -v /home/user1/repos/3p-package-source/package-system/OpenSSL/temp:/data/workspace/temp:ro openssl_1_1_1t_amd64_3p:latest /data/workspace/docker_build_openssl.sh
Preparing source folder '/data/workspace/src'
cp: cannot stat '/data/workspace/temp/src': Permission denied
Error copying src from /data/workspace/tempo
Failed to build from docker image openssl_1_1_1t_amd64_3p:latest
To log into and troubleshoot the docker container, run the following command:
docker run --platform linux/amd64 -v /home/user1/repos/3p-package-source/package-system/OpenSSL/temp:/data/workspace/temp:ro -it --tty openssl_1_1_1t_amd64_3p:latest
Error executing custom build command ./build-linux.sh openssl_1_1_1t 18.04 x86_64
Package OpenSSL-1.1.1t-rev1-linux failed to build from source.
This seems to be a SELinux related issue, because when I add "Z" to the list of bind mount options like docker run --platform linux/amd64 --tty -v /home/user1/repos/3p-package-source/package-system/OpenSSL/temp:/data/workspace/temp:ro,Z , the problem is fixed:
https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels