Bootstrap: docker
From: {{ FROMIMAGE }}

%runscript
    export WM_PROJECT_USER_DIR="${HOME}/${WM_PROJECT}/${USER}-${WM_PROJECT_VERSION}"
    export FOAM_RUN="${WM_PROJECT_USER_DIR}/run"
    export FOAM_USER_APPBIN="${WM_PROJECT_USER_DIR}/platforms/${WM_OPTIONS}/bin"
    export FOAM_USER_LIBBIN="${WM_PROJECT_USER_DIR}/platforms/${WM_OPTIONS}/lib"
    export PATH="${FOAM_USER_APPBIN}:${PATH}"
    export LD_LIBRARY_PATH="${FOAM_USER_LIBBIN}:${LD_LIBRARY_PATH}"
    . /usr/bin/entry.sh
