Re: Avatica CI test failures
Quick update: I was able to use docker hub's hooks to set the release
version of the docker images during build time as suggested by Vladimir.
In addition, I was also able to automate the publishing of the Avatica
HSQLDB image (CALCITE1948 ).
The trick to publishing the HSQLDB image is quite simple. Docker hub
provides a post_push hook that is executed when a dockerfile is pushed
to the registry. I simply use it to build the HSQLDB dockerfile and push
it to a separate HSQLDB docker repository after the vanilla avatica
image is built.
I was able to push to multiple different repositories using the
post_push hook, so it should come in handy if we need to publish other
flavors of the Avatica image in the future.
Note that due to docker hub's requirement of the Dockerfile location in
the automated build configuration, I had to move the dockerfile for the
HSQLDB image into the same folder as the vanilla avatica image,
otherwise nothing will build.
See my commit here:
Docker hub repositories of the pushed test images are here:
If this solution is acceptable, I propose that we close CALCITE-1948 and
open a new issue encompassing the publication of the HSQLDB image and
publication of the avatica image using docker hub hooks. I will then
finalize the commit and we should be able to get it into 1.13.0-rc0,
which I plan to make available tomorrow. I will then ask infra to create
the apache/calcite-avatica-hsqldb repository on docker hub as a
non-automated build, so we should have a HSQLDB avatica image published
once 1.13.0 is release.
On 22/11/2018 5:41 am, Vladimir Sitnikov wrote:
I'm not sure what combination of plugins would be best to do this
Josh, you might have missed, yet there's an option to add DockerHub hook
files to the repository, and DockerHub will execute them at build.
Then no replacements would be required.
What do you think?