aboutsummaryrefslogtreecommitdiff
path: root/bionic-amd64-fvp/fvp_base_revc-2xaemva_11.15_14/Dockerfile
blob: 4ad3f16d0b02be7863817958a0ca46bf7381f3e8 (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
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:bionic as FVP

ENV DEBIAN_FRONTEND=noninteractive
ENV PKG_DEPS="\
    bc \
    ca-certificates \
    curl \
    libatomic1 \
    libdbus-1-3 \
    openssh-server \
    telnet \
    xterm \
"

RUN set -e ;\
    apt update -q=2 ;\
    apt full-upgrade -q=2 --yes ;\
    apt install -q=2 --yes --no-install-recommends ${PKG_DEPS} ;\
    # Cleanup
    apt clean ;\
    rm -rf /var/lib/apt/lists/* /tmp/*

FROM FVP

WORKDIR /opt/model

COPY setup-sshd /usr/sbin/setup-sshd

# Add the FVP model tarball
# NOTE: some tarballs contain an installer script others don't, so it may be the case
# that the ADD instruction do install the model under /opt/model
ADD FVP_Base_RevC-2xAEMvA_11.15_14.tgz .

# Install packages and model
RUN /opt/model/FVP_Base_RevC-2xAEMvA.sh \
        --i-agree-to-the-contained-eula \
        --verbose \
        --destination /opt/model/FVP_Base_RevC-2xAEMvA && rm -f /opt/model/FVP_Base_RevC-2xAEMvA.sh || true

EXPOSE 22
ENTRYPOINT ["/usr/sbin/setup-sshd"]