diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2023-02-20 14:05:32 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2023-02-20 14:05:32 +0000 |
commit | d070027237feed791eb7df0fab5968f3dba8e13e (patch) | |
tree | 64a89d4a0ee3689c5d1f2c1c77994841a50d66bf /jammy-arm64-tcwg-base | |
parent | d5711b38e4465ff9f59f638d0eb50fd20927dd9b (diff) |
tcwg-base: Fix armhf builds, which use ccache
We didn't create /home/tcwg-buildslave/.ccache directory, which
caused it to be created with root:root owner by volume-mount process.
Change-Id: I4b98c446ca69f386f31783dc3c41308c88391f50
Diffstat (limited to 'jammy-arm64-tcwg-base')
-rw-r--r-- | jammy-arm64-tcwg-base/jammy-arm64-tcwg-build/Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jammy-arm64-tcwg-base/jammy-arm64-tcwg-build/Dockerfile b/jammy-arm64-tcwg-base/jammy-arm64-tcwg-build/Dockerfile index 31750be8..a377af8e 100644 --- a/jammy-arm64-tcwg-base/jammy-arm64-tcwg-build/Dockerfile +++ b/jammy-arm64-tcwg-base/jammy-arm64-tcwg-build/Dockerfile @@ -8,9 +8,12 @@ RUN while read line; do \ user=$(echo "$line" | cut -d: -f 1); \ sudo -i -u $user ccache -p; \ done </home-data/passwd -# We increase ccache size to speed up the builds. +# We create ccache directory as tcwg-buildslave, because otherwise +# "docker run -v ccache-volume:/home/tcwg-buildslave/.ccache" will create +# it owned by root:root, which will break builds. We set ccache size: # - 50G is a bare minimum to ccache the gnu/llvm builds -# - The aa64/amd64 build machines have enough memory to support 50G +# - The aa64/amd64 build machines have enough disk to support 50G +# - TK1s have small disk, so try to get by with 10G. RUN sudo -i -u tcwg-buildslave mkdir -p /home/tcwg-buildslave/.ccache \ && sudo -i -u tcwg-buildslave ccache -M 50G -# checksum: 0fdfec12e749b043d05306718d4dd8a1 +# checksum: 848b185837dfcd3314a2efa3a51b4b5f |