11ARG CPP_VERSION
22ARG EXAMPLES_VERSION
33# Base image is not re-built often and tag may lag behind
4- FROM ghcr.io/faasm/examples-base:0.6 .0_0.4.0 AS base
4+ FROM ghcr.io/faasm/examples-base:0.8 .0_0.4.0 AS base
55FROM ghcr.io/faasm/cpp-sysroot:${CPP_VERSION:-dead}
66
77SHELL ["/bin/bash" , "-c" ]
@@ -10,23 +10,27 @@ ENV IN_DOCKER="on"
1010# Copy built OpenMPI from previous step
1111COPY --from=base /tmp/openmpi-4.1.0/ /tmp/openmpi-4.1.0/
1212
13+ # Install OpenMP
14+ ARG DEBIAN_FRONTEND=noninteractive
15+ RUN apt update \
16+ && apt install -y --no-install-recommends \
17+ build-essential \
18+ curl \
19+ libomp-17-dev \
20+ unzip \
21+ && rm -rf /var/lib/apt/lists/*
22+
1323# Install OpenMPI
1424RUN cd /tmp/openmpi-4.1.0 \
1525 && make install \
1626 && cd /tmp \
1727 && rm -rf /tmp/openmpi-4.1.0 /tmp/openmpi-4.1.0.tar.bz2
1828
19- # Install OpenMP
20- ARG DEBIAN_FRONTEND=noninteractive
21- RUN apt update \
22- && apt install -y libomp-17-dev
23-
2429# Install rust
2530RUN curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y \
2631 && source ~/.cargo/env \
2732 && rustup target add wasm32-wasip1
2833
29-
3034# Fetch the code and update submodules
3135ARG EXAMPLES_VERSION
3236RUN mkdir -p code \
@@ -46,9 +50,7 @@ RUN mkdir -p code \
4650 && git submodule update --init -f examples/LULESH \
4751 && git submodule update --init -f examples/libpng \
4852 && git submodule update --init -f examples/polybench \
49- && git submodule update --init -f examples/rabe \
50- && git submodule update --init -f examples/tensorflow \
51- && git submodule update --init -f examples/tless-jwt
53+ && git submodule update --init -f examples/tensorflow
5254
5355# Build the examples and demo functions
5456ENV PATH=${PATH}:/root/.cargo/bin
@@ -64,7 +66,6 @@ RUN cd /code/examples \
6466 && inv polybench --native \
6567 # Build the WASM applications
6668 && inv ffmpeg \
67- && inv jwt \
6869 # ImageMagick needs libpng
6970 && inv libpng imagemagick \
7071 && inv kernels \
@@ -73,14 +74,11 @@ RUN cd /code/examples \
7374 && inv lammps --migration-net \
7475 && inv lulesh \
7576 && inv polybench \
76- && inv rabe \
7777 && inv tensorflow \
7878 # These demo functions link with the cross-compiled static libraries
7979 && inv func ffmpeg check \
80- && inv func jwt test \
8180 && inv func lammps chain \
8281 && inv func mpi migrate \
83- && inv func rabe test \
8482 && inv func tf check
8583
8684# Prepare bashrc
0 commit comments