Leonardo Sandoval | 98d2590 | 2020-05-24 19:50:27 -0700 | [diff] [blame] | 1 | FROM ${OS}:${OS_VER} as FVP |
| 2 | |
| 3 | ENV DEBIAN_FRONTEND=noninteractive |
| 4 | ENV PKG_DEPS="\ |
| 5 | bc \ |
| 6 | ca-certificates \ |
| 7 | curl \ |
| 8 | libatomic1 \ |
| 9 | libdbus-1-3 \ |
| 10 | openssh-server \ |
| 11 | telnet \ |
| 12 | xterm \ |
| 13 | " |
| 14 | |
| 15 | RUN 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 | |
| 23 | FROM FVP |
| 24 | |
| 25 | WORKDIR ${MODEL_DIR} |
| 26 | |
| 27 | COPY setup-sshd /usr/sbin/setup-sshd |
Paul Sokolovsky | 30619ea | 2022-12-01 17:13:15 +0300 | [diff] [blame] | 28 | COPY stdout-flush-wrapper.sh /usr/bin/stdout-flush-wrapper.sh |
Paul Sokolovsky | 69bdd3b | 2023-04-04 12:26:30 +0300 | [diff] [blame] | 29 | COPY stdout-flush-wrapper-debug.sh /usr/bin/stdout-flush-wrapper-debug.sh |
Paul Sokolovsky | ac70cad | 2024-05-26 02:31:46 +0300 | [diff] [blame] | 30 | COPY setup-ubl /root/ |
Paul Sokolovsky | 78fd3b4 | 2024-05-25 15:11:55 +0300 | [diff] [blame] | 31 | COPY swskt-linaro-root*.lic /root/ |
Paul Sokolovsky | e98541f | 2024-05-30 13:15:00 +0300 | [diff] [blame] | 32 | # Add a stable symlink for Tux/LAVA. |
Paul Sokolovsky | 6c551b5 | 2024-11-01 13:02:44 +0700 | [diff] [blame] | 33 | RUN cd /root && ln -s swskt-linaro-root-20241031-365d.lic license.lic |
Leonardo Sandoval | 98d2590 | 2020-05-24 19:50:27 -0700 | [diff] [blame] | 34 | |
| 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 Sokolovsky | b5cc774 | 2022-11-16 22:08:00 +0300 | [diff] [blame] | 38 | ADD ${TARBALL} . |
Leonardo Sandoval | 98d2590 | 2020-05-24 19:50:27 -0700 | [diff] [blame] | 39 | |
| 40 | # Install packages and model |
| 41 | RUN ${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 Sokolovsky | e1c8aa7 | 2024-05-30 13:47:07 +0300 | [diff] [blame] | 46 | # Importing of UBL license is left to LAVA/Tux components. |
| 47 | ## Setup UBL licensing |
| 48 | #RUN /root/setup-ubl |
Paul Sokolovsky | ac70cad | 2024-05-26 02:31:46 +0300 | [diff] [blame] | 49 | |
Leonardo Sandoval | 98d2590 | 2020-05-24 19:50:27 -0700 | [diff] [blame] | 50 | EXPOSE 22 |
| 51 | ENTRYPOINT ["/usr/sbin/setup-sshd"] |