Skip to content
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

Dockerfile: incude tetragon version in the image #329

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Aug 17, 2022

Currently, tetragon images do not incude the version. This is because we
generate the version using git, and .git is in .dockerignore so it will
not be copied over when we are bullding the image.

Fix this by passing an appropriate build argument to docker build.

Tested using:
$ make image
$ docker run -it --entrypoint /bin/sh cilium/tetragon:latest
/ # /usr/bin/tetragon
time="2022-08-17T09:57:07Z" level=info msg="Starting tetragon" version=v0.8.0-478-g30eb03fbf
...

Signed-off-by: Kornilios Kourtis [email protected]

Currently, tetragon images do not incude the version. This is because we
generate the version using git, and .git is in .dockerignore so it will
not be copied over when we are bullding the image.

Fix this by passing an appropriate build argument to docker build.

Tested using:
$ make image
$ docker run -it  --entrypoint /bin/sh cilium/tetragon:latest
/ # /usr/bin/tetragon
time="2022-08-17T09:57:07Z" level=info msg="Starting tetragon" version=v0.8.0-478-g30eb03fbf
...

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt requested a review from a team as a code owner August 17, 2022 10:00
@kkourt kkourt requested a review from kaworu August 17, 2022 10:00
@kkourt kkourt merged commit 8aa48fc into main Aug 17, 2022
@kkourt kkourt deleted the pr/kkourt/fix-version branch August 17, 2022 16:14
@kaworu
Copy link
Member

kaworu commented Aug 17, 2022

@kkourt s/incude/include/ in the commit message?
EDIT: ouch too late sorry 😅

@kkourt
Copy link
Contributor Author

kkourt commented Aug 17, 2022

@kkourt s/incude/include/ in the commit message? EDIT: ouch too late sorry sweat_smile

😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants