From 992a8754255b699881d9e865cfacd16b9ae7660e Mon Sep 17 00:00:00 2001 From: Dinifarb Date: Sat, 17 Feb 2024 09:57:40 +0100 Subject: [PATCH] change: add v6 --- .github/workflows/dockerhub-build.yml | 4 +- Dockerfile | 9 +- README.md | 6 +- jetty.xml | 196 -------------------------- 4 files changed, 10 insertions(+), 205 deletions(-) delete mode 100644 jetty.xml diff --git a/.github/workflows/dockerhub-build.yml b/.github/workflows/dockerhub-build.yml index a9255a6..e56edff 100644 --- a/.github/workflows/dockerhub-build.yml +++ b/.github/workflows/dockerhub-build.yml @@ -4,7 +4,9 @@ on: push: branches: - main - + paths: + - Dockerfile + - .github/workflows/dockerhub-build.yml env: DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} diff --git a/Dockerfile b/Dockerfile index 4a19618..a8123bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,19 +16,18 @@ RUN yum -y install tar gzip shadow-utils && yum -y clean all && rm -rf /var/cac RUN curl "https://archive.apache.org/dist/activemq/$ACTIVEMQ_VERSION/$ACTIVEMQ-bin.tar.gz" -o $ACTIVEMQ-bin.tar.gz -RUN tar -xzf $ACTIVEMQ-bin.tar.gz -C /opt -RUN ln -s /opt/$ACTIVEMQ $ACTIVEMQ_HOME && \ +RUN tar -xzf $ACTIVEMQ-bin.tar.gz -C /opt && \ + ln -s /opt/$ACTIVEMQ $ACTIVEMQ_HOME && \ useradd -r -M -d $ACTIVEMQ_HOME activemq && \ chown -R activemq:activemq /opt/$ACTIVEMQ && \ chown -h activemq:activemq $ACTIVEMQ_HOME +RUN rm -rf $ACTIVEMQ-bin.tar.gz -RUN rm -rf /tmp/$ACTIVEMQ-bin.tar.gz +RUN sed -i 's/value="127.0.0.1"/value="0.0.0.0"/' $ACTIVEMQ_HOME/conf/jetty.xml USER activemq -COPY jetty.xml $ACTIVEMQ_HOME/conf/jetty.xml - WORKDIR $ACTIVEMQ_HOME EXPOSE $ACTIVEMQ_TCP $ACTIVEMQ_AMQP $ACTIVEMQ_STOMP $ACTIVEMQ_MQTT $ACTIVEMQ_WS $ACTIVEMQ_UI diff --git a/README.md b/README.md index 4d6e87e..c2839d4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Run ```bash -docker run -it -p 1883:1883 -p 8161:8161 dinifarb/activemq:5.18.3 +docker run -it -p 1883:1883 -p 8161:8161 dinifarb/activemq:6.0.1 ``` ## Available tags @@ -29,8 +29,8 @@ docker run -it -p 1883:1883 -p 8161:8161 dinifarb/activemq:5.18.3 |```dinifarb/activemq:5.18.1```| |```dinifarb/activemq:5.18.2```| |```dinifarb/activemq:5.18.3```| -|```dinifarb/activemq:6.0.0``` **not yet working**| -|```dinifarb/activemq:6.0.1``` **not yet working**| +|```dinifarb/activemq:6.0.0``` | +|```dinifarb/activemq:6.0.1``` | ## Ports diff --git a/jetty.xml b/jetty.xml deleted file mode 100644 index 09b6ae7..0000000 --- a/jetty.xml +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - index.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -