-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from shopwareLabs/add-docker
Add a Dockerfile and a run script
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
phar.readonly=0 | ||
|
||
max_execution_time=0 | ||
memory_limit=-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |