Skip to content

Commit

Permalink
Add containers with php 7.1 and 7.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
yetanotherape committed Aug 4, 2018
1 parent 3e7b024 commit 72f2dd4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile_5.6
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ COPY . /usr/src/myapp
CMD [ "/bin/bash" ]

# docker build -t diff-match-patch:5.6 -f ./Dockerfile_5.6 .
# docker run -it --rm diff-match-patch:5.6 ./vendor/bin/phpunit
# docker run -it --rm diff-match-patch:5.6 ./vendor/bin/phpunit
# docker run -it -v `pwd`/src:/usr/src/myapp/src -v `pwd`/tests:/usr/src/myapp/tests --rm diff-match-patch:5.6
16 changes: 16 additions & 0 deletions Dockerfile_7.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:7.1-cli

WORKDIR /usr/src/myapp

RUN apt-get update && apt-get install -y \
git \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY composer.json /usr/src/myapp
RUN composer install

COPY . /usr/src/myapp
CMD [ "/bin/bash" ]

# docker build -t diff-match-patch:7.1 -f ./Dockerfile_7.1 .
# docker run -it --rm diff-match-patch:7.1 ./vendor/bin/phpunit
# docker run -it -v `pwd`/src:/usr/src/myapp/src -v `pwd`/tests:/usr/src/myapp/tests --rm diff-match-patch:7.1
16 changes: 16 additions & 0 deletions Dockerfile_7.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:7.2-cli

WORKDIR /usr/src/myapp

RUN apt-get update && apt-get install -y \
git \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY composer.json /usr/src/myapp
RUN composer install

COPY . /usr/src/myapp
CMD [ "/bin/bash" ]

# docker build -t diff-match-patch:7.2 -f ./Dockerfile_7.2 .
# docker run -it --rm diff-match-patch:7.2 ./vendor/bin/phpunit
# docker run -it -v `pwd`/src:/usr/src/myapp/src -v `pwd`/tests:/usr/src/myapp/tests --rm diff-match-patch:7.2

0 comments on commit 72f2dd4

Please sign in to comment.