Skip to content

Commit

Permalink
Web Sockets (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner authored Dec 10, 2024
1 parent da3abf1 commit 8e66e5e
Show file tree
Hide file tree
Showing 16 changed files with 2,389 additions and 376 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM composer:1.6 as composer
FROM composer AS composer
COPY . /app
RUN composer install --no-interaction --no-dev --ignore-platform-reqs --optimize-autoloader

FROM php:8.1-cli
MAINTAINER Xibo Signage Ltd <info@xibo.org.uk>
FROM php:8.2-cli
LABEL org.opencontainers.image.authors="Xibo Signage Ltd <info@xibosignage.com>"

ENV XMR_DEBUG false
ENV XMR_QUEUE_POLL 5
ENV XMR_QUEUE_SIZE 10
ENV XMR_IPV6RESPSUPPORT false
ENV XMR_IPV6PUBSUPPORT false
ENV XMR_DEBUG=false
ENV XMR_QUEUE_POLL=5
ENV XMR_QUEUE_SIZE=10
ENV XMR_IPV6PUBSUPPORT=false

RUN apt-get update && apt-get install -y libzmq3-dev git \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -24,7 +23,7 @@ RUN git clone https://github.com/zeromq/php-zmq.git \

RUN docker-php-ext-enable zmq

EXPOSE 9505 50001
EXPOSE 8080 8081 9505

COPY ./entrypoint.sh /entrypoint.sh
COPY . /opt/xmr
Expand Down
14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@
"bin": ["bin/xmr.phar"],
"config": {
"platform": {
"php": "8.1",
"php": "8.2",
"ext-zmq": "1"
}
},
"require": {
"php": ">=8.1",
"php": ">=8.2",
"monolog/monolog": "^1.17",
"react/zmq": "^0.4.0"
"react/react": "^1.4",
"react/socket": "^1.16",
"react/zmq": "^0.4.0",
"cboden/ratchet": "^0.4.4"
},
"autoload": {
"psr-4": {
"Xibo\\": "src/"
}
}
}
Loading

0 comments on commit 8e66e5e

Please sign in to comment.