Compare commits

..

2 Commits

Author SHA1 Message Date
6fdf2d2427 be nice and use strict 2021-01-23 16:44:00 +00:00
612526aca8 allow rabbitmq module install to fail, but be ok 2021-01-23 16:43:42 +00:00
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,6 @@
FROM perl
RUN yes | cpan install Net::MQTT::Simple Net::RabbitMQ Net::Stomp
RUN yes | cpan install Net::MQTT::Simple || true
RUN yes | cpan install -f Net::RabbitMQ || true
RUN yes | cpan install Net::Stomp || true
COPY bridge.pl /bridge.pl
ENTRYPOINT ["/bridge.pl"]
ENTRYPOINT ["/bridge.pl"]

View File

@ -1,7 +1,7 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# use warnings;
# use strict;
use strict;
use Net::Stomp;
use Net::MQTT::Simple;
@ -111,4 +111,4 @@ while(1) {
}
$mq->disconnect();
$amq->disconnect();