mozilla-services / kinto-dist

Kinto Distribution for Mozilla Services
Apache License 2.0
12 stars 11 forks source link

Refactor Docker setup for smaller/ faster builds #1937

Closed grahamalama closed 2 years ago

grahamalama commented 2 years ago

Also adds build script to build and tag dist, test images.

Size comparison of builds. Images with -before were built with code present in main (prior to this PR):

kinto               build          71db14f4f99a   5 minutes ago    349MB
kinto               tests          0debcb48417c   35 minutes ago   371MB
kinto               tests-before   2f90fb699378   35 minutes ago   1.4GB
kinto               build-before   8de540b3e6b2   37 minutes ago   1.37GB

Also, compare build times between the test suite run on the main branch before this PR and after.

Before:

build_test_publish   4m 37s
integration test     3m 2s

After:

build_test_publish   1m 59s
integration test     1m 49s
grahamalama commented 2 years ago

Thanks for the approvals! I'm going to squash these commits then merge with bors

grahamalama commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: