Skip to content
Snippets Groups Projects
Commit e666c5b9 authored by Kyle Klenk's avatar Kyle Klenk
Browse files

added a sundials docker container

parent 44a6c798
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:20.04
WORKDIR /code
# Get library dependencies
RUN apt-get update -y && \
apt-get upgrade -y && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y software-properties-common \
libnetcdf-dev \
libnetcdff-dev \
liblapack-dev \
libopenblas-dev \
cmake \
g++ \
git \
libssl-dev \
make \
gfortran \
wget \
python3-pip \
gdb &&\
apt-get autoclean
RUN pip3 install xarray
RUN pip3 install netcdf4
# Install the C++ Actor Framework From Git
RUN git clone https://github.com/actor-framework/actor-framework.git
WORKDIR /code/actor-framework
RUN ./configure
WORKDIR /code/actor-framework/build
RUN make
RUN make test
RUN make install
WORKDIR /code
# Install Sundials
RUN wget https://github.com/LLNL/sundials/releases/download/v5.8.0/sundials-5.8.0.tar.gz
RUN tar -xzf sundials-5.8.0.tar.gz
RUN mkdir sundials
WORKDIR /code/sundials
RUN mkdir instdir
RUN mkdir builddir
WORKDIR /code/sundials/builddir
RUN cmake ../../sundials-5.8.0 -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=/code/sundials/instdir -DEXAMPLES_INSTALL_PATH=/code/sundials/instdir/examples
RUN make
RUN make install
# Change workdir for when we attach to this container
WORKDIR /Summa-Actors
ENV LD_LIBRARY_PATH=/Summa-Actors/bin:/usr/local/lib:/code/sundials/instdir/lib
\ No newline at end of file
#! /bin/bash
docker build -t summa-sundials .
\ No newline at end of file
#! /bin/bash
export PROJECT_DIR=/Users/kyleklenk/SUMMA-Projects/Summa-Actors
export NA_TEST=/home/local/kck540/NA_Summa_Test
export SUMMA=/Users/kyleklenk/SUMMA-Projects/Summa-Sundials/summa
docker run -d -it --name SUMMA-Sundials --mount type=bind,source=${PROJECT_DIR},target=/Summa-Actors \
--mount type=bind,source=${SUMMA},target=/SUMMA summa-sundials:latest
Run start time on system: ccyy=2022 - mm=08 - dd=26 - hh=18 - mi=33 - ss=52.626
Run start time on system: ccyy=2022 - mm=08 - dd=27 - hh=02 - mi=48 - ss=23.700
No preview for this file type
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