blob: 8c5c976b0198e760cf938025376086623720da39 [file] [log] [blame]
Leonardo Sandoval98d25902020-05-24 19:50:27 -07001FROM ${OS}:${OS_VER} as FVP
2
3ENV DEBIAN_FRONTEND=noninteractive
4ENV PKG_DEPS="\
5 bc \
6 ca-certificates \
7 curl \
8 libatomic1 \
9 libdbus-1-3 \
10 openssh-server \
11 telnet \
12 xterm \
13"
14
15RUN set -e ;\
16 apt update -q=2 ;\
17 apt full-upgrade -q=2 --yes ;\
18 apt install -q=2 --yes --no-install-recommends ${PKG_DEPS} ;\
19 # Cleanup
20 apt clean ;\
21 rm -rf /var/lib/apt/lists/* /tmp/*
22
23FROM FVP
24
25WORKDIR ${MODEL_DIR}
26
27COPY setup-sshd /usr/sbin/setup-sshd
Paul Sokolovsky30619ea2022-12-01 17:13:15 +030028COPY stdout-flush-wrapper.sh /usr/bin/stdout-flush-wrapper.sh
Paul Sokolovsky69bdd3b2023-04-04 12:26:30 +030029COPY stdout-flush-wrapper-debug.sh /usr/bin/stdout-flush-wrapper-debug.sh
Paul Sokolovskyac70cad2024-05-26 02:31:46 +030030COPY setup-ubl /root/
Paul Sokolovsky78fd3b42024-05-25 15:11:55 +030031COPY swskt-linaro-root*.lic /root/
Paul Sokolovskye98541f2024-05-30 13:15:00 +030032# Add a stable symlink for Tux/LAVA.
Paul Sokolovsky6c551b52024-11-01 13:02:44 +070033RUN cd /root && ln -s swskt-linaro-root-20241031-365d.lic license.lic
Leonardo Sandoval98d25902020-05-24 19:50:27 -070034
35# Add the FVP model tarball
36# NOTE: some tarballs contain an installer script others don't, so it may be the case
37# that the ADD instruction do install the model under /opt/model
Paul Sokolovskyb5cc7742022-11-16 22:08:00 +030038ADD ${TARBALL} .
Leonardo Sandoval98d25902020-05-24 19:50:27 -070039
40# Install packages and model
41RUN ${MODEL_DIR}/${MODEL}.sh \
42 --i-agree-to-the-contained-eula \
43 --verbose \
44 --destination ${MODEL_DIR}/${MODEL} && rm -f ${MODEL_DIR}/${MODEL}.sh || true
45
Paul Sokolovskye1c8aa72024-05-30 13:47:07 +030046# Importing of UBL license is left to LAVA/Tux components.
47## Setup UBL licensing
48#RUN /root/setup-ubl
Paul Sokolovskyac70cad2024-05-26 02:31:46 +030049
Leonardo Sandoval98d25902020-05-24 19:50:27 -070050EXPOSE 22
51ENTRYPOINT ["/usr/sbin/setup-sshd"]