Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #75 from arthurbarr/v3
Browse files Browse the repository at this point in the history
Last updates for V3
  • Loading branch information
parrobe authored Jun 8, 2017
2 parents cdbbc9a + 9d718b5 commit 61e2c2c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Change log

## 3.0.0 (2017-xx-xx)
## 3.0.0 (2017-06-08)
### Action required
None
* Updated to install Ubuntu `.deb` files - Any changes to the `MQ_PACKAGES` variable will now need to use the new package names (for example, "ibmmq-web" instead of "MQSeriesWeb")

### Other notable changes
* Updated to MQ V9.0.3
* Migrated from `amqicdir` to new official `crtmqdir` utility
* Restructured startup scripts
* Removed fixed UID numbers
* Removed fixed UID numbers for developer config
* Use HTTPS for MQ installer download
* Reduced image size by purging 32-bit libraries

## 2.0.0 (2017-03-11)
### Action required
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

FROM ubuntu:16.04

LABEL maintainer "Arthur Barr <[email protected]>"
LABEL maintainer "Arthur Barr <[email protected]>, Rob Parker <[email protected]>"

# The URL to download the MQ installer from in tar.gz format
ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev902_ubuntu_x86-64.tar.gz
ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev903_ubuntu_x86-64.tar.gz

# The MQ packages to install
ARG MQ_PACKAGES="ibmmq-server ibmmq-java ibmmq-jre ibmmq-gskit ibmmq-web ibmmq-msg-.*"
Expand Down
15 changes: 5 additions & 10 deletions setup-var-mqm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
if [ -d "/var/mqm/qmgrs" ]; then
# User is probably following old instructions to mount a volume into /var/mqm
echo "Using existing MQ Data under /var/mqm"
/opt/mqm/bin/amqicdir -i -f
/opt/mqm/bin/amqicdir -s -f
/opt/mqm/bin/crtmqdir -a -f
else
if [ -L "/var/mqm" ]; then
echo "/var/mqm is already a symlink."
/opt/mqm/bin/amqicdir -i -f
/opt/mqm/bin/amqicdir -s -f
/opt/mqm/bin/crtmqdir -a -f
else
if [ -d "/mnt/mqm/" ]; then
DATA_DIR=/mnt/mqm/data
Expand All @@ -44,19 +42,16 @@ else
su -c "chmod 775 ${DATA_DIR}" -l mqm
fi

/opt/mqm/bin/amqicdir -i -f
/opt/mqm/bin/amqicdir -s -f
/opt/mqm/bin/crtmqdir -a -f
su -c "cp -RTnv /var/mqm /mnt/mqm/data" -l mqm

# Remove /var/mqm and replace with a symlink
rm -rf /var/mqm
ln -s ${DATA_DIR} /var/mqm
chown -h mqm:mqm /var/mqm
else
#Create the MQ data Directory
echo "Running amqicdir"
/opt/mqm/bin/amqicdir -i -f
/opt/mqm/bin/amqicdir -s -f
# Create the MQ data Directory
/opt/mqm/bin/crtmqdir -a -f
fi
fi
fi

0 comments on commit 61e2c2c

Please sign in to comment.