Skip to content

Commit

Permalink
Allow drupal container to access broker via REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelgbanks committed May 11, 2023
1 parent 6d057b0 commit 2173ab5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions drupal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ ENV \
DRUPAL_DEFAULT_BROKER_HOST=activemq \
DRUPAL_DEFAULT_BROKER_PORT=61613 \
DRUPAL_DEFAULT_BROKER_URL=tcp://activemq:61613 \
DRUPAL_DEFAULT_BROKER_WEB_ADMIN_PASSWORD=password \
DRUPAL_DEFAULT_BROKER_WEB_ADMIN_USER=admin \
DRUPAL_DEFAULT_BROKER_WEB_PORT=8161 \
DRUPAL_DEFAULT_CANTALOUPE_URL=https://islandora.traefik.me/cantaloupe/iiif/2 \
DRUPAL_DEFAULT_CONFIGDIR=/var/www/drupal/config/sync \
DRUPAL_DEFAULT_DB_NAME=drupal_default \
Expand Down
4 changes: 2 additions & 2 deletions test/rootfs/etc/s6-overlay/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ function jolokia {
local type="${1}"
local queue="${2}"
local action="${3}"
local url="http://${DRUPAL_DEFAULT_BROKER_HOST}:8161/api/jolokia/${type}/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=${queue}"
local url="http://${DRUPAL_DEFAULT_BROKER_HOST}:${DRUPAL_DEFAULT_BROKER_WEB_PORT}/api/jolokia/${type}/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=${queue}"
if [ "$action" != "" ]; then
url="${url}/$action"
fi
curl -s -u "admin:password" "${url}"
curl -s -u "${DRUPAL_DEFAULT_BROKER_WEB_ADMIN_USER}:${DRUPAL_DEFAULT_BROKER_WEB_ADMIN_PASSWORD}" "${url}"
printf "\n"
}

Expand Down

0 comments on commit 2173ab5

Please sign in to comment.