This repository has been archived by the owner on Dec 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a Dockerfile and docker-compose file
First pass at starting up a blank Boston.gov install with a few repeatable commands. Major change is to run the "update" functions inside the hook_installs for the bos_profile and bos_core. This is based on the assumption that upgrading in production will not run hook_install. Currently only tested for Boston.gov, not for The Hub.
- Loading branch information
Fin Hopkins
committed
Jan 24, 2018
1 parent
5043399
commit 6312abd
Showing
19 changed files
with
2,279 additions
and
1,530 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,5 @@ | ||
Dockerfile | ||
docker-compose.yml | ||
|
||
/node_modules | ||
/vendor |
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,26 @@ | ||
FROM php:5.6-apache | ||
|
||
WORKDIR /boston.gov | ||
ENV APACHE_DOCUMENT_ROOT /boston.gov/docroot | ||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \ | ||
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf && \ | ||
a2enmod rewrite | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends git zip unzip bzip2 rsync nodejs libgd-dev mysql-client && \ | ||
docker-php-ext-install pdo_mysql gd | ||
RUN curl --silent --show-error https://getcomposer.org/installer | php | ||
RUN mv composer.phar /usr/local/bin/composer | ||
|
||
ADD default.php.ini /usr/local/etc/php/php.ini | ||
|
||
ADD package.json package-lock.json /boston.gov/ | ||
RUN npm install | ||
|
||
ADD composer.json composer.lock /boston.gov/ | ||
RUN composer install | ||
RUN ln -s vendor/drush/drush/drush /usr/local/bin/drush | ||
|
||
ADD . /boston.gov | ||
RUN ./task.sh setup:build:make |
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
Oops, something went wrong.