Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# cmaq-docker
Community Multiscale Air Quality Modeling System (CMAQ) docker image

To install Docker on Centos…



```

# info from https://docs.docker.com/engine/install/centos/

sudo yum install -y yum-utils

sudo yum-config-manager \

--add-repo \

https://download.docker.com/linux/centos/docker-ce.repo

sudo yum install docker-ce docker-ce-cli containerd.io

# add docker group and put centos user in it

sudo groupadd docker

sudo usermod -aG docker centos

# enable and start docker service

sudo systemctl enable docker

sudo systemctl start docker

```

After all that you’ll have to log out the centos user and back in so that the centos user’s new addition to the docker group will take effect.



Then scp the cmaq.tar.gz file to the EC2 VM at /home/centos/ and extract, then build the Docker image…

```

cd /home/centos

tar -xvzf cmaq.tar.gz

cd cmaq

./build-docker-image.sh

# wait a while (about 45 minutes or so)

# Create cmaq container and get a shell in it.

./run_cmaq.sh

# in container

cd CCTM/scripts

# adjust CPUs

vi run_cctm_singularity.csh

# run benchmark

./run_cctm_singularity.csh
1 change: 1 addition & 0 deletions run_cctm_conus.csh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ if ( ! $?CTM_ABFLUX ) setenv CTM_ABFLUX N
if ( ! $?CTM_BIOGEMIS ) setenv CTM_BIOGEMIS N
if ( ! $?CTM_OCEAN_CHEM ) setenv CTM_OCEAN_CHEM N


if ( ! $?EXECUTION_ID ) setenv EXECUTION_ID "CMAQ_CCTM${VRSN}_`id -u -n`_`date -u +%Y%m%d_%H%M%S_%N`"

@ RUN_DAYS = ${RUN_LENGTH} / 240000
Expand Down