Skip to content
Snippets Groups Projects
Commit f0cbdbc5 authored by Dutta, Ayushi (PG/R - Comp Sci & Elec Eng)'s avatar Dutta, Ayushi (PG/R - Comp Sci & Elec Eng)
Browse files

init

parent c2aa8401
Branches jawid
No related tags found
No related merge requests found
Pipeline #102027 canceled
...@@ -5,19 +5,32 @@ From: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 ...@@ -5,19 +5,32 @@ From: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
%post %post
# Install special software or additions # Install special software or additions
apt-get update -y # Good practice, update the package database. apt-get update -y # Good practice, update the package database.
apt-get install -y libopenblas-dev # Install the BLAS. apt-get install -y \
apt-get autoremove -y && apt-get autoclean -y # Good practice, to keep the Docker image as small as possible. wget curl vim bzip2 git build-essential \
libopenblas-dev
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* # keep the Docker image as small as possible.
# Install Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p /opt/conda
rm miniconda.sh
export PATH=/opt/conda/bin:$PATH
source /opt/conda/etc/profile.d/conda.sh
conda init bash
# Conda environment
git clone https://github.com/snuvclab/gala.git
cd gala
conda env create -f env.yaml
conda clean -afy
cd ..
rm -rf gala
%environment %environment
# Set some environment vars # Set some environment vars
export PATH=/opt/root/bin:$PATH export PATH=/opt/conda/bin:$PATH
export LD_LIBRARY_PATH=/opt/root/lib:$LD_LIBRARY_PATH source /opt/conda/etc/profile.d/conda.sh
export PYTHONPATH=/opt/root/lib conda activate gala
%runscript
# The command that will run when container is started via apptainer run command.
python /opt/root/tutorials/roofit/rf101_basics.py
%labels %labels
# Add custom metadata to the container. # Add custom metadata to the container.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment