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

Docker images are built without version details #121

Open
06kellyjac opened this issue Oct 13, 2020 · 6 comments
Open

Docker images are built without version details #121

06kellyjac opened this issue Oct 13, 2020 · 6 comments

Comments

@06kellyjac
Copy link
Member

$ docker run --rm -i docker.io/kubesec/kubesec:v2 version
version unknown
git commit unknown
build date unknown
@controlplane-bot controlplane-bot added this to To Do in Kubesec Oct 13, 2020
@06kellyjac 06kellyjac moved this from To Do to In Progress in Kubesec Oct 13, 2020
@06kellyjac 06kellyjac moved this from In Progress to To Do in Kubesec Dec 21, 2020
@06kellyjac
Copy link
Member Author

Im going to fix this as part of #250

@06kellyjac 06kellyjac moved this from To Do to In Progress in Kubesec Nov 16, 2021
@JOSHUAJEBARAJ
Copy link

JOSHUAJEBARAJ commented Nov 16, 2021

I think both of are different issue because the go-releaser only changes the binary version that is present in the release page It won't change the binary present inside the container here

@06kellyjac
Copy link
Member Author

06kellyjac commented Nov 17, 2021

Yes I'm aware but I'm updating the version command so I'm fixing both separate issues at the same time.

The version will now list the version, full commit, source date epoch in RFC 3339 format, and unix epoch format

I'll either try plug those details into the docker build action or utilize goreleaser within the container builds

@marcio-pessoa
Copy link

This issue is still happening:

$ docker run --rm kubesec/kubesec version
Unable to find image 'kubesec/kubesec:latest' locally
latest: Pulling from kubesec/kubesec
a0d0a0d46f8b: Pull complete 
225a6626967c: Pull complete 
50cb987b6fe2: Pull complete 
404740fbf2d0: Pull complete 
66230eef9706: Pull complete 
7cd616b8ef56: Pull complete 
Digest: sha256:1085be3c2494be9d8dc4884e7ceaf7a79fca650f02d1e36d6b1ac317e0495cb3
Status: Downloaded newer image for kubesec/kubesec:latest
version unknown
git commit unknown
build date unknown

@MarioUhrik
Copy link
Contributor

Hi @06kellyjac, if you're interested, I can try to open a PR where I fix this issue by:

@06kellyjac
Copy link
Member Author

06kellyjac commented Jul 19, 2023

Thanks for the offer but there are a couple other tweaks I want to make to the Dockerfiles so ill do that in 1 pr

Nice catch on that typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Kubesec
  
In Progress
Development

No branches or pull requests

4 participants