aboutsummaryrefslogtreecommitdiff
path: root/tcwg-base/tcwg-build/Dockerfile.in
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-base/tcwg-build/Dockerfile.in')
-rw-r--r--tcwg-base/tcwg-build/Dockerfile.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/tcwg-base/tcwg-build/Dockerfile.in b/tcwg-base/tcwg-build/Dockerfile.in
index 2af68b2c..74b0ccd3 100644
--- a/tcwg-base/tcwg-build/Dockerfile.in
+++ b/tcwg-base/tcwg-build/Dockerfile.in
@@ -1,11 +1,14 @@
FROM linaro/ci-#{ARCH}-tcwg-base-ubuntu:#{DISTRO}
-COPY tcwg-buildslave /home-data/tcwg-buildslave
-COPY tcwg-benchmark /home-data/tcwg-benchmark
+COPY home-data/ /home-data/
RUN new-user.sh --group tcwg-infra:9000 \
- && 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 \
+ && while read line; do \
+ if [ x"$(echo "$line" | cut -d: -f 4)" != x"9000" ]; then \
+ continue; \
+ fi; \
+ new-user.sh --passwd "$line" --home-data /home-data; \
+ done </home-data/passwd \
&& rm -rf /home-data/ \
&& mkdir -p /home/tcwg-buildslave/workspace