1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-19 05:47:57 +01:00

Working xdebug with each php version + php images auto-pull

This commit is contained in:
Filip Halaxa 2019-03-08 14:59:17 +01:00
parent 368f808d41
commit c12001363e

View File

@ -5,19 +5,19 @@ for VERSION in \
7.0:2.6.1 \
7.1:2.6.1 \
7.2:2.6.1 \
7.3:2.6.1
7.3:beta
do
set -e
set -- $VERSION
PHP_VERSION=$1
XDEBUG_VERSION=$2
PHP_IMAGE="php:$PHP_VERSION-cli-alpine"
CONTAINER_NAME="json-machine-php-$PHP_VERSION"
docker ps -a | grep "$CONTAINER_NAME" && docker rm -f "$CONTAINER_NAME"
docker pull "$PHP_IMAGE"
printf "
FROM php:$PHP_VERSION-cli-alpine
FROM $PHP_IMAGE
RUN apk add --update \
autoconf \
g++ \