Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Jan 31, 2024
1 parent 51c28fd commit 4b295a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ci/docker/README.md
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
```

0 comments on commit 4b295a1

Please sign in to comment.