-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6983ef0
commit 6c25f95
Showing
3 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Use the latest LTS version of Ubuntu as the base image | ||
FROM ubuntu:22.04 | ||
|
||
# Set environment variables to prevent prompts during package installation | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update package list and install necessary packages | ||
RUN apt-get update && apt-get install -y \ | ||
gfortran \ | ||
mpich \ | ||
libblas-dev \ | ||
wget \ | ||
git \ | ||
make \ | ||
vim \ | ||
unzip \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Set a working directory inside the container | ||
WORKDIR /workspace | ||
|
||
# Create a bin directory | ||
RUN mkdir -p /workspace/bin | ||
RUN echo 'export PATH="$PATH:/workspace/bin"' >> /root/.bashrc | ||
|
||
# Download the specified file | ||
RUN wget https://www.ssisc.org/lis/dl/lis-2.1.6.zip | ||
|
||
# Unzip the downloaded file | ||
RUN unzip lis-2.1.6.zip && rm lis-2.1.6.zip | ||
|
||
# Install LIS library | ||
RUN cd lis-2.1.6 && ./configure --enable-mpi --enable-f90 && make && make install | ||
|
||
# Download Andromeda | ||
RUN git clone https://github.com/WildSmilodon/Andromeda.git | ||
|
||
# Compile Andromeda | ||
RUN cd Andromeda/src && make | ||
RUN cp Andromeda/bin/Andromeda bin/Andromeda-1.7-o | ||
|
||
# Default command to start a bash shell | ||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters