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

Cross-compilation on Mac OS for building Docker container #27

Open
samgiles opened this issue Jun 29, 2016 · 2 comments
Open

Cross-compilation on Mac OS for building Docker container #27

samgiles opened this issue Jun 29, 2016 · 2 comments

Comments

@samgiles
Copy link
Contributor

Instead of building inside the docker container, and then deploying - we should cross compile (or delete intermediate layers in the docker image?) so that the final image is minimal. Maybe switch from debian to the alpine base container.

@samgiles samgiles mentioned this issue Jun 29, 2016
@michielbdejong
Copy link
Contributor

Right, we could publish the built executable on some URL, and then just write a Dockerfile that wgets it.

@michielbdejong
Copy link
Contributor

One advantage of building inside the Dockerfile is that this way the repo is self-documented by its Dockerfile: you only need Docker to be able to build. For instance: the Dockerfile now explicitly picks Rust nightly-2016-03-07; if you publish a built executable, then this information about the Rust version needs to be human-readable somewhere in the readme.

IMHO the ability to easily build the registration server is more important than disk space used due to image size, but I also understand if you think otherwise.

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

No branches or pull requests

2 participants