[ 
https://issues.apache.org/jira/browse/ARTEMIS-3042?focusedWorklogId=861583&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-861583
 ]

ASF GitHub Bot logged work on ARTEMIS-3042:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/May/23 16:35
            Start Date: 11/May/23 16:35
    Worklog Time Spent: 10m 
      Work Description: gtully commented on code in PR #4297:
URL: https://github.com/apache/activemq-artemis/pull/4297#discussion_r1191437953


##########
artemis-image/README.md:
##########
@@ -0,0 +1,93 @@
+###What is in the image
+
+An _empty_, _open_ broker with a default acceptor on port 61616
+
+ - by empty: has no addresses or queues but will auto create on demand
+ - by open: has no security; authentication or authorization, users or roles
+
+###How will the image behave
+
+ 1) the image will use or create `/app/data` for persistence of data
+
+ 2) the image will use any [.properties 
files](https://activemq.apache.org/components/artemis/documentation/latest/configuration-index.html#broker_properties)
 from `/app/etc` to augment configuration
+
+ 3) the image will use `/app/etc/broker.xml` if present, to bootstrap 
configuration, the 'bring your own config' use case
+
+###Build and Use
+
+First build an OCI image tar file from this artemis project using mvn:
+
+ `$> mvn install`
+
+An OCI image is created as a tar file, that tar can be loaded into a registry, 
eg:
+
+ `$> podman image load --input target/jib-image.tar`
+
+To run the image with host network access, localhost:61616 will be visible, 
use:
+
+ `$> podman run --net=host localhost/target/activemq-artemis-image:<...>`

Review Comment:
   I reverted to -p to port map 61616, dropping the net=host and podman will 
use a bridge network between the local host and the container. then we can 
inspect the container to find the IP and use that from our host. Podman needs 
permissions to create the network, hense will need sudo, but I think that is 
reasonable. 





Issue Time Tracking
-------------------

    Worklog Id:     (was: 861583)
    Time Spent: 8.5h  (was: 8h 20m)

> 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: 8.5h
>  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)

Reply via email to