Skip to content

Commit

Permalink
Fix permissions of asset output
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Jan 7, 2025
1 parent 1bbf405 commit c45a860
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions docker/centos-local-build/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -x
#Define source directory
xpansion_sources=$1
ln -s $xpansion_sources /workspace/antares-xpansion
Expand All @@ -16,6 +17,10 @@ export CCACHE_BASEDIR=$ccache_cache_dir/ccache
export CCACHE_COMPRESS=1
export PATH="/usr/lib/ccache:$PATH"

pip3 install --upgrade pip
pip3 install wheel
pip3 install -r /workspace/antares-xpansion/requirements-tests.txt

export VCPKG_ROOT=/workspace/antares-xpansion/vcpkg
ORTOOLS_TAG=$(cat /workspace/antares-xpansion/antares-version.json | jq -r '."or-tools-rte"' )
echo "OR-Tools tag :" $ORTOOLS_TAG
Expand All @@ -37,10 +42,6 @@ wget $URL_ANTARES
tar -xvf antares-${ANTARES_VERSION}-CentOS-7.9.2009.tar.gz -C deps --strip-components=1 &&\
rm -rf antares-${ANTARES_VERSION}-CentOS-7.9.2009.tar.gz

pip3 install --upgrade pip
pip3 install wheel
pip3 install -r /workspace/antares-xpansion/requirements-tests.txt

source /opt/rh/devtoolset-11/enable
source /opt/rh/rh-git227/enable
export VCPKG_BINARY_SOURCES="clear;files,$vcpkg_cache_dir,readwrite"
Expand Down Expand Up @@ -70,4 +71,5 @@ rm -rf build
rm -rf dist
rm -f *.spec
cd ..
tar -czf antares-xpansion-centos.tar.gz -C $install_dir . --exclude='examples'
tar -czf antares-xpansion-centos.tar.gz -C $install_dir . --exclude='examples'
chmod 777 antares-xpansion-centos.tar.gz
5 changes: 3 additions & 2 deletions docker/centos-local-build/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ FROM antaresrte/xpansion-centos7:1.1.1

CMD ["/bin/bash"]

RUN mkdir /workspace
RUN mkdir /workspace \
&& chmod a+w /workspace

WORKDIR /workspace

ADD build.sh /workspace
RUN chmod +x /workspace/build.sh

#Every container will run this
ENTRYPOINT ["/workspace/build.sh"]

0 comments on commit c45a860

Please sign in to comment.