Leonardo Sandoval | c831e2b | 2021-03-11 10:25:10 -0600 | [diff] [blame] | 1 | FROM ${OS}:${OS_VER} as FVP |
Leonardo Sandoval | 42065f3 | 2020-08-28 15:29:01 -0500 | [diff] [blame] | 2 | |
Leonardo Sandoval | 42065f3 | 2020-08-28 15:29:01 -0500 | [diff] [blame] | 3 | RUN apt-get update && \ |
| 4 | apt-get install --no-install-recommends --yes bc libatomic1 telnet libdbus-1-3 xterm && \ |
| 5 | rm -rf /var/cache/apt |
| 6 | |
Leonardo Sandoval | c831e2b | 2021-03-11 10:25:10 -0600 | [diff] [blame] | 7 | FROM FVP |
Leonardo Sandoval | 42065f3 | 2020-08-28 15:29:01 -0500 | [diff] [blame] | 8 | |
Leonardo Sandoval | c831e2b | 2021-03-11 10:25:10 -0600 | [diff] [blame] | 9 | WORKDIR ${MODEL_DIR} |
Leonardo Sandoval | 42065f3 | 2020-08-28 15:29:01 -0500 | [diff] [blame] | 10 | |
Leonardo Sandoval | c831e2b | 2021-03-11 10:25:10 -0600 | [diff] [blame] | 11 | # Add the FVP model tarball |
| 12 | # NOTE: some tarballs contain an installer script others don't, so it may be the case |
| 13 | # that the ADD instruction do install the model under /opt/model |
| 14 | ADD ${MODEL}_${MODEL_VER}.tgz . |
| 15 | |
| 16 | # Install packages and model |
| 17 | RUN ${MODEL_DIR}/${MODEL}.sh \ |
Leonardo Sandoval | 42065f3 | 2020-08-28 15:29:01 -0500 | [diff] [blame] | 18 | --i-agree-to-the-contained-eula \ |
| 19 | --verbose \ |
Leonardo Sandoval | c831e2b | 2021-03-11 10:25:10 -0600 | [diff] [blame] | 20 | --destination ${MODEL_DIR}/${MODEL} && rm -f ${MODEL_DIR}/${MODEL}.sh || true |