aboutsummaryrefslogtreecommitdiff
path: root/xenial-arm64-tcwg-base/xenial-arm64-tcwg-host/Dockerfile
blob: e61d551d5d3ace59a47cb56c64646d0c33327054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Auto generated from tcwg-base/tcwg-host/Dockerfile.in. Do not edit.
FROM linaro/ci-arm64-tcwg-base-ubuntu:xenial

COPY passwd start.sh /
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/; \
    done </passwd \
 && rm -rf /passwd /home-data/
# checksum: 607e7624947eebdea7ed39103e650c61