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

Improving Dockerfiles for Rebuilds #171

Merged
merged 2 commits into from
Jun 2, 2021
Merged

Improving Dockerfiles for Rebuilds #171

merged 2 commits into from
Jun 2, 2021

Conversation

Derekt2
Copy link
Contributor

@Derekt2 Derekt2 commented Jun 1, 2021

Describe the change

  • Reduces time to REBUILD from ~8 minutes to ~11 seconds upon creating new or modifying scanner.
  • Follow's Dockerfile best practices by layer caching dependencies.
  • Should make new scanner development more efficient for editing, testing, modifying.

Describe testing procedures

  • Forked the repo, testing building with and without changes, still builds OK and is drastically faster on REBUILDS.

Sample output

  • No changes to final built images

Checklist

  • [ * ] My code follows the style guidelines of this project
  • [ * ] I have performed a self-review of and tested my code
  • [ * ] I have commented my code, particularly in hard-to-understand areas
  • [ * ] I have made corresponding changes to the documentation
  • [ * ] My changes generate no new warnings

@phutelmyer
Copy link
Contributor

phutelmyer commented Jun 2, 2021

Tested, modified, and tested again.

Original test build: 7 minutes, 22 seconds
Rebuild: 10 seconds

Everything works great.

Thanks @Derekt2 ! Great use of caching.

@phutelmyer phutelmyer merged commit 3709409 into target:master Jun 2, 2021
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.

2 participants