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

build image using multi-stage builds #70

Closed
wants to merge 2 commits into from

Conversation

linki
Copy link
Member

@linki linki commented Jun 19, 2017

This uses Docker's new multi-stage dockerfiles to build.

It builds the binary inside a Docker containe and avoids cluttering the host machine with stuff. By using the new build stages this can conveniently be run with a simple docekr build.

unrelated: I consistently change any reference to the project to kube-ingress-aws-controller.

@coveralls
Copy link

coveralls commented Jun 19, 2017

Coverage Status

Coverage remained the same at 58.365% when pulling 3d34e26 on linki:multistage into bdce197 on zalando-incubator:master.

@szuecs
Copy link
Member

szuecs commented Jun 19, 2017

👍

@mikkeloscar
Copy link
Collaborator

@linki if you make a PR from a local branch then CDP will run on the PR :)

Dockerfile Outdated
WORKDIR /go/src/github.com/zalando-incubator/kube-ingress-aws-controller
COPY . .
RUN glide install --strip-vendor
RUN make build.linux
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would also run make test before the build.

Copy link
Member Author

Choose a reason for hiding this comment

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

added

@linki
Copy link
Member Author

linki commented Jun 20, 2017

@mikkeloscar Thanks, don't know why I used a fork here.

@linki linki closed this Jun 20, 2017
@linki
Copy link
Member Author

linki commented Jun 20, 2017

#72

@coveralls
Copy link

coveralls commented Jun 20, 2017

Coverage Status

Coverage remained the same at 58.365% when pulling 1d52a4f on linki:multistage into bdce197 on zalando-incubator:master.

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.

4 participants