Skip to content

Initial ngen-cal calibration worker image#303

Merged
robertbartel merged 3 commits intoNOAA-OWP:masterfrom
robertbartel:i/old240/cal-docker-image
Mar 22, 2023
Merged

Initial ngen-cal calibration worker image#303
robertbartel merged 3 commits intoNOAA-OWP:masterfrom
robertbartel:i/old240/cal-docker-image

Conversation

@robertbartel
Copy link
Copy Markdown
Contributor

Initial Docker image and build configuration for worker node in Nextgen calibration jobs using the ngen-cal utility.

Note that this PR partially replaces #240, in that it is composed of changes extracted from that PR for easier reviewing and merging.

aaraney and others added 3 commits March 15, 2023 11:24
Adding "service" config to Docker build-time config file for building
the ngen-calibration worker image.
Updating Dockerfile for ngen-calibration to support specifying a tag for
the base ngen image to be used, if something other than "latest" is
required.
@robertbartel robertbartel added enhancement New feature or request maas MaaS Workstream labels Mar 15, 2023
Copy link
Copy Markdown
Member

@aaraney aaraney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and is okay to merge, I think there are a few improvements that could be made but im not sure they are worth addressing just yet. I noted these areas in the comments.

#REPO_URL: ${NGEN_REPO_URL?No NGen repo url configured}
NGEN_CAL_BRANCH: ${NGEN_CAL_BRANCH:-master}
NGEN_CAL_COMMIT: ${NGEN_CAL_COMMIT}
#TROUTE_REPO_URL: ${TROUTE_REPO_URL?No t-route repo url configured}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are presumedly coming from the ngen image, I think we can just remove them for now? In the future we will need to revisit this when we support parallel calibration / calibration with routing. We will almost want some kind of build matrix for ngen images and calibration images to cover all the realistic ngen build configurations.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will almost want some kind of build matrix for ngen images and calibration images to cover all the realistic ngen build configurations.

Indeed, we are going to need to expand our image variant support. I expected it is reasonably likely that we will change things in the future in a way that will need these to still be here.

# Change permissions for entrypoint and make sure dataset volume mount parent directories exists
RUN chmod +x ${WORKDIR}/entrypoint.sh \
&& for d in ${DATASET_DIRECTORIES}; do mkdir -p /dmod/datasets/${d}; done \
&& for d in noah-owp-modular topmodel cfe sloth 'evapotranspiration/evapotranspiration'; do \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to make this configuration by specifying these as a build time ARG. Thoughts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not totally sure I follow, but I think it's something that can wait until the inevitable future revisions to this.

@robertbartel robertbartel merged commit ccdce97 into NOAA-OWP:master Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request maas MaaS Workstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants