-
Notifications
You must be signed in to change notification settings - Fork 125
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
Building HammerDB for Docker from previous tagged versions will still build the latest release #771
Comments
Issue is this line in the dockerfile pulls the latest base: As a workaround, if you edit the Dockerfiles, so the main one has the first 2 lines as:
and in the database specific directories it has this
it works but in the database specific builds it builds everything for hammerdb:v4.11 and therefore needs a solution to specify the v4.11 base instead. @pooja-jain-17 and @grooverdan as you have updated the Dockerfiles before do you have any suggestions for how we can achieve this? |
The Previously there has been in https://hub.docker.com/r/tpcorg/hammerdb/tags tags like With enforced with automation around releases this should be much more consistent. Github actions like https://github.com/redhat-actions/buildah-build triggered off tag pushes should facilitate this quite easily. While Apart from automation in release and perhaps documenting the how to build a specific version locally, I'm not sure any other repo changes will make this resolvable. If a build that corresponds to a the codebase is desired, a Dockerfile, like base, except with |
Thank-you @grooverdan this should give us a good starting point to get this resolved for the next release. |
The proposed update allows the hard-coded workaround to instead be specified at the commandline so if we update the main Dockerfile as:
and the Dockerfile in the base directory:
Then if we build with the command
it gives a version specific build: and if we use:
it defaults to the latest. Database specific builds will still pull the latest base but if needs be we can push versioned base images like hammerdb:v5.0-base so this will be possible going forward. |
Describe the bug
When trying to build old versions of hammerDB for Docker, the current Dockerfiles will still build the latest release.
To Reproduce
Expected behavior
Inside of the container we should see the checkout version of hammerDB
HammerDB Version (please complete the following information):
HammerDB Interface (please complete the following information):
Operating System (please complete the following information):
Additional context
I already brought up this issue in the Q&A:
#769 (reply in thread)
The current workaround is to modify the DockerFile to point to the desired hammerDB version on the docker repository.
The text was updated successfully, but these errors were encountered: