Skip to content
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

[backend] refactor docker container to builder pattern #3012

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

MoralCode
Copy link

@MoralCode MoralCode commented Feb 23, 2025

Description
This change refactors the docker container for the backend to use a "builder container" pattern that attempts to help optimize the amount of disk space required to build the container

This PR contributed towards #3006

As noted in the linked issue, this PR still refactors, but effectively removes the rust build step since there don't seem to be any dependencies written in rust.

Testing

Since im still trying to find ways to optimize the build, I haven't yet run a full instance of augur on my machine

Notes for Reviewers
TODO:

  • Refactor the graphical dockerfile to be based on this main one since they're largely the same
  • pull golang dependencies from the golang package repository where possible to (hopefully) avoid the need to build from source entirely
  • move the building of all the python sub-packages into another builder container so that the build dependencies dont need to stick around either

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
This fixes an issue with scc where the latest version requires a golang update to build.

This also prevents the same happening to scorecard in future

Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
@MoralCode MoralCode force-pushed the backend-docker-builder branch from a6ab270 to 022ac35 Compare February 23, 2025 14:04
Signed-off-by: Adrian Edwards <adrian@adriancedwards.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant