| FROM ${OS}:${OS_VER} 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 ${MODEL_DIR} |
| |
| COPY setup-sshd /usr/sbin/setup-sshd |
| COPY stdout-flush-wrapper.sh /usr/bin/stdout-flush-wrapper.sh |
| COPY stdout-flush-wrapper-debug.sh /usr/bin/stdout-flush-wrapper-debug.sh |
| COPY setup-ubl /root/ |
| COPY swskt-linaro-root*.lic /root/ |
| # Add a stable symlink for Tux/LAVA. |
| RUN cd /root && ln -s swskt-linaro-root-20241031-365d.lic license.lic |
| |
| # 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 ${TARBALL} . |
| |
| # Install packages and model |
| RUN ${MODEL_DIR}/${MODEL}.sh \ |
| --i-agree-to-the-contained-eula \ |
| --verbose \ |
| --destination ${MODEL_DIR}/${MODEL} && rm -f ${MODEL_DIR}/${MODEL}.sh || true |
| |
| # Importing of UBL license is left to LAVA/Tux components. |
| ## Setup UBL licensing |
| #RUN /root/setup-ubl |
| |
| EXPOSE 22 |
| ENTRYPOINT ["/usr/sbin/setup-sshd"] |