Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 5, 2024
1 parent 18ab776 commit f705f84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/centos7-build
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ RUN cd /workspace && \



RUN ORTOOLS_TAG=$(cat /workspace/antares-xpansion/antares-version.json | jq -r 'or-tools-rte' ) && \
RUN ORTOOLS_TAG=$(cat /workspace/antares-xpansion/antares-version.json | jq -r '.or-tools-rte' ) && \
echo "ORTOOLS_TAG=$ORTOOLS_TAG" && \
URL_ORTOOLS=https://github.com/rte-france/or-tools-rte/releases/download/$ORTOOLS_TAG/ortools_cxx_centos7_static_sirius.zip && \
mkdir -p ortools && cd ortools && \
wget -q -O ortools.zip $URL_ORTOOLS && \
unzip -q ortools.zip && \
rm ortools.zip

RUN ANTARES_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r 'antares_version' ) && \
RUN ANTARES_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r '.antares_version' ) && \
echo "ANTARES_VERSION=$ANTARES_VERSION" && \
mkdir -p deps && \
URL_ORTOOLS=https:https://github.com/AntaresSimulatorTeam/Antares_Simulator/releases/download/v$ANTARES_VERSION/antares-${ANTARES_VERSION}-CentOS-7.9.2009.tar.gz && \
Expand Down Expand Up @@ -96,7 +96,7 @@ RUN export PATH=/root/miniconda3/condabin:$PATH && \
RUN cd _build && \
cmake --install .

RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r 'antares_xpansion_version' ) && \
RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r '.antares_xpansion_version' ) && \
LSB_RELEASE_ID_SHORT=$(lsb_release --short --id) && \
LSB_RELEASE_VERSION_SHORT=$(lsb_release --short --release) && \
pushd cd _install && \
Expand All @@ -114,7 +114,7 @@ RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json |
mkdir archive && \
mv _install/$ARCHIVE_NAME archive/

RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r 'antares_xpansion_version' ) && \
RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r '.antares_xpansion_version' ) && \
pushd _build && \
export FILE_NAME="antaresXpansion-$XPANSION_VERSION-CentOS-7.9.2009" && \
cpack -G TGZ -D CPACK_PACKAGE_FILE_NAME=$FILE_NAME && \
Expand Down

0 comments on commit f705f84

Please sign in to comment.