optimize docker images
See original GitHub issueI would like to introduce a few optimizations of Docker images across the three service repos:
- Reduce image size by switching to
python:3-slim
as base image, e.g. Airflow does this as well - this means even quicker Quickstart - Increase caching to speed up builds (mostly by eliminating pypi/npm dependency pulls and builds)
- Add Gunicorn similar to what’s already introduced in https://github.com/lyft/amundsenmetadatalibrary/pull/66 to allow for a more production ready config (Werkzeug still possible if someone is using it)
This issue mostly to have a common place to link to for discussion etc.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to Reduce Docker Image Size: 6 Optimization Methods
How to Reduce Docker Image Size? · Method 1: Use Minimal Base Images · Method 2: Use Docker Multistage Builds · Method 3:...
Read more >8 tricks to optimize your Docker image size - AugmentedMind.de
Docker optimization guide: 8 tricks to optimize your Docker image size · Introduction · Choose a suitable base image · Multi-stage builds.
Read more >Tips for optimizing Docker builds - CircleCI
Optimizing the image build process · Ephemeral containers · Don't install unnecessary packages · Implement .dockerignore files · Sort multi-line ...
Read more >Docker Image Optimization: from 1.16GB to 22.4MB
Docker Image Optimization : from 1.16GB to 22.4MB · Flexible: Even the most complex applications can be containerized. · Lightweight: Containers ...
Read more >Optimizing Docker Images - Linux Hint
Optimizing Docker Images · Select Proper Base Images · Use Multi-stage Builds · Reduce Number of Layers · Build Custom Base Images ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
According to https://hub.docker.com/r/amundsendev/amundsen-metadata/tags version 1.1.1 of metadata is 72 MB in compressed size. In comparison v1.0.19 was 347 MB.
This means only 1/4 download size for Amundsen Quickstart images.
Merge of PR #123 is set up to automatically close it. So we’re close now with FE 1.1.0 tagged and pushed to docker!