-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize the METviewer Docker image creation process #527
Comments
…cy versions as main_v2.1 rather than develop. Note that DockerHub already uses the hooks/build file to define the dependencies... but the SonarQube workflow actually uses the versions listed in the Dockerifle. Note that issue #527 will clean up and refine this version depedency logic.
* Per #521, migrate the changes over to a branch for main_v5.1 so that the workflow_dispatch option can become available via GitHub * Per #521, more work is needed in the DockerHub build hook. For now, switch to building against the develop version of the dependencies. * Per #521, for the main_v5.1 branch, set the METplus-Analysis dependency versions as main_v2.1 rather than develop. Note that DockerHub already uses the hooks/build file to define the dependencies... but the SonarQube workflow actually uses the versions listed in the Dockerifle. Note that issue #527 will clean up and refine this version depedency logic.
Updating the METviewer Dockerfile |
On the So the SonarQube scan time is great improved, as hoped. |
… since it differs for Dockerfile.apptainer. Also modify Dockerfile.apptainer to use the dtcenter/met-base-metviewer image.
* Per #527, try switching to met-base image * Per 527, remove yum reference since Python 3.10 is already provided in the dtcenter/met-base image * Per #527, upgrade tomcat to 9.0.89 and java to 17.0.11 * Per #527, add build_metviewer_docker.sh script and update Dockerfile.copy to call it. * Per #529, update call to build script * Per #529, migrate changes to Dockerfile * Per #572, remove geos-3.7.2 unsupported --enable-php configuration option. * Per #527, switch to using dtcenter/met-base-metviewer:v3.2 * Per #527, move configuring build.properties back into the Dockerfiles since it differs for Dockerfile.apptainer. Also modify Dockerfile.apptainer to use the dtcenter/met-base-metviewer image. * Per #526, fix syntax error in build_metviewer_docker.sh * Per #527, get docker build working for apptainer
Describe the Enhancement
These ideas arose during development for issue #521. The
sonarqube.xml
workflow uses Docker to build METviewer prior to scanning the code. Note that that image is built locally and NOT pushed up to DockerHub. However, we could add ametviewer-dev
DockerHub repo if/when needed to facilitate additional testing.METviewer currently contains 3 Dockerfile variations:
Dockerfile
,Dockerfile.copy
, andDockerfile.apptainer
. I recommend making the following enhancements to this setup.centos7
as the base image to using an updated version of thedtcenter/met-base
image (see Create adtcenter/met-base-metviewer
image to make it suitable for METviewer development and testing METbaseimage#23).internal/scripts/docker/build_metviewer_docker.sh
script and update the Dockerfiles to call it.internal/docker/hooks/build
to properly handle the version dependencies between METviewer and the METplus-Analysis tool components.testing.yml
workflow similar to the other METplus repositories to build METviewer in Docker and run a series of regression tests on the result. However, this work could also be done in a separate issue -- not done for this issue. Moved to new METviewer#539 issue.Time Estimate
2 days?
Sub-Issues
Consider breaking the enhancement down into sub-issues.
None needed.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
dtcenter/met-base-metviewer
image to make it suitable for METviewer development and testing METbaseimage#23.Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: