Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Improve the docker infra #348

Merged
merged 1 commit into from
Mar 26, 2020
Merged

Improve the docker infra #348

merged 1 commit into from
Mar 26, 2020

Conversation

little-dude
Copy link
Contributor

@little-dude little-dude commented Mar 26, 2020

The image we currently produce is over 4GB large. In order to reduce
this, we perform the compilation in a build container, and just copy
the coordinator and aggregator binaries to the final image.

This commit also removes the dependency vendoring. The main reason for
having it was to cache the dependencies. But that doesn't cache the
builds. Instead we use cargo fetch and cargo build on an empty
project that contains all our dependencies to force cargo to cache
them.

Finally, we split the images:

  • an image to upload to docker hub, that contains a release build
  • an image for development that contains a debug build as well as some
    dev tools (Valgrind)

The image we currently produce is over 4GB large. In order to reduce
this, we perform the compilation in a build container, and just copy
the coordinator and aggregator binaries to the final image.

This commit also removes the dependency vendoring. The main reason for
having it was to cache the dependencies. But that doesn't cache the
builds. Instead we use `cargo fetch` and `cargo build` on an empty
project that contains all our dependencies to force cargo to cache
them.

Finally, we split the images:

- an image to upload to docker hub, that contains a release build
- an image for development that contains a debug build as well as some
  dev tools (Valgrind)
@little-dude little-dude changed the title wip: improve docker infra Improve the docker infra Mar 26, 2020
@little-dude little-dude merged commit 8a9137c into master Mar 26, 2020
@little-dude little-dude deleted the dockerfile branch March 26, 2020 14:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants