Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dockerfile #58

Merged
merged 6 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM continuumio/miniconda3

ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y
RUN apt-get upgrade -y

# install dependencies
RUN apt-get install -y libgl1-mesa-glx \
libgl1-mesa-dev \
libglu1-mesa-dev \
freeglut3-dev \
libosmesa6 \
libosmesa6-dev \
libgles2-mesa-dev \
curl \
wget \
libx11-6 \
libxt6 \
libgl1 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxkbcommon-x11-0 \
libxcb-randr0 \
libxcb-xinerama0 \
libxm4 \
libtiff5 \
libxcursor1 \
libxinerama1

# download cubit
RUN wget -O /cubit.deb https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/Releases/Linux/Coreform-Cubit-2023.11%2B43088-Lin64.deb

# install cubit
RUN dpkg -i cubit.deb
ENV PYTHONPATH=/opt/Coreform-Cubit-2023.11/bin/

# parastell env
COPY ./environment.yml /environment.yml
RUN conda env create -f environment.yml
Edgar-21 marked this conversation as resolved.
Show resolved Hide resolved
RUN echo "source activate parastell_env" >> ~/.bashrc

WORKDIR /opt

# install pystell_uw
RUN git clone https://github.com/aaroncbader/pystell_uw.git
ENV PYTHONPATH=$PYTHONPATH:/opt/pystell_uw

# install parastell
RUN git clone https://github.com/svalinn/parastell.git
ENV PYTHONPATH=$PYTHONPATH:/opt/parastell

WORKDIR /

1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dependencies:
- pip:
- netcdf4
- pyyaml
Edgar-21 marked this conversation as resolved.
Show resolved Hide resolved
- pytest