diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-06-05 13:21:24 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-06-05 13:28:23 +0000 |
commit | 06e335a7030b3270303363ea97a621badc1f10ae (patch) | |
tree | 72d631eb5f8b8f79dbdf0723ca8dd921513a0d55 /trusty-armhf-tcwg-base | |
parent | 5f4811ff114af8cf612efd897103401dc1b0f2a8 (diff) |
tcwg-host, tcwg-build: Simplify and unify handling of /home files
Replace "new-user.sh --key KEY" interface with "new-user.sh --home-data DIR"
interface. Use the new interface in both tcwg-host and tcwg-build images.
Change-Id: I58e7e6506daa70bd10b4f29deebcf85ca0c5bc4f
Diffstat (limited to 'trusty-armhf-tcwg-base')
-rw-r--r-- | trusty-armhf-tcwg-base/trusty-armhf-tcwg-build/Dockerfile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/trusty-armhf-tcwg-base/trusty-armhf-tcwg-build/Dockerfile b/trusty-armhf-tcwg-base/trusty-armhf-tcwg-build/Dockerfile index 671f0265..2f3de526 100644 --- a/trusty-armhf-tcwg-base/trusty-armhf-tcwg-build/Dockerfile +++ b/trusty-armhf-tcwg-base/trusty-armhf-tcwg-build/Dockerfile @@ -1,17 +1,13 @@ # Auto generated from tcwg-base/tcwg-build/Dockerfile.in. Do not edit. FROM linaro/ci-armhf-tcwg-base-ubuntu:trusty +COPY tcwg-buildslave /home-data/tcwg-buildslave +COPY tcwg-benchmark /home-data/tcwg-benchmark + RUN new-user.sh --group tcwg-infra:9000 \ - && new-user.sh --passwd "tcwg-buildslave:x:11827:9000:TCWG Buildslave::/bin/bash" \ - && new-user.sh --passwd "tcwg-benchmark:x:12326:9000:TCWG Benchmark::/bin/bash" \ + && new-user.sh --passwd "tcwg-buildslave:x:11827:9000:TCWG Buildslave::/bin/bash" --home-data /home-data \ + && new-user.sh --passwd "tcwg-benchmark:x:12326:9000:TCWG Benchmark::/bin/bash" --home-data /home-data \ + && rm -rf /home-data/ \ && mkdir -p /home/tcwg-buildslave/workspace -COPY tcwg-buildslave /home/tcwg-buildslave -COPY tcwg-benchmark /home/tcwg-benchmark - -RUN chown -R tcwg-buildslave:tcwg-infra /home/tcwg-buildslave/ \ - && chown -R tcwg-benchmark:tcwg-infra /home/tcwg-benchmark/ \ - && chmod 0700 /home/tcwg-buildslave/.ssh/ /home/tcwg-benchmark/.ssh/ \ - && chmod 0600 /home/tcwg-buildslave/.ssh/* /home/tcwg-benchmark/.ssh/* - -# checksum: b6038e0cfa2fdbc2b1e25fc33bc26cde +# checksum: db0e3193be6949bae8fe11a6b4734a51 |