-
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 cloud docker images for elastic-agent #28134
Build cloud docker images for elastic-agent #28134
Conversation
dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl
Outdated
Show resolved
Hide resolved
dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl
Outdated
Show resolved
Hide resolved
/packaging |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
/test |
Elastic-Agent package stage in the
$ docker pull docker.elastic.co/observability-ci/elastic-agent-cloud:pr-28134
$ docker run --rm -ti --entrypoint /bin/bash docker.elastic.co/observability-ci/elastic-agent-cloud:pr-28134
bash-4.2$ ls -l /opt/
total 273288
-rwxr-xr-x 1 root root 117717984 Sep 27 19:51 filebeat
-rwxr-xr-x 1 root root 162126224 Sep 27 20:04 metricbeat
bash-4.2$ /opt/filebeat
Exiting: error loading config file: stat filebeat.yml: no such file or directory
bash-4.2$ /opt/metricbeat
Exiting: error loading config file: stat metricbeat.yml: no such file or directory |
/test |
/package |
….com:v1v/beats into feature/support-cloud-specific-docker-images * 'feature/support-cloud-specific-docker-images' of github.com:v1v/beats: Apply suggestions from code review
Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
@ruflin , IIRC, you mentioned that I could test those cloud docker images locally, any hints how I can do it? At the moment, the |
I sent you the docs link via private slack channel as it is in private repo. If you need help on the setup, please ping @michel-laterman , @stuartnelson3 or @simitt as they have done it in the past. |
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.
This LGreatTM, although I'd appreciate the feedback from any Beats maintainer, more specifically related to the build system.
This comment has been minimized.
This comment has been minimized.
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.
The paths for mb/fb extraction don't look right to me. Could you please double-check?
dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl
Outdated
Show resolved
Hide resolved
dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl
Outdated
Show resolved
Hide resolved
/package |
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.
A non-binding LGTM after a round of manual testing I've done with @v1v. As I've spoken to the team, I'd like to see:
2021-10-05T12:22:00.360Z ERROR cmd/run.go:122 failed to invoke rollback watcher: fork/exec /app/elastic-agent/data/data/elastic-agent-c21249/elastic-agent: no such file or directory
in a separate issue prior to merging this. FYSA @simitt
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.
Change looks good to me!
@v1v can we get a link back to any meta or feature ticket this relates to? I'm curious to review specs / AC on what is needed. Are you only intending to include Metricbeat/Filbebeat in the build, and not more? I'd like to see commitment (even if downstream is ok) as to where it is consumed in tests (on Cloud side?) to know the new artifact is covered |
@EricDavisX, I just put you in the loop in the internal issue, since it's not public as far as I know.
Nothing else, in the description there is the snippet of the Dockerfile that the cloud image uses.
I don't know if the Unified Release (UR) process does some other validations, but in a nutshell, this new docker images, is processed by the UR and copy some tar.gz files. I tried to describe what I did to test this docker image with the needed artifacts in the internal issue. Besides, the cloud mounts the /app volume and some other things, again outside of the scope of this particular issue. |
@v1v did you have time to double check @cachedout comment? |
He addressed my concerns. I am just trying to find a bit of time to test this change locally before finishing my review. |
@jlind23, thanks for asking, I did it in 2d8119d and @mieciu and I verified that this new docker image ran in a local ECE environment. |
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.
Tested and looks good. Nice job! 🥇
* upstream/master: (73 commits) Remove GCP support from Functionbeat (elastic#28253) Move labels and annotations under kubernetes.namespace. (elastic#27917) Update go release version 1.17.1 (elastic#27543) Osquerybeat: Runner and Fetcher unit tests (elastic#28290) Osquerybeat: Improve handling of osquery.autoload file, allow customizations (elastic#28289) seccomp: allow clone3 syscall for x86 (elastic#28117) packetbeat/protos/dns: don't render missing A and AAAA addresses from truncated records (elastic#28297) [7.x] [DOCS] Update api_key example on elasticsearch output (elastic#28288) [cloud][docker] use the private docker namespace (elastic#28286) Update aws-lambda-go library version to 1.13.3 (elastic#28236) Deprecate common.Float (elastic#28280) Filebeat: Change compatibility test stage to test against previous minor instead of 7.11 (elastic#28274) x-pack/filebeat/module/threatintel/misp: add support for secondary object attribute handling (elastic#28124) Explicitly pass http config to doppler consumer (elastic#28277) processors/actions/add_fields: Do not panic if event.Fields is nil map (elastic#28219) Resolved timestamp for defender atp (elastic#28272) [Winlogbeat] Tolerate faults when Windows Event Log session is interrupted (elastic#28191) [elastic-agent] proxy requests to subprocesses to their metrics endpoints (elastic#28165) Build cloud docker images for elastic-agent (elastic#28134) Upgrade k8s go-client library (elastic#28228) ...
What does this PR do?
Build cloud docker images for elastic-agent that requires the
metricbeat
andfilebeat
folder in the /opt folder. In addition, to change the entrypoint.Why is it important?
Provide docker images for the cloud as part of the Beats projects, as part of the cloud initiative.
Cloud dockerfile
Test
Then, I validated the
filebea
t andmetricbeat
folders are stored in the /opt folder:Diff