Closed token-cjg closed 2 years ago
I've given this another once over, this should work now.
The main change is to build the gem and install it in the image, and then set the entrypoint to zat
. This allows the image to be run from anywhere.
I had a quick glance on https://developer.zendesk.com/documentation/apps/app-developer-guide/zat/. Please feel free to ignore me if I misunderstood the context since I am not familiar with ZAT at all. The developer docs contains two commands we may need to cover in your PR.
zat=true
query parameter.Again, feel free ignore if this does not make sense
I had a quick glance on https://developer.zendesk.com/documentation/apps/app-developer-guide/zat/. Please feel free to ignore me if I misunderstood the context since I am not familiar with ZAT at all. The developer docs contains two commands we may need to cover in your PR.
zat=true
query parameter.Again, feel free ignore if this does not make sense
Yes, I think that makes sense. So I should EXPOSE 4567
in the Dockerfile. (I believe that port 4254
is an example of a custom port which doesn't need to be supported.) Thanks for the eagle eye!
Yes, I think that makes sense. So I should
EXPOSE 4567
in the Dockerfile. (I believe that port4254
is an example of a custom port which doesn't need to be supported.) Thanks for the eagle eye!Yes, I think that makes sense. So I should
EXPOSE 4567
in the Dockerfile. (I believe that port4254
is an example of a custom port which doesn't need to be supported.) Thanks for the eagle eye!
Maybe this is a very nit question and again also feel free to ignore. If zat server supports custom port. should we also support it from your shell script to pass the argument as port if needed in order to let the docker container to expose the port?
Yes, I think that makes sense. So I should
EXPOSE 4567
in the Dockerfile. (I believe that port4254
is an example of a custom port which doesn't need to be supported.) Thanks for the eagle eye!Yes, I think that makes sense. So I should
EXPOSE 4567
in the Dockerfile. (I believe that port4254
is an example of a custom port which doesn't need to be supported.) Thanks for the eagle eye!
Maybe this is a very nit question and again also feel free to ignore. If zat server supports custom port. should we also support it from your shell script to pass the argument as port if needed in order to let the docker container to expose the port?
Yes, indeed we should, otherwise this will not work. Thanks for the astute observation 🙇
ha! yes that's an artifact of lazily copying code. I will fix that.
:v:
/cc @zendesk/vegemite
Description
We'd like to be able to run
zat
in a docker container, so as to be able to work around environment constraints, as well as test various things that can't be tested just by running zat natively.Tasks
References
Risks