Skip to content

Commit 470c71b

Browse files
committed
Changed base docker image to xaamin/php-cli
1 parent 84b3427 commit 470c71b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM xaamin/php
1+
FROM xaamin/php-cli
22
MAINTAINER Benjamín Martínez Mateos <bmxamin@gmail.com>
33

44
# Add env variables
55
ENV TRIES 3
66

77
# Add bootstrap file
8-
ADD start.bash /start.bash
8+
ADD start.sh /start.sh
99

1010
# Add supervisor config file
1111
ADD supervisord.conf /etc/supervisor/supervisord.conf
1212

1313
# Define default command.
14-
CMD ["/bin/bash", "/start.bash"]
14+
CMD ["/bin/bash", "/start.sh"]

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Docker container to run [Artisan Queue Listener](http://laravel.com/docs/master/queues)
33

44
### Base docker image
5-
* [xaamin/php](https://registry.hub.docker.com/r/xaamin/php)
5+
* [xaamin/php-cli](https://registry.hub.docker.com/r/xaamin/php)
66

77
### Installation
88
* Install [Docker](https://www.docker.com)
@@ -19,10 +19,10 @@ You can specify maximum attemps using env TRIES variable, default is 3. To speci
1919

2020
Run the default queue listener
2121
```
22-
docker run --rm -it -v /path/to/laravel/project:/app xaamin/artisan-queue
22+
docker run -d --restart always -v /path/to/laravel/project:/app xaamin/artisan-queue
2323
```
2424

2525
Run custom queue listener specifying maximum attemps and queue name through env vars
2626
```
27-
docker run --rm -it -e QUEUE=mailer -e TRIES=5 -v /path/to/laravel/project:/app xaamin/artisan-queue
27+
docker run -d --restart always -e QUEUE=mailer -e TRIES=5 -v /path/to/laravel/project:/app xaamin/artisan-queue
2828
```

start.bash start.sh

File renamed without changes.

0 commit comments

Comments
 (0)