diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-06-06 08:49:30 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-06-06 08:49:30 +0000 |
commit | dd3b80b7d96cf10c238e22f857f892b1bc0a498f (patch) | |
tree | c082a73a7fbada5fa32ce01467222039aed254d8 /xenial-amd64-tcwg-base | |
parent | d6d118dcd94f8d086743653c43b9042fb7a6e18c (diff) |
tcwg-host: Keep /home-data in the final image
... to be able to re-use /home volume from previous container instance,
where some entries might not exist. We plan to re-use host-home:/home
volume from previous container/image version, so we need a way to initialize
/home/$new_user directories. With /home-data around this is as simple as
"mv /home-data/$new_user /home/$new_user".
Change-Id: I416e81c05d3efea8cfdbb905863929db0d0714ec
Diffstat (limited to 'xenial-amd64-tcwg-base')
-rw-r--r-- | xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile b/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile index 6c6396f2..262f9644 100644 --- a/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile +++ b/xenial-amd64-tcwg-base/xenial-amd64-tcwg-host/Dockerfile @@ -7,8 +7,7 @@ RUN new-user.sh --group tcwg-infra:9000 \ && new-user.sh --group tcwg-users:10000 \ && while read line; do \ new-user.sh --passwd "$line" --home-data /home-data; \ - done </home-data/passwd \ - && rm -rf /home-data/ + done </home-data/passwd COPY start.sh / -# checksum: 4edc5b546637a06c2a7872e8c910663f +# checksum: 67be8ad2fe441805f3c2f1c7a8c1ef99 |