Skip to content
Snippets Groups Projects
Commit 23a171f4 authored by KyleKlenk's avatar KyleKlenk
Browse files

Added the dockerfile that is actually used

parent f028a3d5
No related branches found
No related tags found
No related merge requests found
...@@ -20,17 +20,17 @@ RUN apt-get update -y && \ ...@@ -20,17 +20,17 @@ RUN apt-get update -y && \
python3-pip \ python3-pip \
valgrind \ valgrind \
gdb &&\ gdb &&\
valgrind &&\
apt-get autoclean apt-get autoclean
RUN pip3 install xarray RUN pip3 install xarray
RUN pip3 install netcdf4 RUN pip3 install netcdf4
# Install the C++ Actor Framework From Git # Install the C++ Actor Framework 0.18.6
RUN git clone https://github.com/actor-framework/actor-framework.git RUN wget https://github.com/actor-framework/actor-framework/archive/refs/tags/0.18.6.tar.gz
WORKDIR /code/actor-framework RUN tar -xvf 0.18.6.tar.gz
WORKDIR /code/actor-framework-0.18.6
RUN ./configure RUN ./configure
WORKDIR /code/actor-framework/build WORKDIR /code/actor-framework-0.18.6/build
RUN make RUN make
RUN make test RUN make test
RUN make install RUN make install
...@@ -38,17 +38,16 @@ RUN make install ...@@ -38,17 +38,16 @@ RUN make install
WORKDIR /code WORKDIR /code
# Install Sundials # Install Sundials
RUN wget https://github.com/LLNL/sundials/releases/download/v5.8.0/sundials-5.8.0.tar.gz RUN wget https://github.com/LLNL/sundials/releases/download/v6.3.0/sundials-6.3.0.tar.gz
RUN tar -xzf sundials-5.8.0.tar.gz RUN tar -xzf sundials-6.3.0.tar.gz
RUN mkdir sundials RUN mkdir sundials
WORKDIR /code/sundials WORKDIR /code/sundials
RUN mkdir instdir RUN mkdir /usr/local/sundials
RUN mkdir builddir RUN mkdir builddir
WORKDIR /code/sundials/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 cmake ../../sundials-6.3.0 -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=/usr/local/sundials -DEXAMPLES_INSTALL_PATH=/code/sundials/instdir/examples
RUN make RUN make
RUN make install RUN make install
# Change workdir for when we attach to this container # Change workdir for when we attach to this container
WORKDIR /Summa-Actors WORKDIR /Summa-Actors
ENV LD_LIBRARY_PATH=/Summa-Actors/bin:/usr/local/lib:/code/sundials/instdir/lib \ No newline at end of file
\ No newline at end of file
#! /bin/bash
sudo apptainer build summa_actors.sif summa_actors.def
Bootstrap: docker
From: ubuntu:20.04
%post
apt-get update
# need to install locales and set to en_CA.UTF-8
# this causes issues if not done
apt-get install locales
locale-gen en_CA.UTF-8
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 \
python3.8 \
python3-pip \
gdb &&\
apt-get autoclean
pip3 install xarray
pip3 install netcdf4
cd /opt
git clone https://github.com/actor-framework/actor-framework.git
cd actor-framework
./configure
cd build
make
make test
make install
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 \
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
# Change workdir for when we attach to this container
WORKDIR /Summa-Actors
ENV LD_LIBRARY_PATH=/Summa-Actors/bin:/usr/local/lib
#! /bin/bash
docker build -t summa-actors .
\ No newline at end of file
#! /bin/bash
export PROJECT_DIR=/home/local/kck540/SUMMA-Projects/Summa-Distributed/Summa-Actors
export GLADWELL=/gladwell
docker run -d -it --name SUMMA-Actors --mount type=bind,source=${PROJECT_DIR},target=/Summa-Actors \
--mount type=bind,source=${GLADWELL},target=/gladwell summa-actors:latest
\ No newline at end of file
#! /bin/bash
docker build -t summa-sundials .
\ No newline at end of file
#! /bin/bash
# Program Locations to bind
export SUMMA_ACTORS=/Users/kyleklenk/SUMMA-Projects/Summa-Actors
export SUMMA=/Users/kyleklenk/SUMMA-Projects/Summa-Sundials/summa
export CONTAINTER_NAME="Summa-Sundials"
docker run -d -it --name ${CONTAINTER_NAME} --mount type=bind,source=${SUMMA_ACTORS},target=/Summa-Actors \
--mount type=bind,source=${SUMMA},target=/SUMMA summa-sundials:latest
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