-
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
Complete variant for the elastic agent is not generating the right binaries #27608
Comments
Pinging @elastic/uptime (Team:Uptime) |
Pinging @elastic/agent (Team:Agent) |
I'm currently sending a fix, as I reproduced and fixed it locally |
What surprises me even more is that the unified release process does contain the three artifacts: https://artifacts-api.elastic.co/v1/search/8.0.0-SNAPSHOT/elastic-agent?x-elastic-no-kpi=true If you wget the elastic-agent default image, and then docker.load it, then you'll have the default image loaded in your Docker engine. cc/ @elastic/observablt-robots |
Hmmm, running
|
Yep, docker images seem correct. I found the issue in the tar.gz representation of the docker images. |
This interpolates the `variant` into the format string for .tar.gz docker artifacts. In also correctly handles the case where the format string is used in contexts without variant present, such as darwin. We still need an empty value for the templating language not to error. Fixes elastic#27608
@mdelapenya see my fix here: #27621 , I'd appreciate a review if possible. It works locally! |
Post FF testing LGTM |
When running
mage package
, the binaries generated by the elastic-agent are incorrect:I suspect that this has been caused by #27350 and #27052
Steps to reproduce
cd x-pack/elastic-agent
PLATFORMS="linux/amd64" mage package
(Narrowing down the process to build only one platform)Expected behaviour
Three docker image binaries are generated, one per variant (default, ubi8 and complete), being the complete one the heaviest in weight (contains node runtime plus libs).
$ ls -l x-pack/elastic-agent/build/distributions | grep docker -rw-r--r-- 1 mdelapenya staff 244359238 26 Aug 13:51 elastic-agent-8.0.0-linux-amd64.docker.tar.gz -rw-r--r-- 1 mdelapenya staff 175 26 Aug 13:51 elastic-agent-8.0.0-linux-amd64.docker.tar.gz.sha512 -rw-r--r-- 1 mdelapenya staff 614539725 26 Aug 13:55 elastic-agent-complete-8.0.0-linux-amd64.docker.tar.gz -rw-r--r-- 1 mdelapenya staff 184 26 Aug 13:56 elastic-agent-complete-8.0.0-linux-amd64.docker.tar.gz.sha512 -rw-r--r-- 1 mdelapenya staff 163226167 26 Aug 13:50 elastic-agent-ubi8-8.0.0-linux-amd64.docker.tar.gz -rw-r--r-- 1 mdelapenya staff 180 26 Aug 13:50 elastic-agent-ubi8-8.0.0-linux-amd64.docker.tar.gz.sha512
When you docker load the default image, the default image is loaded into the Docker engine:
Current behaviour
Two docker image binaries are generated, one per variant (default and ubi8, only).
$ ls -l x-pack/elastic-agent/build/distributions | grep docker -rw-r--r-- 1 mdelapenya staff 608875722 26 Aug 12:57 elastic-agent-8.0.0-linux-amd64.docker.tar.gz -rw-r--r-- 1 mdelapenya staff 175 26 Aug 12:58 elastic-agent-8.0.0-linux-amd64.docker.tar.gz.sha512 -rw-r--r-- 1 mdelapenya staff 163226167 26 Aug 12:56 elastic-agent-ubi8-8.0.0-linux-amd64.docker.tar.gz -rw-r--r-- 1 mdelapenya staff 180 26 Aug 12:56 elastic-agent-ubi8-8.0.0-linux-amd64.docker.tar.gz.sha512
When you docker load the default image, the complete image is loaded into the Docker engine:
The text was updated successfully, but these errors were encountered: