UNCLASSIFIED

README.md 1.53 KB
Newer Older
bhearn's avatar
bhearn committed
1
# ActiveMQ
Al Fontaine's avatar
Al Fontaine committed
2

bhearn's avatar
bhearn committed
3
Version: 5.15.13
Al Fontaine's avatar
Al Fontaine committed
4

bhearn's avatar
bhearn committed
5
Apache ActiveMQ is an open source, multi-protocol, Java-based messaging server.
Al Fontaine's avatar
Al Fontaine committed
6

bhearn's avatar
bhearn committed
7
## Download from Iron Bank
Al Fontaine's avatar
Al Fontaine committed
8

bhearn's avatar
bhearn committed
9
1. Go to the [Apache webpage](https://ironbank.dsop.io/ironbank/repomap/opensource/apache) in Iron Bank and download the latest ActiveMQ tarball.
Al Fontaine's avatar
Al Fontaine committed
10

bhearn's avatar
bhearn committed
11 12 13 14
2. Navigate to the location of the download and run:
```
docker load -i *tarball*
``` 
Al Fontaine's avatar
Al Fontaine committed
15

bhearn's avatar
bhearn committed
16
## Usage with Kubernetes
Al Fontaine's avatar
Al Fontaine committed
17

bhearn's avatar
bhearn committed
18 19 20 21
1. Create a namespace for our ActiveMQ deployment:
```
kubectl create ns active-mq
```
Al Fontaine's avatar
Al Fontaine committed
22

bhearn's avatar
bhearn committed
23 24 25 26 27 28 29 30
2. **Modify _jetty-realm.properties_ in the 'deployment' directory of this repo to use your own custom usernames and passwords:**
```
# Example admin account:
admin_username: <<<ADMIN PASSWORD GOES HERE>>>, admin
#
# Example guest user:
guest_username: <<<GUEST PASSWORD GOES HERE>>>, guest
```
Al Fontaine's avatar
Al Fontaine committed
31

bhearn's avatar
bhearn committed
32 33 34 35
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
```
Gerard Fulton's avatar
Gerard Fulton committed
36

bhearn's avatar
bhearn committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
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