From f0e2d83618ddf1818da9279896a78d4d04ccdbcf Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 19 May 2016 03:06:34 +0300 Subject: [PATCH] add sqlite in the workspace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it could be removed to it’s own container later --- workspace/Dockerfile | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 689af99..8c7f548 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -11,14 +11,16 @@ ENV LC_CTYPE=UTF-8 ENV LANG=en_US.UTF-8 ENV TERM xterm -# Install "software-properties-common" (for add-apt-repository) and add the "PHP 7" ppa -RUN apt-get update \ - && apt-get install -y software-properties-common \ - && add-apt-repository -y ppa:ondrej/php +# Install "software-properties-common" (for the "add-apt-repository") +RUN apt-get update && apt-get install -y \ + software-properties-common -# Install PHP-CLI 7 and some useful Tools -RUN apt-get update \ - && apt-get install -y \ +# Add the "PHP 7" ppa +RUN add-apt-repository -y \ + ppa:ondrej/php + +# Install PHP-CLI 7, some PHP extentions and some useful Tools with APT +RUN apt-get update && apt-get install -y \ php7.0-cli \ php7.0-common \ php7.0-curl \ @@ -27,7 +29,11 @@ RUN apt-get update \ php7.0-mbstring \ php7.0-mcrypt \ php7.0-mysql \ + php7.0-sqlite \ + php7.0-sqlite3 \ php7.0-zip \ + sqlite3 \ + libsqlite3-dev \ git \ curl \ vim \ @@ -36,6 +42,17 @@ RUN apt-get update \ nodejs-dev \ npm +# Install gulp and bower with NPM +RUN npm install -g \ + gulp \ + bower + +# Add a symbolic link for Node +RUN ln -s /usr/bin/nodejs /usr/bin/node + +# Add an alias for PHPUnit +RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc + # Install Composer RUN curl -s http://getcomposer.org/installer | php \ && mv composer.phar /usr/local/bin/ \ @@ -45,15 +62,6 @@ RUN curl -s http://getcomposer.org/installer | php \ RUN composer.phar global require "laravel/installer" \ && echo "export PATH='~/.composer/vendor/bin:$PATH'" >> ~/.bashrc -# Install gulp and bower -RUN npm install -g gulp bower - -# Add a symbolic link -RUN ln -s /usr/bin/nodejs /usr/bin/node - -# Add an alias for PHPUnit -RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc - # Source the bash RUN . ~/.bashrc