-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-build: reduce all the reva* image sizes
- From 1.94GB to 40MB, using golang:alpine as builder and scratch as base for the binary - 'latest-eos' is still bloated due to being based on eos/slim REPOSITORY TAG IMAGE ID CREATED SIZE alfageme/revad latest fee1a27ac5f0 4 minutes ago 40MB alfageme/revad latest-eos 02fd02258069 5 hours ago 2.43GB alfageme/reva latest b830b5559200 5 hours ago 16MB
- Loading branch information
1 parent
69bd21f
commit e9d0497
Showing
5 changed files
with
81 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Enhancement: Reduce the size of all the container images built on CI | ||
|
||
Previously, all images were based on golang:1.16 which is built from Debian. | ||
Using 'scratch' as base, reduces the size of the artifacts well as the attack | ||
surface for all the images, plus copying the binary from the build step ensures | ||
that only the strictly required software is present on the final image. | ||
For the revad images tagged '-eos', eos-slim is used instead. It is still large | ||
but it updates the environment as well as the EOS version. | ||
|
||
https://github.com/cs3org/reva/pull/1705 |