-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# see TESTING.md
FROM php:8-cli
RUN \
apt-get update && \
apt-get install -y --no-install-recommends rabbitmq-server && \
docker-php-ext-configure bcmath --enable-bcmath && \
docker-php-ext-configure sockets && \
docker-php-ext-install sockets bcmath
RUN \
pecl install xdebug && \
docker-php-ext-enable xdebug
VOLUME ["/mnt"]
# Changing the rabbitmq port with RABBITMQ_NODE_PORT works fine for the rabbitmq-server itself,
# but rabbitmqctl does not seem to notice the variable.
# This leads to incorrect error messages on start-up and too little delay.
# So now we're running the server on the default port.
# To avoid some of the inherent risks, our tests will make sure they're running in the correct environment:
ENV IS_MLE86_WQ_AMQP_TEST=1
ADD docker-start.sh /start.sh
RUN chmod +x /start.sh
ENTRYPOINT ["/start.sh"]
WORKDIR /mnt
CMD ["vendor/bin/phpunit"]