UNCLASSIFIED

Commit 39529fda authored by bhearn's avatar bhearn
Browse files

update to 5.15.13

parent 9202a608
Pipeline #28484 failed with stage
ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082 ARG BASE_REGISTRY=nexus-docker-secure.levelup-dev.io
ARG BASE_IMAGE=redhat/ubi/ubi8 ARG BASE_IMAGE=redhat/openjdk/openjdk13
ARG BASE_TAG=8.2 ARG BASE_TAG=1.13.0
FROM ${BASE_REGISTRY}/opensource/openjdk/openjdk13:1.13.0 FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ARG VERSION=5.15.12
ARG DISTRO_NAME=apache-activemq-${VERSION}
ARG USER_NAME=activemq
ARG ACTIVEMQ_HOME=/opt/activemq
LABEL name="ActiveMQ" \ LABEL name="ActiveMQ" \
maintainer="bhearn@anchore.com" \
vendor="Apache" \ vendor="Apache" \
version=$VERSION \ version="5.15.13" \
summary="Apache ActiveMQ™ is the most popular open source, multi-protocol, Java-based messaging server. " release="1" \
summary="Image of ActiveMQ" \
description="Apache ActiveMQ is an open source, multi-protocol, Java-based messaging server"
USER root COPY apache-activemq-5.15.13-bin.tar.gz /
COPY ${DISTRO_NAME}.tar.gz /opt # root user is needed to extract files from the ActiveMQ gzip
USER root
RUN tar -zxf /opt/${DISTRO_NAME}.tar.gz -C /opt && \
rm -f /opt/${DISTRO_NAME}.tar.gz && \
ln -s /opt/${DISTRO_NAME} ${ACTIVEMQ_HOME} && \
useradd -r ${USER_NAME} --uid=1000 && \
chown -R ${USER_NAME}:${USER_NAME} /opt/${DISTRO_NAME} && \
chown -h ${USER_NAME}:${USER_NAME} ${ACTIVEMQ_HOME} && \
sed -i "/#JAVA_HOME=*/c\JAVA_HOME=/opt/jdk-13.0.2" /opt/${DISTRO_NAME}/bin/env
USER ${USER_NAME} RUN tar -zxf apache-activemq-5.15.13-bin.tar.gz && \
rm apache-activemq-5.15.13-bin.tar.gz && \
chmod 755 apache-activemq-5.15.13/bin/activemq && \
useradd -r activemq --uid=1000 && \
chown -R activemq:activemq apache-activemq-5.15.13
WORKDIR ${ACTIVEMQ_HOME} USER activemq
EXPOSE 61616 8161 5672 61613 1883 61614 EXPOSE 8161 61616 5672 61613 1833
HEALTHCHECK CMD curl localhost:8161 HEALTHCHECK CMD curl localhost:8161
CMD ["bin/activemq", " start"] CMD ["apache-activemq-5.15.13/bin/activemq", " start"]
\ No newline at end of file
@Library('DCCSCR@master') _ @Library('DCCSCR@master') _
dccscrPipeline(version: "5.15.12") dccscrPipeline(version: "5.15.13")
\ No newline at end of file
# Apache ActiveMQ v5.15.12 # ActiveMQ
## Usage Version: 5.15.13
`docker run -d -p 61616:61616 -p 8161:8161 <image_name>` Apache ActiveMQ is an open source, multi-protocol, Java-based messaging server.
## Port map ## Download from Iron Bank
61616 JMS 1. Go to the [Apache webpage](https://ironbank.dsop.io/ironbank/repomap/opensource/apache) in Iron Bank and download the latest ActiveMQ tarball.
8161 UI 2. Navigate to the location of the download and run:
```
docker load -i *tarball*
```
5672 AMQP ## Usage with Kubernetes
61613 STOMP 1. Create a namespace for our ActiveMQ deployment:
```
kubectl create ns active-mq
```
1883 MQTT 2. Modify _jetty-realm.properties_ in the 'deployment' directory of this repo to use your own custom usernames and passwords.
61614 WS 3. Create a secret using your _jetty-realm.properties_ file:
```
kubectl -n active-mq create secret generic active-mq-creds --from-file=jetty-realm.properties
```
4. Modify line 18 of _activemq-deployment.yaml_ in the 'deployment' directory of this repo to use the ActiveMQ image we loaded from Iron Bank.
5. Create a deployment using your _activemq-deployment.yaml_ file:
```
kubectl -n active-mq apply -f activemq-deployment.yaml
```
6. Create a service using the _activemq-service.yaml_ file:
```
kubectl -n active-mq apply -f activemq-service.yaml
```
You should now be able to navigate to the ActiveMQ dashboard URL and login using your credentials.
## Notes
- root user is needed to extract files from the ActiveMQ gzip
- exposed ports: 8161, 61616, 5672, 61613, and 1833
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: active-mq
labels:
app: active-mq
spec:
replicas: 1
selector:
matchLabels:
app: active-mq
template:
metadata:
labels:
app: active-mq
spec:
containers:
- image: <IRON_BANK_IMAGE> # modify this
name: active-mq
imagePullPolicy: Always
resources:
requests:
memory: 500Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 400m
volumeMounts:
- name: active-creds
mountPath: /apache-activemq-5.15.13/conf/jetty-realm.properties
subPath: jetty-realm.properties
volumes:
- name: active-creds
secret:
secretName: active-mq-creds
restartPolicy: Always
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: active-mq
namespace: active-mq
labels:
app: active-mq
spec:
selector:
app: active-mq
ports:
- name: dashboard
port: 8161
targetPort: 8161
protocol: TCP
- name: openwire
port: 61616
targetPort: 61616
protocol: TCP
- name: amqp
port: 5672
targetPort: 5672
protocol: TCP
- name: stomp
port: 61613
targetPort: 61613
protocol: TCP
- name: mqtt
port: 1883
targetPort: 1883
protocol: TCP
type: LoadBalancer
\ No newline at end of file
# username: password, role
admin_username: admin_pass, admin
guest_user: guest_pass, guest
\ No newline at end of file
---
resources: resources:
- url: "https://downloads.apache.org/activemq/5.15.12/apache-activemq-5.15.12-bin.tar.gz" - url: "http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.15.13/apache-activemq-5.15.13-bin.tar.gz&action=download"
filename: "apache-activemq-5.15.12.tar.gz" filename: "apache-activemq-5.15.13-bin.tar.gz"
validation: validation:
type: "sha512" type: "sha512"
value: "3c6e44bcd53d73ab03063a52244e54d26d39eb38b5c0bba6c34bc639645eb1a2a0004cb309ee3162a013977384157e345cf1c69d93f8c9a1e11fb690680eb24a" value: "4a237fe2d3cdfbc1b5b45c92a5aab0d009acbfe5383c188b9691100e2e47de0548a1c24e0d8382a88c4600cd2b8792ce75e9be7d88de55f86b0bde7c9a92c285"
\ No newline at end of file
  • Pipeline Status: FAILURE
    FAILURE Stage: Import Artifacts
    Branch: 5.15.13-update

    graph LR
      0([setup]):::INTERNAL_SUCCESS --> 1([Import Artifacts]):::FAILURE --> 2((/)):::INTERNAL_NOT_BUILT --> 3([Stage Artifacts]):::NOT_BUILT --> 4((/)):::INTERNAL_NOT_BUILT --> 5([Build]):::NOT_BUILT --> 6([Publish, Scan & Report]):::INTERNAL_FAILURE
    
    classDef SUCCESS font-size:10px
    classDef FAILURE fill:#f44, font-size:10px
    classDef SKIPPED font-size:10px
    classDef ABORTED fill:#889, font-size:10px
    classDef INTERNAL_SUCCESS font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_FAILURE fill:#f44, font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_SKIPPED font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_ABORTED fill:#889, font-size:10px, stroke-dasharray: 2, 1
    

    Error Log:

    + sha512sum -c apache-activemq-5.15.13-bin.tar.gz-checkfile.txt
    apache-activemq-5.15.13-bin.tar.gz: FAILED
    sha512sum: WARNING: 1 computed checksum did NOT match
    
    ---
    sha512 for apache-activemq-5.15.13-bin.tar.gz did not match. requested: 4a237fe2d3cdfbc1b5b45c92a5aab0d009acbfe5383c188b9691100e2e47de0548a1c24e0d8382a88c4600cd2b8792ce75e9be7d88de55f86b0bde7c9a92c285 actual: 3185a15da71b29e4adaa612cc7f5afd421de69b150177f4ff5caf036179f08e5573f4a33411a3598e2416a7507cbcfc43871c4392b38b45c8ce0e5239f80f006  apache-activemq-5.15.13-bin.tar.gz
    
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment