-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.rhel
More file actions
executable file
·56 lines (45 loc) · 3.16 KB
/
Dockerfile.rhel
File metadata and controls
executable file
·56 lines (45 loc) · 3.16 KB
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 registry.access.redhat.com/ubi8/ubi:latest
MAINTAINER Tremolo Security, Inc. - Docker <docker@tremolosecurity.com>
ENV JDK_VERSION=1.8.0 \
ACTIVEMQ_VERSION=5.16.2 \
DBCP_VERSION=1.2.2 \
MYSQL_VERSION=8.0.12 \
MARIADB_VERSION=2.3.0 \
COMMONS_POOL_VERSION=1.6 \
MS_SQL_SERVER_VERSION=7.0.0.jre8 \
BUILDER_VERSION=1.0
LABEL name="ActiveMQ" \
vendor="Tremolo Security, Inc." \
version="1.0.0" \
release="2019041901" \
url="https://www.tremolosecurity.com/" \
summary="ActiveMQ deployment designed to work with the Orchestra applications, this container is NOT designed for general use of ActiveMQ" \
description="ActiveMQ container used for the Orchestra platform." \
run="Only use in combination with the OpenUnison operator" \
io.k8s.description="ActiveMQ for use with Orchestra" \
io.k8s.display-name="ActiveMQ for use with Orchestra" \
io.openshift.expose-services="61616:tcp,8162:https" \
io.openshift.tags="messaging"
COPY licenses /licenses
RUN groupadd -r activemq -g 433 && \
useradd -u 431 -r -g activemq -d /usr/local/activemq -s /sbin/nologin -c "ActiveMQ Docker image user" activemq && \
mkdir /usr/local/activemq
ADD health_check.sh /usr/bin/health_check.sh
RUN yum -y install curl java-1.8.0-openjdk-headless.x86_64 wget unzip;yum -y upgrade && \
rpm --import https://mirror.umd.edu/fedora/epel//RPM-GPG-KEY-EPEL-7 && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
yum -y install jq && \
cd /tmp && \
curl -L -o /tmp/apache-activemq-$ACTIVEMQ_VERSION-bin.tar.gz http://www.apache.org/dyn/closer.cgi?filename=/activemq/$ACTIVEMQ_VERSION/apache-activemq-$ACTIVEMQ_VERSION-bin.tar.gz\&action=download && \
tar -xvzf apache-activemq-$ACTIVEMQ_VERSION-bin.tar.gz && \
mv apache-activemq-$ACTIVEMQ_VERSION/* /usr/local/activemq/ && \
curl -L -o /usr/local/activemq/lib/commons-dbcp-$DBCP_VERSION.jar https://search.maven.org/remotecontent?filepath=commons-dbcp/commons-dbcp/$DBCP_VERSION/commons-dbcp-$DBCP_VERSION.jar && \
curl -L -o /usr/local/activemq/lib/mysql-connector-java-$MYSQL_VERSION.jar https://search.maven.org/remotecontent?filepath=mysql/mysql-connector-java/$MYSQL_VERSION/mysql-connector-java-$MYSQL_VERSION.jar && \
curl -L -o /usr/local/activemq/lib/mariadb-java-client-$MARIADB_VERSION.jar https://search.maven.org/remotecontent?filepath=org/mariadb/jdbc/mariadb-java-client/$MARIADB_VERSION/mariadb-java-client-$MARIADB_VERSION.jar && \
curl -L -o /usr/local/activemq/lib/commons-pool-$COMMONS_POOL_VERSION.jar https://search.maven.org/remotecontent?filepath=commons-pool/commons-pool/$COMMONS_POOL_VERSION/commons-pool-$COMMONS_POOL_VERSION.jar && \
curl -L -o /usr/local/activemq/lib/mssql-jdbc-$MS_SQL_SERVER_VERSION.jar https://search.maven.org/remotecontent?filepath=com/microsoft/sqlserver/mssql-jdbc/$MS_SQL_SERVER_VERSION/mssql-jdbc-$MS_SQL_SERVER_VERSION.jar && \
chown -R activemq:activemq /usr/local/activemq && \
chmod +x /usr/bin/health_check.sh && \
yum clean all
USER 431
CMD ["/usr/local/activemq/bin/activemq", "console","xbean:file:/etc/activemq/activemq.xml"]