Skip to content

Commit

Permalink
Merge pull request #81 from shopwareLabs/add-docker
Browse files Browse the repository at this point in the history
Add a Dockerfile and a run script
  • Loading branch information
JanPietrzyk authored Feb 3, 2019
2 parents d8ac27f + b6cf8f7 commit 1ece6c5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:7.1-cli

ENV COMPOSER_CACHE_DIR=/.composer/cache

ADD php-config.ini /usr/local/etc/php/conf.d/php-config.ini

RUN apt-get update -qq && apt-get install -y -qq libbz2-dev \
&& docker-php-ext-install bz2 \
&& pecl install xdebug-2.6.0 \
&& docker-php-ext-enable xdebug

WORKDIR /psh
4 changes: 4 additions & 0 deletions docker/php-config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
phar.readonly=0

max_execution_time=0
memory_limit=-1
9 changes: 9 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e

PRES=${1:-""}
docker build -t psh docker/.

docker run -it --rm -v "$(pwd)":/psh -w /psh -u 1000:1000 psh \
/bin/bash -c "./psh ${PRES}"

0 comments on commit 1ece6c5

Please sign in to comment.