Skip to content

Commit

Permalink
Added support for enabling HiPE compiler through HIPE_COMPILE environ…
Browse files Browse the repository at this point in the history
…ment variable
  • Loading branch information
Artur Stawiarski committed Feb 1, 2016
1 parent 74f0b79 commit fe11432
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ENV RABBITMQ_VERSION 3.6.0
ENV RABBITMQ_DEBIAN_VERSION 3.6.0-1

RUN apt-get update && apt-get install -y --no-install-recommends \
erlang erlang-mnesia erlang-public-key erlang-crypto erlang-ssl erlang-asn1 erlang-inets erlang-os-mon erlang-xmerl erlang-eldap \
erlang erlang-mnesia erlang-public-key erlang-crypto erlang-ssl erlang-asn1 erlang-inets erlang-os-mon erlang-xmerl erlang-eldap erlang-base-hipe \
rabbitmq-server=$RABBITMQ_DEBIAN_VERSION \
&& rm -rf /var/lib/apt/lists/*

Expand Down
13 changes: 10 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if [ "$1" = 'rabbitmq-server' ]; then
ssl_ca_file
ssl_cert_file
ssl_key_file
hipe_compile
)

haveConfig=
Expand Down Expand Up @@ -82,9 +83,15 @@ if [ "$1" = 'rabbitmq-server' ]; then
var="RABBITMQ_${conf^^}"
val="${!var}"
[ "$val" ] || continue
cat >> /etc/rabbitmq/rabbitmq.config <<-EOC
{$conf, <<"$val">>},
EOC
if [[ $conf == default_pass || $conf == default_user || $conf == default_vhost ]]; then
cat >> /etc/rabbitmq/rabbitmq.config <<-EOC
{$conf, <<"$val">>},
EOC
else
cat >> /etc/rabbitmq/rabbitmq.config <<-EOC
{$conf, $val},
EOC
fi
done
cat >> /etc/rabbitmq/rabbitmq.config <<-'EOF'
{loopback_users, []}
Expand Down

0 comments on commit fe11432

Please sign in to comment.