-
Notifications
You must be signed in to change notification settings - Fork 16
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
57ef228
commit 34cd088
Showing
4 changed files
with
50 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
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,5 @@ | ||
# Build base image | ||
docker build -t 1d_mom6_cobalt:base . | ||
|
||
# run docker container image in interactive mode | ||
docker run --mount "type=bind,source=/Users/$USER/work,target=/work" -it 1d_mom6_cobalt:base bash --login |
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,5 @@ | ||
# build singularity image | ||
singularity build 1d_mom6_cobalt.sif ./build_1d_mom6_cobalt.def | ||
|
||
# Run the singularity container image in interactive mode | ||
singularity shell --fakeroot -B /home/$USER/work:/work -e 1d_mom6_cobalt.sif |
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,37 @@ | ||
BootStrap: docker | ||
From: ubuntu:22.04 | ||
|
||
%environment | ||
export DEBIAN_FRONTEND=noninteractive | ||
export PATH=/opt/bin:$PATH | ||
|
||
%post | ||
apt update && \ | ||
apt install -y \ | ||
make \ | ||
vim \ | ||
curl \ | ||
wget \ | ||
imagemagick \ | ||
gfortran \ | ||
git \ | ||
tcsh \ | ||
netcdf-bin \ | ||
libnetcdf-dev \ | ||
libnetcdff-dev \ | ||
openmpi-bin \ | ||
libopenmpi-dev \ | ||
&& apt clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
mkdir -p /opt | ||
|
||
cd /opt && git clone https://github.com/NOAA-GFDL/FRE-NCtools.git | ||
cd /opt/FRE-NCtools && autoreconf -i && mkdir build && cd build \ | ||
&& ../configure --prefix=/opt \ | ||
&& make && make install | ||
|
||
rm -rf /opt/FRE-NCtools | ||
|
||
%labels | ||
Author "Yi-cheng Teng" |