Skip to content

Commit

Permalink
Updated images to be compatible with Apple chip. (#230)
Browse files Browse the repository at this point in the history
* Updated images to be compatible with Apple chip.

* Fixed permissions for the custom post-install script.

* Fixed check for file existence.
  • Loading branch information
Alex Skrypnyk authored Nov 22, 2021
1 parent c29c054 commit c757c4d
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ commands:

pull:
usage: Pull latest docker images.
cmd: if [ ! -z "$(docker image ls -q)" ]; then docker image ls --format \"{{.Repository}}:{{.Tag}}\" | grep amazeeio/ | grep -v none | xargs -n1 docker pull -q | cat; fi
cmd: if [ ! -z "$(docker image ls -q)" ]; then docker image ls --format \"{{.Repository}}:{{.Tag}}\" | grep uselagoon/ | grep -v none | xargs -n1 docker pull -q | cat; fi

cli:
usage: Start a shell or run a command inside the CLI service container.
Expand Down
4 changes: 2 additions & 2 deletions .docker/Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#
# All CLI operations performed in this container.
#
# @see https://hub.docker.com/r/amazeeio/php/tags?page=1&name=cli-drupal
# @see https://hub.docker.com/r/uselagoon/php/tags?page=1&name=cli-drupal
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/php/cli-drupal
FROM amazeeio/php:7.4-cli-drupal-21.7.0
FROM uselagoon/php-7.4-cli-drupal:21.11.0

# Set default values for environment variables. Any values provided in
# docker-compose.yml or .env file will override these values during build stage.
Expand Down
4 changes: 2 additions & 2 deletions .docker/Dockerfile.mariadb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# MariaDB container.
#
# @see https://hub.docker.com/r/amazeeio/mariadb-drupal/tags?page=1
# @see https://hub.docker.com/r/uselagoon/mariadb-drupal/tags?page=1
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/mariadb-drupal
#
# Use drevops/drevops-mariadb-drupal-data as a starting Docker image for your
# Database-in-Docker-image database.
# @see https://github.com/drevops/mariadb-drupal-data
ARG IMAGE

FROM ${IMAGE:-amazeeio/mariadb-drupal:21.7.0}
FROM ${IMAGE:-uselagoon/mariadb-drupal:21.11.0}

USER root
COPY ./.docker/config/mariadb/my.cnf /etc/my.cnf.d/server.cnf
Expand Down
4 changes: 2 additions & 2 deletions .docker/Dockerfile.nginx-drupal
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
ARG CLI_IMAGE
FROM ${CLI_IMAGE:-cli} as cli

# @see https://hub.docker.com/r/amazeeio/nginx-drupal/tags?page=1
# @see https://hub.docker.com/r/uselagoon/nginx-drupal/tags?page=1
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/nginx-drupal
FROM amazeeio/nginx-drupal:21.7.0
FROM uselagoon/nginx-drupal:21.11.0

ENV WEBROOT=docroot

Expand Down
4 changes: 2 additions & 2 deletions .docker/Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
ARG CLI_IMAGE
FROM ${CLI_IMAGE:-cli} as cli

# @see https://hub.docker.com/r/amazeeio/php/tags?page=1&name=fpm
# @see https://hub.docker.com/r/uselagoon/php/tags?page=1&name=fpm
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/php/fpm
FROM amazeeio/php:7.4-fpm-21.7.0
FROM uselagoon/php-7.4-fpm:21.11.0

COPY --from=cli /app /app
4 changes: 2 additions & 2 deletions .docker/Dockerfile.solr
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
ARG CLI_IMAGE
FROM ${CLI_IMAGE} as cli

# @see https://hub.docker.com/r/amazeeio/solr/tags?page=1&name=drupal
# @see https://hub.docker.com/r/uselagoon/solr/tags?page=1&name=drupal
# @see https://github.com/uselagoon/lagoon-images/tree/main/images/solr-drupal
FROM amazeeio/solr:6.6-drupal-21.7.0
FROM uselagoon/solr-7.7-drupal:21.11.0

# Uncomment below after installing search_api_solr Drupal module (it must exist
# in the codebase).
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ services:
context: .
dockerfile: .docker/Dockerfile.mariadb
args:
IMAGE: "${DATABASE_IMAGE:-amazeeio/mariadb-drupal:21.7.0}"
IMAGE: "${DATABASE_IMAGE:-uselagoon/mariadb-drupal:21.11.0}"
environment:
<<: *default-environment
ports:
Expand All @@ -189,7 +189,7 @@ services:
# Redis container.
# Used for caching.
redis:
image: amazeeio/redis:6-21.7.0
image: uselagoon/redis-6:21.11.0
# https://lagoon.readthedocs.io/en/latest/using_lagoon/service_types/#service-types
labels:
lagoon.type: redis
Expand Down
Empty file modified scripts/custom/drupal-install-site-enable-modules.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion scripts/drevops/drupal-install-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fi
# "drupal-install-site-" prefix and ".sh" extension.
if [ -d "${APP}/scripts/custom" ]; then
for file in "${APP}"/scripts/custom/drupal-install-site-*.sh; do
if [ -r "${file}" ]; then
if [ -f "${file}" ]; then
. "${file}"
fi
done
Expand Down

0 comments on commit c757c4d

Please sign in to comment.