Repository navigation
Add Feast CI image and infra housekeeping #558
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| FROM maven:3.6-jdk-11 | ||
|
|
||
| ENV PYTHON_VERSION 3.7 | ||
| ENV GOLANG_VERSION 1.14.1 | ||
|
|
||
| RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" \ | ||
| | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | ||
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | ||
| | apt-key --keyring /usr/share/keyrings/cloud.google.gpg \ | ||
| add - && apt-get update -y && apt-get install google-cloud-sdk -y | ||
|
|
||
| # Update dependencies | ||
| RUN apt-get update | ||
|
|
||
| # Install Make and Python | ||
| RUN apt-get install -y build-essential curl python${PYTHON_VERSION} \ | ||
| python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-distutils && \ | ||
| update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \ | ||
| update-alternatives --set python /usr/bin/python${PYTHON_VERSION} && \ | ||
| curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
| python get-pip.py --force-reinstall && \ | ||
| rm get-pip.py | ||
|
|
||
|
|
||
| # Install Go | ||
| RUN curl -O https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz && \ | ||
| tar -xvf go${GOLANG_VERSION}.linux-amd64.tar.gz && chown -R root:root ./go && mv go /usr/local | ||
| ENV GOPATH /go | ||
| ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH | ||
|
|
||
| # Add contents of local Feast repository to image (execute from Feast root) | ||
| COPY . /feast/ | ||
|
|
||
| # Install all dependencies | ||
| RUN cd /feast && make install-ci-dependencies |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was
install-java-ci-dependenciesneeded here too?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's "unimplemented" right now because we actually need some build artifacts like
ingestionto be available as dependencies. So if we runinstall-java-ci-dependenciesit doesn't actually work. Not sure if there is a nice solution that doesn't involve actually buildingingestionanddatatypes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html#excludeGroupIds might be a possible solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I see, so you want this image to cache dependencies, ideally.
Good news! After a decade of the dependency plugin not supporting multi-module builds well for go-offline, a swell fellow fixed it a few months back. The fix is in the latest release, it's working for me after updating, sans
excludeGroupIds.I'll try to send a patch when I have a minute to actually test it with the built Docker image, but aside from updating this makefile the patch is just to bump the existing version
3.1.1in the mainpom.xml<pluginManagement>section to3.1.2.Might need to remove the
cds into the subdirectories, I don't think Maven deals with it well—justmvn dependency:go-offlinefrom top level should do it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above doesn't work, also tried https://github.com/qaware/go-offline-maven-plugin
I think I will just use
verifyfor now