Closed xoac closed 5 years ago
I wanted to use this container with azure pipelines but it looks like it create new user for container and that user doesn't have access to /root/.cargo/bin where binaries are.
/root/.cargo/bin
Error https://dev.azure.com/sylwesterrapala/azure-piplines/_build/results?buildId=12&view=logs&jobId=19f40e66-3207-5e25-6b9e-920c88feb988&taskId=dc6aa983-0dab-5b47-2fe7-f99f4eb12c5e&lineStart=486&lineEnd=487&colStart=1&colEnd=1
From this line: https://github.com/xoac/rust-azure-pipelines/blob/26fbb57ad44af2ac263297d5cdec8086ca9d8578/ci/azure-cross-docker.yml#L16
Here are the permisions for /root/
/root/
ls -la /root/ total 24 drwx------ 6 root root 4096 Mar 1 06:17 . drwxr-xr-x 52 root root 4096 Mar 7 22:52 .. -rw-r--r-- 1 root root 3106 Oct 22 2015 .bashrc drwxr-xr-x 3 root root 4096 Mar 1 06:18 .cargo lrwxrwxrwx 1 root root 13 Mar 1 06:17 .multirust -> /root/.rustup -rw-r--r-- 1 root root 186 Mar 1 06:17 .profile drwxr-xr-x 7 root root 4096 Mar 1 06:18 .rustup
I think changing root to 755 should resolve this problem.
I wanted to use this container with azure pipelines but it looks like it create new user for container and that user doesn't have access to
/root/.cargo/bin
where binaries are.Error https://dev.azure.com/sylwesterrapala/azure-piplines/_build/results?buildId=12&view=logs&jobId=19f40e66-3207-5e25-6b9e-920c88feb988&taskId=dc6aa983-0dab-5b47-2fe7-f99f4eb12c5e&lineStart=486&lineEnd=487&colStart=1&colEnd=1
From this line: https://github.com/xoac/rust-azure-pipelines/blob/26fbb57ad44af2ac263297d5cdec8086ca9d8578/ci/azure-cross-docker.yml#L16
Here are the permisions for
/root/
I think changing root to 755 should resolve this problem.