-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·54 lines (42 loc) · 1.94 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM openjdk:11-jre-slim-bullseye
MAINTAINER [email protected]
ARG ACTIVEMQ_VERSION=5.18.3
ARG ACTIVEMQ=apache-activemq-$ACTIVEMQ_VERSION
ARG VCS_REF
ARG BUILD_DATE
LABEL \
maintainer="https://slub-dresden.de" \
org.label-schema.vendor="Saxon State and University Library Dresden" \
org.label-schema.name="Kitodo.Production ActiveMQ" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/slub/kitodo-production-activemq" \
org.label-schema.build-date=$BUILD_DATE \
org.opencontainers.image.vendor="Saxon State and University Library Dresden" \
org.opencontainers.image.title="Kitodo.Production ActiveMQ" \
org.opencontainers.image.description="Kitodo.Production ActiveMQ Docker image and Java client" \
org.opencontainers.image.source="https://github.com/slub/kitodo-production-activemq" \
org.opencontainers.image.documentation="https://github.com/slub/kitodo-production-activemq/blob/${VCS_REF}/README.md" \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.created=$BUILD_DATE
ENV ACTIVEMQ_HOME=/opt/activemq
ENV ACTIVEMQ_TCP=61616
ENV ACTIVEMQ_AMQP=5672
ENV ACTIVEMQ_STOMP=61613
ENV ACTIVEMQ_MQTT=1883
ENV ACTIVEMQ_WS=61614
ENV ACTIVEMQ_UI=8161
RUN apt-get update && \
apt-get install -y apt-utils curl && \
apt-get clean
RUN mkdir -p /opt && \
curl -s -S https://archive.apache.org/dist/activemq/$ACTIVEMQ_VERSION/$ACTIVEMQ-bin.tar.gz -o $ACTIVEMQ-bin.tar.gz && \
tar -zxvf $ACTIVEMQ-bin.tar.gz -C /opt
RUN mv /opt/$ACTIVEMQ $ACTIVEMQ_HOME && \
adduser --system --group --no-create-home --home $ACTIVEMQ_HOME activemq && \
chown -R activemq:activemq $ACTIVEMQ_HOME && \
rm $ACTIVEMQ-bin.tar.gz
COPY ./kitodo-activemq.xml /opt/activemq/conf/activemq.xml
USER activemq
WORKDIR $ACTIVEMQ_HOME
EXPOSE $ACTIVEMQ_TCP $ACTIVEMQ_AMQP $ACTIVEMQ_STOMP $ACTIVEMQ_MQTT $ACTIVEMQ_WS $ACTIVEMQ_UI
CMD ["bash", "-c", "bin/activemq console"]