Skip to content

Commit

Permalink
Merge branch 'release/1.2.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Jun 11, 2021
2 parents 3b4b51d + f37e061 commit 655816e
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 108 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# nystudio107/docker-images Change Log

## 1.2.15 - 2021.06.11
### Changed
* Cleaned up the `php-dev-craft` & `php-prod-craft` Dockerfile file permissions

## 1.2.14 - 2021.06.11
### Added
* Added GitHub actions for automated Docker image building & pushing
Expand Down
13 changes: 5 additions & 8 deletions php-dev-craft/php-7.4-alpine/mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ RUN set -eux; \

WORKDIR /var/www/project

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources
RUN mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand Down
13 changes: 5 additions & 8 deletions php-dev-craft/php-7.4-alpine/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ RUN set -eux; \

WORKDIR /var/www/project

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources
RUN mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand Down
13 changes: 5 additions & 8 deletions php-dev-craft/php-8.0-alpine/mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ RUN set -eux; \

WORKDIR /var/www/project

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources
RUN mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand Down
13 changes: 5 additions & 8 deletions php-dev-craft/php-8.0-alpine/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ RUN set -eux; \

WORKDIR /var/www/project

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources
RUN mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand Down
26 changes: 7 additions & 19 deletions php-prod-craft/php-7.4-alpine/mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,13 @@ RUN set -eux; \
WORKDIR /var/www/project

COPY ./run_queue.sh .
RUN chmod a+x run_queue.sh

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources

# Permissions
RUN chown -R www-data:www-data /var/www/project/cms/web
RUN chmod a+x run_queue.sh \
&& \
mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand All @@ -75,12 +69,6 @@ USER www-data
# but saves far more time in not having to deal with out of sync versions
# when working with teams or multiple environments
CMD composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction \
&& \
chown -R www-data:www-data /var/www/project/cms/vendor \
&& \
chown -R www-data:www-data /var/www/project/cms/storage \
&& \
chown -R www-data:www-data /var/www/project/cms/web \
&& \
composer craft-update \
&& \
Expand Down
26 changes: 7 additions & 19 deletions php-prod-craft/php-7.4-alpine/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,13 @@ RUN set -eux; \
WORKDIR /var/www/project

COPY ./run_queue.sh .
RUN chmod a+x run_queue.sh

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources

# Permissions
RUN chown -R www-data:www-data /var/www/project/cms/web
RUN chmod a+x run_queue.sh \
&& \
mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand All @@ -77,12 +71,6 @@ USER www-data
# but saves far more time in not having to deal with out of sync versions
# when working with teams or multiple environments
CMD composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction \
&& \
chown -R www-data:www-data /var/www/project/cms/vendor \
&& \
chown -R www-data:www-data /var/www/project/cms/storage \
&& \
chown -R www-data:www-data /var/www/project/cms/web \
&& \
composer craft-update \
&& \
Expand Down
26 changes: 7 additions & 19 deletions php-prod-craft/php-8.0-alpine/mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,13 @@ RUN set -eux; \
WORKDIR /var/www/project

COPY ./run_queue.sh .
RUN chmod a+x run_queue.sh

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources

# Permissions
RUN chown -R www-data:www-data /var/www/project/cms/web
RUN chmod a+x run_queue.sh \
&& \
mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand All @@ -75,12 +69,6 @@ USER www-data
# but saves far more time in not having to deal with out of sync versions
# when working with teams or multiple environments
CMD composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction \
&& \
chown -R www-data:www-data /var/www/project/cms/vendor \
&& \
chown -R www-data:www-data /var/www/project/cms/storage \
&& \
chown -R www-data:www-data /var/www/project/cms/web \
&& \
composer craft-update \
&& \
Expand Down
26 changes: 7 additions & 19 deletions php-prod-craft/php-8.0-alpine/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,13 @@ RUN set -eux; \
WORKDIR /var/www/project

COPY ./run_queue.sh .
RUN chmod a+x run_queue.sh

# Create the storage directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/storage && \
mkdir -p /var/www/project/cms/storage/runtime && \
chown -R www-data:www-data /var/www/project/cms/storage

# Create the cpresources directory and make it writeable by PHP
RUN mkdir -p /var/www/project/cms/web/cpresources && \
chown -R www-data:www-data /var/www/project/cms/web/cpresources

# Permissions
RUN chown -R www-data:www-data /var/www/project/cms/web
RUN chmod a+x run_queue.sh \
&& \
mkdir -p /var/www/project/cms/storage \
&& \
mkdir -p /var/www/project/cms/web/cpresources \
&& \
chown -R www-data:www-data /var/www/project

WORKDIR /var/www/project/cms

Expand All @@ -77,12 +71,6 @@ USER www-data
# but saves far more time in not having to deal with out of sync versions
# when working with teams or multiple environments
CMD composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction \
&& \
chown -R www-data:www-data /var/www/project/cms/vendor \
&& \
chown -R www-data:www-data /var/www/project/cms/storage \
&& \
chown -R www-data:www-data /var/www/project/cms/web \
&& \
composer craft-update \
&& \
Expand Down

0 comments on commit 655816e

Please sign in to comment.