Internal: Remove base environment from Docker Conda images #2249
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
alert: NEED CYCLE ASSIGNMENT
Need to assign to a release development cycle
component: CI/CD
Continuous integration and deployment issues
component: docker
component: testing
Software testing issue
priority: medium
Medium Priority
requestor: METplus Team
METplus Development Team
type: task
An actionable item of work
Milestone
Scripts in internal/scripts/docker_env are used to create Docker images that contain Conda environments used for use case tests that require additional python packages. Many of the conda environments are created by copying (cloning) an existing environment (like metplus_base or py_embed_base) and adding packages. The original base environment still exists in the Docker image. Some of these conda environments, like metplotpy, take up a lot of space and cause the Docker image to be very large even though the base image is not used.
Describe the Task
Add logic to the Dockerfiles in internal/scripts/docker_env to remove the conda environment used to create a new environment after the new one is created. Consider creating a GitHub Action workflow that can be triggered through the web UI to build and push these images so they can be run by other developers.
Time Estimate
~1 day
Sub-Issues
Consider breaking the task down into sub-issues.
Relevant Deadlines
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.
Task 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: