-
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
51c28fd
commit 4b295a1
Showing
1 changed file
with
13 additions
and
0 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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
# Build base image | ||
```console | ||
mkdir work && cd work | ||
git clone -b main [email protected]:NOAA-GFDL/CEFI-regional-MOM6.git --recurtive | ||
cd CEFI-regional-MOM6/ci/docker | ||
docker build -t 1d_mom6_cobalt:base . | ||
``` | ||
|
||
# run docker container image in interactive mode | ||
```console | ||
docker run --mount "type=bind,source=/Users/$USER/work,target=/work" -it 1d_mom6_cobalt:base bash --login | ||
``` | ||
|
||
# Build MOM6-SIS2-cobalt and run 1D case within docker container | ||
```console | ||
cd /work/CEFI-regional-MOM6/builds | ||
./linux-build.bash -m docker -p linux-gnu -t prod -f mom6sis2 | ||
cd ../exps | ||
wget https://gfdl-med.s3.amazonaws.com/OceanBGC_dataset/1d_datasets.tar.gz && tar -zxvf 1d_datasets.tar.gz && rm -rf 1d_datasets.tat.gz | ||
cd OM4.single_column.COBALT | ||
mpirun -np 1 --allow-run-as-root ../../builds/build/docker-linux-gnu/ocean_ice/prod/MOM6SIS2 | ||
``` |