Skip to content

Commit

Permalink
move modelica install after e+ install as modelica build step takes l…
Browse files Browse the repository at this point in the history
…onger
  • Loading branch information
TShapinsky committed Jul 25, 2024
1 parent 9c2e95a commit 8193bc9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,6 @@ RUN apt update \
libgfortran5 \
&& rm -rf /var/lib/apt/lists/*

# Install Assimulo, PyFMI and Old Fortran Libraries
RUN --mount=type=bind,from=modelica-dependencies,source=/artifacts,target=/artifacts pip3 install Assimulo*.whl PyFMI*.whl \
&& apt update \
&& gdebi -n gcc-6.deb \
&& gdebi -n libgfortran3.deb \
&& gdebi -n gcc-7.deb \
&& gdebi -n libgfortran4.deb

# Install EnergyPlus
RUN --mount=type=bind,from=energyplus-dependencies,source=/artifacts,target=/artifacts mkdir ${ENERGYPLUS_DIR} \
&& tar -C $ENERGYPLUS_DIR/ --strip-components=1 -xzf energyplus.tar.gz \
Expand All @@ -251,6 +243,15 @@ RUN --mount=type=bind,from=energyplus-dependencies,source=/artifacts,target=/art
&& ln -s ${ENERGYPLUS_DIR} EnergyPlus \
&& rm -rf /var/lib/apt/lists/*


# Install Assimulo, PyFMI and Old Fortran Libraries
RUN --mount=type=bind,from=modelica-dependencies,source=/artifacts,target=/artifacts pip3 install Assimulo*.whl PyFMI*.whl \
&& apt update \
&& gdebi -n gcc-6.deb \
&& gdebi -n libgfortran3.deb \
&& gdebi -n gcc-7.deb \
&& gdebi -n libgfortran4.deb

WORKDIR $HOME

# Only the xml lib component of bcvtb is actaully required for communication, so we just extract that to save space
Expand Down

0 comments on commit 8193bc9

Please sign in to comment.