From 0b902e3e9601b2e28366962dfdcb083ffa04ecfd Mon Sep 17 00:00:00 2001 From: Taufek Johar Date: Wed, 17 Jan 2018 10:20:58 +0800 Subject: [PATCH] Install Prestissimo in Workspace **Why we need this change?** [Prestissimo](https://github.com/hirak/prestissimo) will enabled `composer` to install plugins in parallel. **Source** http://jackmcdade.com/blog/tired-of-waiting --- docker-compose.yml | 1 + env-example | 1 + workspace/Dockerfile-56 | 13 +++++++++++++ workspace/Dockerfile-70 | 13 +++++++++++++ workspace/Dockerfile-71 | 13 +++++++++++++ 5 files changed, 41 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index d2fb4ae6..ed639422 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,7 @@ services: - INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY} - INSTALL_LARAVEL_INSTALLER=${WORKSPACE_INSTALL_LARAVEL_INSTALLER} - INSTALL_DEPLOYER=${WORKSPACE_INSTALL_DEPLOYER} + - INSTALL_PRESTISSIMO=${WORKSPACE_INSTALL_PRESTISSIMO} - INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LINUXBREW} - INSTALL_MC=${WORKSPACE_INSTALL_MC} - INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY} diff --git a/env-example b/env-example index c3d103d5..cca99d66 100644 --- a/env-example +++ b/env-example @@ -77,6 +77,7 @@ WORKSPACE_INSTALL_WORKSPACE_SSH=false WORKSPACE_INSTALL_LARAVEL_ENVOY=false WORKSPACE_INSTALL_LARAVEL_INSTALLER=false WORKSPACE_INSTALL_DEPLOYER=false +WORKSPACE_INSTALL_PRESTISSIMO=false WORKSPACE_INSTALL_LINUXBREW=false WORKSPACE_INSTALL_MC=false WORKSPACE_INSTALL_SYMFONY=false diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index 43a285cd..f42bb099 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -453,6 +453,19 @@ RUN if [ ${INSTALL_DEPLOYER} = true ]; then \ composer global require "deployer/deployer" \ ;fi +##################################### +# Prestissimo: +##################################### +USER laradock + +ARG INSTALL_PRESTISSIMO=false +ENV INSTALL_PRESTISSIMO ${INSTALL_PRESTISSIMO} + +RUN if [ ${INSTALL_PRESTISSIMO} = true ]; then \ + # Install Prestissimo + composer global require "hirak/prestissimo" \ +;fi + ##################################### # Linuxbrew: ##################################### diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index d815278c..fe4da019 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -466,6 +466,19 @@ RUN if [ ${INSTALL_DEPLOYER} = true ]; then \ composer global require "deployer/deployer" \ ;fi +##################################### +# Prestissimo: +##################################### +USER laradock + +ARG INSTALL_PRESTISSIMO=false +ENV INSTALL_PRESTISSIMO ${INSTALL_PRESTISSIMO} + +RUN if [ ${INSTALL_PRESTISSIMO} = true ]; then \ + # Install Prestissimo + composer global require "hirak/prestissimo" \ +;fi + ##################################### # Linuxbrew: ##################################### diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 3a1a0aba..d0e4d84d 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -467,6 +467,19 @@ RUN if [ ${INSTALL_DEPLOYER} = true ]; then \ composer global require "deployer/deployer" \ ;fi +##################################### +# Prestissimo: +##################################### +USER laradock + +ARG INSTALL_PRESTISSIMO=false +ENV INSTALL_PRESTISSIMO ${INSTALL_PRESTISSIMO} + +RUN if [ ${INSTALL_PRESTISSIMO} = true ]; then \ + # Install Prestissimo + composer global require "hirak/prestissimo" \ +;fi + ##################################### # Linuxbrew: #####################################