Skip to content

Commit

Permalink
Merge pull request #23 from heureka/update_deps
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
Dazix authored Feb 24, 2023
2 parents 12f03c3 + 2c42603 commit 484bb46
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:7.1-cli

RUN apt-get update
RUN apt-get install -y unzip

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /usr/local/bin/composer

WORKDIR /app

COPY . .

RUN composer update --prefer-source --no-interaction

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=7.1.0",
"predis/predis": "1.1.x-dev#157f658f0be5f48cb2aaa4b6a6ac753c1168f465"
"predis/predis": "1.1.10"
},
"bin": [
"php-rq-run-tests"
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3'
services:
php-rq:
build:
context: .
dockerfile: Dockerfile
entrypoint: ''
command: sh -c 'php php-rq-run-tests'
volumes:
- ./:/app
environment:
REDIS_HOST: redis
REDIS_DB: 0
REDIS_PORT: 6379
REDIS_PASSWORD:
depends_on:
- redis

redis:
image: redis:7.0.8-alpine

0 comments on commit 484bb46

Please sign in to comment.