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

Update base Docker image for building Feast Serving image #535

Merged
merged 2 commits into from
Mar 16, 2020

Conversation

davidheryanto
Copy link
Collaborator

@davidheryanto davidheryanto commented Mar 15, 2020

What this PR does / why we need it:

  • Fix error when building Feast Serving Docker image due to non-existent base Docker image: openjdk:11-jre-alpine. Updated to openjdk:11-jre-slim
Step 7/11 : FROM openjdk:11-jre-alpine as production
manifest for openjdk:11-jre-alpine not found
  • Add clean phase before package phase for more deterministic build (in case host directory is dirty)
  • Move the downloading of grpc-health-probe in Feast Serving to build stage so the production stage does not need extra tools like wget, for slimmer production image.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


- Add clean phase before packaging for more deterministic build (in case host directory is dirty)
- Move the downloading of grpc-health-probe in Feast Serving to build stage so the production stage does not need extra tools like wget, for slimmer production image.
@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidheryanto

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@khorshuheng
Copy link
Collaborator

Can we update Dockerfile.dev as well? Otherwise lgtm.

@davidheryanto
Copy link
Collaborator Author

davidheryanto commented Mar 16, 2020

Updated thanks!

I use openjdk:11-jre vs openjdk:11-jre-slim because the one in Dockerfile.dev is not a multi stage Docker build and it needs to use wget command which openjdk:11-jre already have (versus having to apt-get install it). This makes the Dockerfile cleaner.

Also I think dev it's ok for the image size to be a bit bigger.

@khorshuheng
Copy link
Collaborator

/lgtm

@feast-ci-bot feast-ci-bot merged commit fb893de into feast-dev:master Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants