aboutsummaryrefslogtreecommitdiff
path: root/tcwg-base/tcwg-build/Dockerfile.in
blob: 74b0ccd3a59996a3837cf45d47e8bdbad97977e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM linaro/ci-#{ARCH}-tcwg-base-ubuntu:#{DISTRO}

COPY home-data/ /home-data/

RUN new-user.sh --group tcwg-infra:9000 \
 && 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

#if ARCH_amd64 || ARCH_i386
# Install wine.  On amd64 arch we need to enable i386, otherwise wine
# won't meet dependencies (this is the case at least for trusty and xenial).
RUN \
#if ARCH_amd64
 dpkg --add-architecture i386 && \
#endif
 apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
 wine \
 && apt-get clean \
 && rm -rf \
 /var/lib/apt/lists/* \
 /tmp/* \
 /var/tmp/*
#endif