@@ -3,33 +3,27 @@ MAINTAINER james.nesbitt@wunderkraut.com
33
44# ## DRUPALCONSOLE ----------------------------------------------------------
55
6- # Install MariaDB
7- ADD etc/yum.repos.d/mariadb.repo etc/yum.repos.d/mariadb.repo
8- RUN /usr/bin/yum --assumeyes --verbose install MariaDB-client
9-
106# Prepare to use the remi repo for PHP: our .repo file has certain repos enabled=1
117ADD root/remi-release-7.rpm /root/remi-release-7.rpm
128RUN /usr/bin/rpm -Uvh /root/remi-release-7.rpm
139ADD etc/yum.repos.d/remi.repo /etc/yum.repos.d/remi.repo
1410ADD etc/yum.repos.d/remi-php70.repo /etc/yum.repos.d/remi-php70.repo
1511
16- # Install php-fpm
1712RUN /usr/bin/yum install --assumeyes --verbose \
18- php-cli php-pdo php-mysql php-pgsql php-ldap php-gd php-mbstring php-mcrypt php-xml \
19- php-opcache php-pecl-uploadprogress
20-
21- # Install some tools that are used for composer and user handling
22- RUN /usr/bin/yum --assumeyes --verbose install openssl tar git
13+ php-cli php-opcache php-pdo php-mysql php-pgsql php-ldap \
14+ php-gd php-mbstring php-mcrypt php-xml php-soap php-json \
15+ php-pecl-uploadprogress php-pecl-apcu php-pecl-geoip
2316
2417# Add some php extension configuraiton overrides
2518ADD etc/php.d/01-defaultdatezone.ini /etc/php.d/01-defaultdatezone.ini
2619ADD etc/php.d/40-apcu.ini /etc/php.d/40-apcu.ini
2720
28- # Install blackfire
29- ADD etc/yum.repos.d/blackfire.repo /etc/yum.repos.d/blackfire.repo
30- RUN /usr/bin/yum install -y install pygpgme blackfire-php
31- # Add some php extension configuraiton overrides
32- ADD etc/php.d/zz-blackfire.ini /etc/php.d/zz-blackfire.ini
21+ # Install MariaDB
22+ ADD etc/yum.repos.d/mariadb.repo etc/yum.repos.d/mariadb.repo
23+ RUN /usr/bin/yum --assumeyes --verbose install MariaDB-client
24+
25+ # Install some tools that are used for composer and user handling
26+ RUN /usr/bin/yum --assumeyes --verbose install openssl tar git
3327
3428# Install composer which will be used to install drush
3529RUN /usr/bin/curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin
@@ -47,30 +41,27 @@ RUN /usr/bin/mkdir /app/.drush && \
4741 /usr/bin/mkdir /app/.ssh && \
4842 /usr/bin/chown -R app:app /app/.ssh
4943
50- # Everything else is run as the platform user
44+ # Everything else is run as the application user
5145USER app
5246
53- # Install nodejs and npm, which gets used for lots of stuff with SASS/SCSS
54- # RUN /usr/bin/yum install --assumeyes --verbose nodejs npm
55- # RUN /usr/bin/npm install gulp -g
56-
5747# Make sure that the composer items are in path
5848ENV PATH /app/bin:/app/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
5949
60- # Install Drupal console
61- RUN /usr/local/bin/composer global require drupal/console:dev-master
50+ # set up some env variables to make using easier.
51+ ENV TERM= "xterm"
6252
63- # Install DRUSH, which is can be run by drush
64- RUN /usr/local/bin/composer global require drush/drush:dev-master drush/config-extra
53+ # Install nodejs and npm, which gets used for lots of stuff with SASS/SCSS
54+ # RUN /usr/bin/yum install --assumeyes --verbose nodejs npm
55+ # RUN /usr/bin/npm install gulp -g
6556
66- # Get some additional suggested packages
67- RUN /usr/local/bin/composer global require pear/Console_Color2
57+ # Install DRUSH, which is a requiremnt for platform
58+ RUN /usr/local/bin/composer global require drush/drush:dev-master drush/config-extra
6859
69- # Some usefull env variables
70- ENV TERM=xterm
60+ # Install Drupal Console
61+ RUN /usr/local/bin/composer global require drupal/console
7162
7263WORKDIR "/app/www/active"
73- ENTRYPOINT ["/app/.composer/vendor/bin/console" , "--ansi" , "--drupal=/app/www/active" ]
74- CMD "--shell"
64+ ENTRYPOINT ["/app/.composer/vendor/bin/console" , "--ansi" ]
65+ CMD [ "--shell" ]
7566
7667# ## /DRUPALCONSOLE ---------------------------------------------------------------=
0 commit comments