aboutsummaryrefslogtreecommitdiff
path: root/xenial-amd64-tcwg-base
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-06-05 12:24:55 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-06-05 12:24:55 +0000
commit47bde2dd97c1bf74dfc2614f7427e93a26794169 (patch)
treee221a92b593cda45da3e6dedeccfd0f999955805 /xenial-amd64-tcwg-base
parent70e4517c8db330f8c30a2faaa4c676c471eecc46 (diff)
tcwg-host: Generalize handling of /home files
Change-Id: I33b65cc9657a399367379eb85543408b4687cc5a
Diffstat (limited to 'xenial-amd64-tcwg-base')
-rw-r--r--xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile20
1 files changed, 12 insertions, 8 deletions
diff --git a/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile b/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile
index f2cffbb4..2417b52f 100644
--- a/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile
+++ b/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile
@@ -1,12 +1,16 @@
# Auto generated from tcwg-base/tcwg-host/Dockerfile.in. Do not edit.
FROM linaro/ci-amd64-tcwg-base-ubuntu:xenial
-COPY authorized_keys-* passwd /
+COPY passwd start.sh /
+COPY home/ /home-data/
-RUN new-user.sh --group primary:10000 \
- && while read line; do new-user.sh --passwd "$line"; done </passwd \
- && for key in /authorized_keys-*; do new-user.sh --key "$key"; done \
- && rm /passwd /authorized_keys-*
-
-COPY start.sh /
-# checksum: ba13ddbbe36a0811f7427be711400606
+RUN new-user.sh --group tcwg-infra:9000 && new-user.sh --group primary: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/; \
+ rsync -a /home-data/$user/ /home/$user/; \
+ done </passwd \
+ && rm -rf /passwd /home-data/
+# checksum: 2279daf17fdc0193f60368a5cbaa1d63