working?
This commit is contained in:
parent
064e7cf716
commit
618bc5d76c
@ -1,5 +1,4 @@
|
|||||||
FROM debian
|
FROM perl
|
||||||
RUN apt-get update
|
RUN yes | cpan install Net::MQTT::Simple Net::RabbitMQ Net::Stomp
|
||||||
RUN apt-get install -y make libnet-stomp-perl libanyevent-rabbitmq-perl build-essential
|
COPY bridge.pl /bridge.pl
|
||||||
RUN yes | cpan install Net::MQTT::Simple
|
ENTRYPOINT ["/bridge.pl"]
|
||||||
RUN yes | cpan install -f Net::RabbitMQ
|
|
@ -102,7 +102,7 @@ while(1) {
|
|||||||
_debug("RABBIT <- " . $incoming->destination);
|
_debug("RABBIT <- " . $incoming->destination);
|
||||||
unless($rabbit_queues{$incoming_destination}) {
|
unless($rabbit_queues{$incoming_destination}) {
|
||||||
_debug("RABBIT Declaring queue $incoming_destination");
|
_debug("RABBIT Declaring queue $incoming_destination");
|
||||||
$rabbit->queue_declare(1, $incoming_destination);
|
$rabbit->queue_declare(1, $incoming_destination, { durable => 1 });
|
||||||
$rabbit_queues{$incoming_destination}++;
|
$rabbit_queues{$incoming_destination}++;
|
||||||
}
|
}
|
||||||
$rabbit->publish(1, $incoming_destination, $incoming->body);
|
$rabbit->publish(1, $incoming_destination, $incoming->body);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user