Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sapetnioc committed May 24, 2023
1 parent b1f30b7 commit dabf12c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
25 changes: 13 additions & 12 deletions conda/apptainer.def
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Bootstrap: docker
From: ubuntu
From: centos:7

%environment
export CASA=/casa
Expand All @@ -9,20 +9,21 @@ From: ubuntu
export CASA_BUILD=$CASA/build
export CASA_INSTALL=$CASA/install
export CASA_TESTS=$CASA/tests
export BRAINVISA_BVMAKER_CFG=$CASA_SRC/bv_maker.cfg
for f in "$CASA_SRC/environment.sh" "$CASA_CONF/environment.sh" "$CASA/environment.sh"; do
if [ -e "$f" ]; then
source "$f"
fi
done

%post
mkdir /casa
apt update
apt install distro-info-data # to get lsb_release
#apt update
#apt install distro-info-data # to get lsb_release

%runscript
export PATH=/casa/conda/bin:$PATH
export LD_LIBRARY_PATH=/casa/conda/lib:$LD_LIBRARY_PATH

if [ "$UID" != "0" ]; then
export BRAINVISA_BVMAKER_CFG=$CASA_SRC/bv_maker.cfg
for f in "$CASA_SRC/environment.sh" "$CASA_CONF/environment.sh" "$CASA/environment.sh"; do
if [ -e "$f" ]; then
source "$f"
fi
done
export PATH=/casa/conda/bin:$PATH
export LD_LIBRARY_PATH=/casa/conda/lib:$LD_LIBRARY_PATH
fi
exec "$@"
4 changes: 2 additions & 2 deletions conda/setup_dev_apt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
set -x
set -e

apt install -y libgl1-mesa-dev
# yum install mesa-libGL
#apt install -y libgl1-mesa-dev
yum install -y mesa-libGL
2 changes: 2 additions & 0 deletions conda/setup_run_conda
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ build_dependencies=(
# is only installed with sip package version 4.* but sip
# package depends on sip 6.*
pyqt
'sysroot_linux-64=2.17'
qtconsole #? was python3-qtconsole
'matplotlib==3.4.3'
#pyqt5-sip
Expand Down Expand Up @@ -103,6 +104,7 @@ matlab_runtime_dependencies=(

# Generally useful packages
generally_useful_packages=(
bash-completion
ca-certificates
curl
file
Expand Down

0 comments on commit dabf12c

Please sign in to comment.