[
https://issues.apache.org/jira/browse/ARTEMIS-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17642014#comment-17642014
]
Daniel Martin edited comment on ARTEMIS-3042 at 12/1/22 3:42 PM:
-----------------------------------------------------------------
I'm afraid I may need some guidance as to what is it 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.
I'm surprised that Java code has been needed at all to complete this task. Why
is a new "main" needed? What's wrong with whatever exists already behind
{{{}artemis run{}}}?
For reference, this is the current Dockerfile I'm working with (note that I am
by no means a Docker expert):
{code:java}
FROM eclipse-temurin:17.0.5_8-jdk-jammy
ARG ARTEMIS_VERSION=2.27.0
ARG ARTEMIS_USER=artemis
ARG ARTEMIS_PASSWORD=artemis
WORKDIR /artemis
RUN apt-get update && apt-get install --yes --no-install-recommends curl
RUN curl
https://archive.apache.org/dist/activemq/activemq-artemis/${ARTEMIS_VERSION}/apache-artemis-${ARTEMIS_VERSION}-bin.tar.gz
-o artemis.tar.gz
RUN tar --strip-components=1 -xzf artemis.tar.gz
RUN mkdir instance
RUN ./bin/artemis create --user=${ARTEMIS_USER} --password=${ARTEMIS_PASSWORD}
--require-login instance
CMD [ "./instance/bin/artemis", "run" ]{code}
was (Author: JIRAUSER290941):
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.
I'm surprised that Java code has been needed at all to complete this task. Why
is a new "main" needed? What's wrong with whatever exists already behind
{{{}artemis run{}}}?
For reference, this is the current Dockerfile I'm working with (note that I am
by no means a Docker expert):
{code:java}
FROM eclipse-temurin:17.0.5_8-jdk-jammy
ARG ARTEMIS_VERSION=2.27.0
ARG ARTEMIS_USER=artemis
ARG ARTEMIS_PASSWORD=artemis
WORKDIR /artemis
RUN apt-get update && apt-get install --yes --no-install-recommends curl
RUN curl
https://archive.apache.org/dist/activemq/activemq-artemis/${ARTEMIS_VERSION}/apache-artemis-${ARTEMIS_VERSION}-bin.tar.gz
-o artemis.tar.gz
RUN tar --strip-components=1 -xzf artemis.tar.gz
RUN mkdir instance
RUN ./bin/artemis create --user=${ARTEMIS_USER} --password=${ARTEMIS_PASSWORD}
--require-login instance
CMD [ "./instance/bin/artemis", "run" ]{code}
> 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)