aboutsummaryrefslogtreecommitdiff
path: root/xenial-arm64-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 /xenial-arm64-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 'xenial-arm64-tcwg-base')
-rw-r--r--xenial-arm64-tcwg-base/xenial-arm64-tcwg-build/Dockerfile18
-rw-r--r--xenial-arm64-tcwg-base/xenial-arm64-tcwg-host/Dockerfile9
2 files changed, 9 insertions, 18 deletions
diff --git a/xenial-arm64-tcwg-base/xenial-arm64-tcwg-build/Dockerfile b/xenial-arm64-tcwg-base/xenial-arm64-tcwg-build/Dockerfile
index 19b01205..c8405b72 100644
--- a/xenial-arm64-tcwg-base/xenial-arm64-tcwg-build/Dockerfile
+++ b/xenial-arm64-tcwg-base/xenial-arm64-tcwg-build/Dockerfile
@@ -1,17 +1,13 @@
# Auto generated from tcwg-base/tcwg-build/Dockerfile.in. Do not edit.
FROM linaro/ci-arm64-tcwg-base-ubuntu:xenial
+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: 3fe6459b89aac3f2b3935eb472339a56
+# checksum: c416a53e9a9b892d7de3e78c70a02858
diff --git a/xenial-arm64-tcwg-base/xenial-arm64-tcwg-host/Dockerfile b/xenial-arm64-tcwg-base/xenial-arm64-tcwg-host/Dockerfile
index e61d551d..289f7613 100644
--- a/xenial-arm64-tcwg-base/xenial-arm64-tcwg-host/Dockerfile
+++ b/xenial-arm64-tcwg-base/xenial-arm64-tcwg-host/Dockerfile
@@ -6,12 +6,7 @@ COPY home-data/ /home-data/
RUN new-user.sh --group tcwg-infra:9000 && new-user.sh --group tcwg-users:10000 \
&& while read line; do \
- new-user.sh --passwd "$line"; \
- user=$(echo "$line" | cut -d: -f 1); \
- gid=$(echo "$line" | cut -d: -f 4); \
- chown -R $user:$gid /home-data/$user/; \
- chmod -R go-rwx /home-data/$user/.ssh/ ; \
- rsync -a /home-data/$user/ /home/$user/; \
+ new-user.sh --passwd "$line" --home-data /home-data; \
done </passwd \
&& rm -rf /passwd /home-data/
-# checksum: 607e7624947eebdea7ed39103e650c61
+# checksum: ec94afcaca03b088611a5457c8d37222