aboutsummaryrefslogtreecommitdiff
path: root/trusty-i386-tcwg-base
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-06-05 13:21:24 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-06-05 13:28:23 +0000
commit06e335a7030b3270303363ea97a621badc1f10ae (patch)
tree72d631eb5f8b8f79dbdf0723ca8dd921513a0d55 /trusty-i386-tcwg-base
parent5f4811ff114af8cf612efd897103401dc1b0f2a8 (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-i386-tcwg-base')
-rw-r--r--trusty-i386-tcwg-base/trusty-i386-tcwg-build/Dockerfile18
1 files changed, 7 insertions, 11 deletions
diff --git a/trusty-i386-tcwg-base/trusty-i386-tcwg-build/Dockerfile b/trusty-i386-tcwg-base/trusty-i386-tcwg-build/Dockerfile
index 12559ca1..36e4717c 100644
--- a/trusty-i386-tcwg-base/trusty-i386-tcwg-build/Dockerfile
+++ b/trusty-i386-tcwg-base/trusty-i386-tcwg-build/Dockerfile
@@ -1,19 +1,15 @@
# Auto generated from tcwg-base/tcwg-build/Dockerfile.in. Do not edit.
FROM linaro/ci-i386-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/*
-
# Install wine. On amd64 arch we need to enable i386, otherwise wine
# won't meet dependencies (this is the case at least for trusty and xenial).
RUN \
@@ -25,4 +21,4 @@ RUN \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
-# checksum: 5a3945fc03be2d9463df9c0a9f37c594
+# checksum: becea34147b660bbfa87d5076b3864d5