question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

optimize docker images

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jornhcommented, Sep 26, 2019

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.

0reactions
jornhcommented, Oct 21, 2019

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found