Skip to content

Update base Docker image for building Feast Serving image#535

Merged
feast-ci-bot merged 2 commits intofeast-dev:masterfrom
davidheryanto:fix-docker-build
Mar 16, 2020
Merged

Update base Docker image for building Feast Serving image#535
feast-ci-bot merged 2 commits intofeast-dev:masterfrom
davidheryanto:fix-docker-build

Conversation

@davidheryanto
Copy link
Copy Markdown
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
Copy Markdown
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

Details 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
Copy Markdown
Collaborator

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

@davidheryanto
Copy link
Copy Markdown
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
Copy Markdown
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