[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17731336#comment-17731336 ] Alexey Markevich commented on ARTEMIS-3042: --- {quote}RUN ./bin/artemis create --user=${ARTEMIS_USER} --password=${ARTEMIS_PASSWORD} --require-login instance {quote} - instance credentials is a part of image -> probably should be avoided for official image + instance exist and can be easily configured (like additional login module setup) > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > Time Spent: 10h 50m > Remaining Estimate: 0h > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17725832#comment-17725832 ] ASF subversion and git services commented on ARTEMIS-3042: -- Commit 587ffb223cd2461a9da5c53e5ac189b9aa24640c in activemq-artemis's branch refs/heads/main from Gary Tully [ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=587ffb223c ] ARTEMIS-3042 simple properties based, extensible broker image > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > Time Spent: 9h > Remaining Estimate: 0h > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17642470#comment-17642470 ] Gary Tully commented on ARTEMIS-3042: - [~inad9300] thanks!. podman and docker are interchangeable, the project creates an OCI image.tar that can be published or loaded into a registry. In the README.md for comprehension - s/podman/docker/ why a java main line? - for simplicity - the intent is to present the broker as a java app and expose that, so that the JVM is visible and configurable etc. artemis run and the distro scripts are focused on bare metal where it has to coexist and be update-able etc... none of that is relevant for an immutable image. In addition, as the JVM becomes more container aware w.r.t to container limits, less and less of the bare metal defaults make sense. The main wraps the current embedded broker (which is well proven and tested) and waits for it to exit (like ArtemisRun). I think there is a case to be made for a single entry point, and maybe I can replace the Main with the ArtemisRun wrapper, or extract out the relevant bits and reuse, but I don't want to expose any unnecessary options, just the necessary ones. I also want properties to be the mechanism for customisation. ie a broker is a Broker 'bean' and a few property files that tweak the defaults. A derived broker adds some more custom.properties and that is it. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > Time Spent: 10m > Remaining Estimate: 0h > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17642014#comment-17642014 ] Daniel Martin commented on ARTEMIS-3042: I'm afraid I may need some guidance as to what we are looking at. I was expecting to see a Dockerfile somewhere... I'm not familiar with podman, which may explain my confusion. But that's the ultimate goal, no? To have something published in Docker Hub or equivalent that people can directly pull. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > Time Spent: 10m > Remaining Estimate: 0h > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17641236#comment-17641236 ] Gary Tully commented on ARTEMIS-3042: - [~inad9300] [~behm015] i would love your feedback on https://github.com/apache/activemq-artemis/pull/4297 I have tried to strip down the broker container to a java app with a bunch of properties files. I think this is the proper base for building extensible images and we can work towards ensuring all relevant configuration can be in properties form. Some detail and intent in the README https://github.com/apache/activemq-artemis/pull/4297/files#diff-3e9a042c763f10a330adde9100e40b834b67abd3392bce668676fa36132b243a > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > Time Spent: 10m > Remaining Estimate: 0h > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17554005#comment-17554005 ] Daniel Martin commented on ARTEMIS-3042: Any progress on this front? It seems quite essential these days for a project of this nature! :D > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.20.7#820007)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17287209#comment-17287209 ] John Behm commented on ARTEMIS-3042: [~jbertram] it's related to the other issue that I opened. I cannot provide any code, maybe some of my colleagues will have the time and will to provide an example for reproduction, as I did not write the testing code, but did invest my time into running the broker in a Kubernetes environment. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17287181#comment-17287181 ] Justin Bertram commented on ARTEMIS-3042: - [~behm015], regarding your "testing so far"...Is that specifically related to the Docker issues or something else? > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17287166#comment-17287166 ] John Behm commented on ARTEMIS-3042: Thanks, gonna mention this issue here, once I get access. Sadly I must say, that we did decide against using Artemis in production, as it is not production ready, from our testing so far. I will not spend much time with this project anymore but may leave comments if anyone has any questions, you may ping me. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17287148#comment-17287148 ] Justin Bertram commented on ARTEMIS-3042: - [~behm015], there's [a recent thread|http://activemq.2283324.n4.nabble.com/Official-Docker-Image-for-ActiveMQ-td4760484.html] on the dev list about an effort to get official Docker images for ActiveMQ. Work is already underway so now would be a good time for you to weigh in with your perspective. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile,, kubernetes > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17283562#comment-17283562 ] John Behm commented on ARTEMIS-3042: A great reference book for reference is: Kubernetes in Action. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile, > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17283555#comment-17283555 ] John Behm commented on ARTEMIS-3042: Well, RabbitMQ does a great job at being easy to setup. It took me two days to get a cluster running, without nearly any problems at all. The biggest advantage is that they do provide a lot of essential examples and a Kubernetes Operator implementation that can simply be deployed to the Kubernetes cluster and that somewhat manages the setup of the custom Kubernetes Resource (being the RabbitMQ cluster) that it provides. This might be overkill for the first step, but might be a long term target to look at (I'm not familiar with Operator Development, yet). Contrary to Artemis, where it took me 1.5 months until now and still going. I did learn a lot about Artemis in the process as well as Docker, Kubernetes and Helm Charts, but for anyone willing to simply setup Artemis in a clustered high availability setup, they will not really spend that much time until they just say: No. I am currently trying(when I do have the time, tho) to get this setup running in a Kubernetes cluster that does not really support udp broadcasting, so one has to use JGroups. The currently used version of JGroups is (I do not know why) is super old, something around version 3.6.x if I recall correctly. This rather old version of JGroups only works with a super old version of the JGroups Protocol Stack plugin(however you may call this) KUBE_PING (0.9.3), which both should updated to be, well, up to date with the current technology. KUBE_PING https://github.com/jgroups-extras/jgroups-kubernetes This jgroups plugin should be part of either a special Kubernetes docker image or of every Docker image, as it's key for peer discovery in a Kubernetes cluster. Looking away from the configuration mess one has to fight through, one would need to have a docker image that lives on Dockerhub and not to build it yourself. The second step someone someone willing to use the docker image from dockerhub is that they want to know how to configure the docker image to work the way they want it to work. - what environment variables do I set - what configuration files do I mount (before the startup of Artemis) at which path inside of the docker container, so that the application inside may pickup the mounted configuration files and work/run according to that custom configuration. I think in order to avoid the mess from my above configuration, Artemis should evaluate environment variables automatically the way they are passed through ARTEMIS_CLUSTER_PROPS, so that those may be directly used inside of the broker.xml and not be initially passed as environment variables and also passed as JVM arguments through ARTEMIS_CLUSTER_PROPS. Another big problem from my point of view is that Artemis does generate configuration files at the startup of the container. This goes against the immutability of a container "principle" (I'm no expert, don't quote me :)) First thing is: the configuration files should not be generated inside of the contaienr, but outside. The container does one thing and that is: Tell Artemis where the configuration is located and start the Artemis broker. Nothing else. Those, I think, hard drive performance values that are calculated at startup of a container should not be part of the broker.xml, as they are inherent to the underlying container/vm/machine and cannot be really precisely known prior to the container startup. One may simply set those to some small values, but that would not be what the idea of those values is. To my (uneducated) idea would be to check the environment variables for a non empty string for those specific configuration values that are calculated at startup. If the string is, in fact, not empty, then you may use those values and do not need to calculate anything. If the string is empty, you may calculate those performance values yourself at startup (and maybe also set them as environment variables). Everything else that is configured inside of the broker.xml ist static, so it can stay the way it is and should simply be mounted as a configuration info the container at a specific path, that Artemis expects. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile, > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves
[jira] [Commented] (ARTEMIS-3042) Official Docker Multistage Build as well as an official Docker image.
[ https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17283298#comment-17283298 ] Justin Bertram commented on ARTEMIS-3042: - [~behm015], would you be willing to submit a PR to implement the changes you've outlined above? If not, could you perhaps point to examples which do it better than Artemis or even tutorials/documentation which outline best practices? I've used Docker a bit, but I don't know much about crafting these files. However, I'm willing to learn and you seem to have requisite experience to help. > Official Docker Multistage Build as well as an official Docker image. > - > > Key: ARTEMIS-3042 > URL: https://issues.apache.org/jira/browse/ARTEMIS-3042 > Project: ActiveMQ Artemis > Issue Type: Improvement >Reporter: John Behm >Priority: Minor > Labels: docker,, dockerfile, > > It would be rather convenient to get people up and running with an easy to > build or to setup Docker image that automatically builds the project from > source, discards the build container and moves the necessary files over to > the final container that can simply be started. > The current docker image build is not really user firendly or convenient at > all. > > https://github.com/apache/activemq-artemis/tree/master/artemis-docker > The whole setup process of artemis in a containerized environment is very > far from even good. > The hurdle of using this software is gigantic, as the configuration is so > complex, one will not be able to do this within one month without having gone > through the whole documentation multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005)