Skip to content

Commit

Permalink
Create a builder based on PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eXistenZNL authored Apr 4, 2018
1 parent dddae26 commit e390b76
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
matrix:
include:
- env: PHP_VERSION=5.6
- env: PHP_VERSION=7.0
- env: PHP_VERSION=7.1
- env: PHP_VERSION=7.2

Expand Down
55 changes: 55 additions & 0 deletions Dockerfile-7.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM alpine:3.5

MAINTAINER [email protected]

ENV LANG='en_US.UTF-8' LANGUAGE='en_US.UTF-8' TERM='xterm' DOCKER_HOST='docker'

RUN apk -U --no-cache add \
alpine-sdk \
autoconf \
automake \
build-base \
curl \
docker \
git \
libjpeg-turbo \
libjpeg-turbo-dev \
libpng \
libpng-dev \
libwebp \
libwebp-dev \
make \
nasm \
nodejs \
openssh \
php7 \
php7-ctype \
php7-curl \
php7-dom \
php7-gettext \
php7-gd \
php7-gmp \
php7-iconv \
php7-json \
php7-ldap \
php7-mbstring \
php7-mcrypt \
php7-openssl \
php7-pcntl \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-phar \
php7-session \
php7-snmp \
php7-xdebug \
php7-xml \
php7-xmlreader \
php7-zip \
php7-zlib \
&& ln -s /usr/bin/php7 /usr/bin/php \
&& curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& npm install -g yarn \
&& sed -i 's/;zend/zend/g' /etc/php7/conf.d/xdebug.ini

COPY cache-tool.sh /usr/local/bin/cache-tool
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build run clean
.PHONY: build run stop clean test

# Variables
PROJECTNAME=existenz/builder
Expand All @@ -25,6 +25,7 @@ clean:
test:
if [ "$(TAGNAME)" = "UNDEF" ]; then echo "please provide a valid TAGNAME" && exit 1; fi
docker exec -t existenz_builder_instance php --version | grep -q "PHP $(TAGNAME)"
docker exec -t existenz_builder_instance php --version | grep -q "Xdebug"
docker exec -t existenz_builder_instance composer --version > /dev/null
docker exec -t existenz_builder_instance node --version > /dev/null
docker exec -t existenz_builder_instance npm --version > /dev/null
Expand Down

0 comments on commit e390b76

Please sign in to comment.