Last active
March 31, 2017 12:12
-
-
Save lool/fe47b26ad1ce079520f749c70bdeec3a to your computer and use it in GitHub Desktop.
Initial RabbitMQ snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# override defaults here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all | |
all: | |
$(MAKE) -j1 deps | |
$(MAKE) all | |
install: | |
echo TODO | |
mkdir -p $(DESTDIR) | |
cp -a etc $(DESTDIR) | |
cp -a scripts $(DESTDIR) | |
cp -a wrapper $(DESTDIR) | |
cp -a rabbitmq-env.conf $(DESTDIR) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rabbitmq | |
version: 3.7.0-milestone6 | |
summary: AMQP message broker | |
description: | | |
RabbitMQ queues and delivers messages using the AMQP protocol. It | |
allows multiple scenarios from simple queues, load distribution | |
between workers, one-to-many (pubsub), to routing, matching and | |
filtering. | |
grade: stable | |
confinement: strict | |
apps: | |
wrapper: | |
command: wrapper | |
plugs: [network-bind] | |
parts: | |
rabbitmq: | |
plugin: make | |
makefile: snapcraft.mk | |
build-packages: [erlang-dev, erlang-src, python-simplejson, xmlto, xsltproc, erlang-nox, zip, rsync] | |
stage-packages: [erlang-nox] | |
source: . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
#SNAP=$PWD | |
#SNAP_DATA=$PWD/snap | |
export RABBITMQ_MNESIA_BASE=$SNAP_DATA/var/lib/rabbitmq/mnesia | |
export RABBITMQ_LOG_BASE=${SNAP_DATA}/var/log/rabbitmq | |
export RABBITMQ_GENERATED_CONFIG_DIR=${SNAP_DATA}/var/lib/rabbitmq/config | |
export RABBITMQ_SCHEMA_DIR=${SNAP_DATA}/var/lib/rabbitmq/schema | |
export RABBITMQ_CONF_ENV_FILE=${SNAP}/rabbitmq-env.conf | |
if ! [ -f "$RABBITMQ_CONF_ENV_FILE" ]; then | |
cp -a $SNAP_DATA/rabbitmq-env.conf $SNAP | |
fi | |
exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment