#First build it: #docker build -f Dockerfile -t fmilibrary:build . #Then COPY the .so files (and logs) to your org.simantics.fmil.linux64: #docker run -v /path/to/org.simantics.fmil.linux64/libraries:/output fmilibrary:build FROM ubuntu:16.04 MAINTAINER miro.eklund@semantum.fi # Allow failures to propagate in a pipeline command SHELL ["/bin/bash", "-o", "pipefail", "-e", "-c"] RUN apt-get update && \ apt-get -y upgrade RUN apt-get install -y cmake build-essential patchelf RUN mkdir /builds && \ mkdir /builds/fmil && \ mkdir /builds/fmildebug COPY ./native /sources WORKDIR /builds/fmil RUN cmake /sources/FMILibrary 2>&1 | tee -a /fmil.log RUN make 2>&1 | tee -a /fmil.log RUN make install test 2>&1 | tee -a /fmil.log WORKDIR /builds/fmildebug RUN cmake -DFMILIB_ENABLE_LOG_LEVEL_DEBUG=ON /sources/FMILibrary 2>&1 | tee -a /fmildebug.log RUN make 2>&1 | tee -a /fmildebug.log RUN make install test 2>&1 | tee -a /fmildebug.log WORKDIR /sources/FMUSimulator COPY ./linuxbuild/copytovolume.sh /copytovolume.sh COPY ./linuxbuild/linuxbuild.sh /linuxbuild.sh COPY ./linuxbuild/linuxdebugbuild.sh /linuxdebugbuild.sh RUN chmod 755 /linuxbuild.sh && \ chmod 755 /linuxdebugbuild.sh RUN /linuxbuild.sh 2>&1 | tee -a /fmusimulator.log RUN /linuxdebugbuild.sh 2>&1 | tee -a /fmusimulatordebug.log RUN chmod 755 /copytovolume.sh ENTRYPOINT /copytovolume.sh