-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 docker images when building packages #8898
Conversation
ef06547
to
ae4239a
Compare
4c3c9e4
to
d72283c
Compare
@andrewkroh @graphaelli some sanity tests are still pending, but I think this is ready for a first review, it'd be nice if you could give it another look. Thanks! |
@@ -457,3 +502,122 @@ func readZip(zipFile string) (*packageFile, error) { | |||
|
|||
return p, nil | |||
} | |||
|
|||
func readDocker(dockerFile string) (*packageFile, *dockerInfo, error) { |
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.
Interesting 👍
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.
Thanks for the repo and ports updates, they worked as expected. No other changes from APM server are needed.
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.
Nice work.
Are there any plans to add some additional tests that use the built containers? Like system tests that use the containers. I haven't thought through what would be useful to test so I'm just wondering.
@andrewkroh thanks for the review, I have addressed your comments. Regarding additional tests, it could be possible, we could maybe modify system tests to use docker, so the docker image is also tested with them, but I don't have any plan for it at the moment. |
Include generation of docker images in the process of building the rest of released packages by extending `mage package`. (cherry picked from commit 9294384)
…uilding packages (#9433) Include generation of docker images in the process of building the rest of released packages by extending `mage package`. (#8898) (cherry picked from commit 9294384) Tag container images with snapshot information (#9063) (cherry picked from commit 1dd4fbf) * Compress docker artifacts with gzip (#9223) (cherry picked from commit 675f2b0) Co-authored-by: Gil Raphaelli <g@raphaelli.com>
… docker images when building packages (elastic#9433) Include generation of docker images in the process of building the rest of released packages by extending `mage package`. (elastic#8898) (cherry picked from commit 9294384) Tag container images with snapshot information (elastic#9063) (cherry picked from commit 1dd4fbf) * Compress docker artifacts with gzip (elastic#9223) (cherry picked from commit 675f2b0) Co-authored-by: Gil Raphaelli <g@raphaelli.com>
Include generation of docker images in the process of building the rest of released packages by extending `mage package`.
… docker images when building packages (elastic#9433) Include generation of docker images in the process of building the rest of released packages by extending `mage package`. (elastic#8898) (cherry picked from commit 9294384) Tag container images with snapshot information (elastic#9063) (cherry picked from commit 1dd4fbf) * Compress docker artifacts with gzip (elastic#9223) (cherry picked from commit 675f2b0) Co-authored-by: Gil Raphaelli <g@raphaelli.com>
Include generation of docker images in the process of building the rest of released packages by extending
mage package
. Ideally it could be extended to build images for windows too.Dockerfile, entry point templates and default beats configurations based on current ones.
Pending:
docker save
or similarheartbeat-elastic
🤔 it should beheartbeat
as other beatsInstall libsystemd in journalbeat(systemd-libs already installed in centos:7 base image)