-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to docker for local and CI.
- Loading branch information
1 parent
e7f7a88
commit aa1f403
Showing
23 changed files
with
806 additions
and
636 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
.circleci | ||
.git | ||
.idea | ||
*.md | ||
docker-compose* | ||
screenshots | ||
node_modules | ||
vendor | ||
docroot/sites/default/files | ||
|
||
# Ignore Drupal directories generated by Composer. | ||
drush/contrib/ | ||
docroot/core | ||
docroot/modules/contrib | ||
docroot/themes/contrib | ||
docroot/profiles/contrib | ||
docroot/libraries |
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,3 @@ | ||
COMPOSE_FILE=docker-compose.yml:docker-compose.local.yml | ||
MYSQL_HOST=mariadb | ||
MYSQL_PORT=3306 |
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
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,27 @@ | ||
FROM amazeeio/php:7.1-cli-drupal | ||
|
||
ENV WEBROOT=docroot \ | ||
COMPOSER_ALLOW_SUPERUSER=1 \ | ||
COMPOSER_CACHE_DIR=/tmp/.composer/cache \ | ||
MYSQL_HOST=mariadb | ||
|
||
RUN apk update \ | ||
&& apk del nodejs nodejs-current yarn \ | ||
&& apk add nodejs-npm patch rsync --update-cache --repository http://dl-3.alpinelinux.org/alpine/v3.7/main/ \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
ADD patches /app/patches | ||
ADD scripts /app/scripts | ||
|
||
COPY composer.json composer.lock /app/ | ||
COPY package.json package-lock.json Gruntfile.js /app/ | ||
|
||
RUN composer install --no-dev --optimize-autoloader --prefer-dist --ansi | ||
|
||
RUN npm install | ||
|
||
COPY . /app | ||
COPY .data/db.sql /tmp/.data/db.sql | ||
|
||
RUN npm run build | ||
RUN rm -rf /app/node_modules |
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,7 @@ | ||
FROM amazeeio/centos7-mariadb10-drupal | ||
|
||
USER root | ||
COPY docker/server.cnf /etc/my.cnf.d/server.cnf | ||
RUN fix-permissions /etc/my.cnf.d/ | ||
|
||
USER mysql |
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,11 @@ | ||
ARG CLI_IMAGE | ||
FROM ${CLI_IMAGE:-builder} as builder | ||
|
||
FROM amazeeio/nginx-drupal | ||
|
||
ENV WEBROOT=docroot | ||
|
||
COPY docker/drupal.conf /etc/nginx/conf.d/app.conf | ||
RUN fix-permissions /etc/nginx | ||
|
||
COPY --from=builder /app /app |
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,6 @@ | ||
ARG CLI_IMAGE | ||
FROM ${CLI_IMAGE:-builder} as builder | ||
|
||
FROM amazeeio/php:7.1-fpm | ||
|
||
COPY --from=builder /app /app |
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
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.