Skip to content

Commit

Permalink
change: add v6
Browse files Browse the repository at this point in the history
  • Loading branch information
DiniFarb committed Feb 17, 2024
1 parent e0f42be commit 992a875
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 205 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/dockerhub-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
196 changes: 0 additions & 196 deletions jetty.xml

This file was deleted.

0 comments on commit 992a875

Please sign in to comment.