Skip to content

Commit

Permalink
Modify copying of ParaStell in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
connoramoreno committed Apr 25, 2024
1 parent 7750c82 commit 2c5f811
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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
# Install dependencies
RUN apt-get install -y libgl1-mesa-glx \
libgl1-mesa-dev \
libglu1-mesa-dev \
Expand All @@ -30,33 +30,32 @@ RUN apt-get install -y libgl1-mesa-glx \
libxcursor1 \
libxinerama1

# download cubit
# Download Coreform 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
# Install Cubit
RUN dpkg -i cubit.deb
ENV PYTHONPATH=/opt/Coreform-Cubit-2023.11/bin/
COPY ./rlmcloud.in /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.in

RUN mkdir -p /opt/etc
RUN cp /root/.bashrc /opt/etc/bashrc

# parastell env
# Install Python dependencies in parastell env conda environment
COPY ./environment.yml /environment.yml
RUN conda env create -f environment.yml
RUN echo "conda activate parastell_env" >> /opt/etc/bashrc

WORKDIR /opt

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

WORKDIR /

from parastell-deps as parastell

# install parastell
RUN mkdir parastell
COPY . parastell/
# Install ParaStell
COPY . parastell
ENV PYTHONPATH=$PYTHONPATH:/opt/parastell

0 comments on commit 2c5f811

Please sign in to comment.