3 MAINTAINER miro.eklund@semantum.fi
5 ARG fmi='http://www.jmodelica.org/downloads/FMIL/FMILibrary-2.0.3-src.zip'
7 RUN apt-get update && \
10 RUN apt-get install -y wget cmake unzip build-essential
12 RUN mkdir /builds && \
13 mkdir /builds/fmilsrc && \
14 mkdir /builds/fmil && \
15 mkdir /builds/fmildebug
17 RUN wget -O /builds/fmilsrc/fmil.zip $fmi
19 WORKDIR /builds/fmilsrc
21 RUN unzip /builds/fmilsrc/fmil.zip && \
22 rm /builds/fmilsrc/fmil.zip
26 RUN cmake /builds/fmilsrc/FMILibrary-2.0.3
29 RUN make install test >> /fmil.log
31 WORKDIR /builds/fmildebug
33 RUN cmake -DFMILIB_ENABLE_LOG_LEVEL_DEBUG=ON /builds/fmilsrc/FMILibrary-2.0.3
36 RUN make install test >> /fmildebug.log
38 COPY ./copytovolume.sh /copytovolume.sh
39 RUN chmod 755 /copytovolume.sh
40 ENTRYPOINT /copytovolume.sh