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

Reduced docker image size by 800mb #402

Merged
merged 4 commits into from
Apr 21, 2020
Merged

Reduced docker image size by 800mb #402

merged 4 commits into from
Apr 21, 2020

Conversation

woody-apple
Copy link
Contributor

Problem

Builds in Travis are slow, as they seem to rate limit network bandwidth to docker hub... images can't be cached, so we should start to reduce image size if possible. Opening up an issue to generally do this, but this is a good first start.

More improvements needed here: #401

Summary of Changes

Clean up some caches, and delete zips that are large.

@woody-apple
Copy link
Contributor Author

Note to self: Why is travis not running here...?

@woody-apple
Copy link
Contributor Author

So weird, here it is: https://travis-ci.com/github/project-chip/connectedhomeip

Comment on lines +10 to +27
git \
curl \
jq \
make \
autoconf \
automake \
libtool \
pkg-config \
g++ \
clang-9 \
clang-format-9 \
clang-tidy-9 \
lcov \
shellcheck \
libssl-dev \
unzip \
wget \
libmbedtls-dev \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this indentation from restyled? I had it this way to distinguish these are arguments to the previous command...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's from the standard VS Code docker file linter, I understand manual edits got here, but we need to have a way to codify these changes and automate the linting. I couldn't find any linters that were standard that can parse these chained commands well in a Dockerfile. If there's some you can find, please open an issue and I'll happily integrate it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe machines can't be trusted with human<=>human comms ;)

Copy link
Contributor

@anush-apple anush-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@woody-apple woody-apple merged commit b3cd438 into project-chip:master Apr 21, 2020
@woody-apple woody-apple deleted the docker-image-size branch May 8, 2020 02:05
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.

7 participants