Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'origin/develop' for release 0.5.1
  • Loading branch information
davidalger committed May 28, 2020
2 parents 422280f + c399f05 commit 79eef37
Show file tree
Hide file tree
Showing 37 changed files with 61 additions and 42 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-image-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/elasticsearch/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-mailhog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/mailhog/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/mariadb/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/mysql/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/nginx/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-php-fpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/php-fpm/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-rabbitmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/rabbitmq/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/redis/**
branches:
- develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image-varnish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
paths:
- version
- images/.trigger
- images/varnish/**
branches:
- develop
Expand Down
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@
## UNRELEASED [x.y.z](https://github.com/davidalger/warden/tree/x.y.z) (yyyy-mm-dd)
[All Commits](https://github.com/davidalger/warden/compare/0.5.0..develop)

## Version [0.5.1](https://github.com/davidalger/warden/tree/0.5.1) (2020-05-28)
[All Commits](https://github.com/davidalger/warden/compare/0.5.0..0.5.1)

**Upgrade Notes:**

All docker images have been re-located to a [new Docker Hub organization](https://hub.docker.com/u/wardenenv) created specifically for use with Warden. All built-in environment types having been updated to reference the images on `docker.io/wardenenv` rather than `quay.io/warden`. Images currently on Quay will remain available (for at least the next 90-days) in order to preserve functionality of Warden prior to the 0.5.1 release, but these will no longer be updated and are considered deprecated immediately. Where references to `quay.io/warden` exist in per-project configuration within the `.warden` directory, it is strongly recommended these references be updated to use images from `docker.io/wardenenv`. You can quickly check an environment's configuration for references to images on Quay via the following command:

```
warden env config | grep quay.io
```

The backstory, and reason for moving the images, is that in Warden 0.2.0 (circa January 2020) images were relocated from a single Docker Hub repository to individual repositories on Quay.io both as a means of breaking down a mon-repo and also to leverage images scanning of Quay.io. Since that time, Quay.io has had multiple outages, including a recent one which lasted for 19 hours with intermittent inability to pull images as even read-only operations were failing as the service failed to be scaled. This morning [Quay.io is down yet again](https://github.com/davidalger/warden/issues/157), prompting all-out inability to pull images. Given the saddening instability of Quay.io and the inability to [setup a local mirror as you can with Docker Hub](https://docs.docker.com/registry/recipes/mirror/) it has become painstakingly obvious that the images must be moved back to Docker Hub for a long-term and stable home, with the added benefit that you will now be able to use a local registry service as a pass-through mirror for reducing network bandwidth and/or ensuring you have a copy of all images local to your network should at any time Docker Hub encounter issues in the future.

The new long-term home for Warden docker images can be found here at [https://hub.docker.com/u/wardenenv](https://hub.docker.com/u/wardenenv).

**Change Summary:**

* Updated images to reside in the `docker.io/wardenenv` registry on [Docker Hub](https://hub.docker.com/u/wardenenv)
* Removed usages of images previously on `quay.io/warden`
* Deprecated images on `quay.io/warden` for planned removal at some point in the future (to be not less than 90-days from today)

## Version [0.5.0](https://github.com/davidalger/warden/tree/0.5.0) (2020-05-21)
[All Commits](https://github.com/davidalger/warden/compare/0.4.4..0.5.0)

Expand Down Expand Up @@ -200,7 +221,7 @@ Please reference the updated [base environment definitions](https://github.com/d

Environments referencing `laravel.conf` in custom configuration within `.warden` directory must update their configuration to reference the generic `application.conf` instead as the file was renamed in the Nginx image for re-use in the future on additional environment types.

Docker images have all been re-located and/or mirrored to Quay with all built-in environment types having been updated to reference the images at the new location. Images currently on Docker Hub will remain available in order to preserve functionality of Warden 0.1.x release line, but will no longer be updated and compatibility with all functionality in Warden 0.2.0 is not guaranteed. Where these images are referenced in per-project configuration within the `.warden` directory, it is strongly suggested these references be updated to use images at the new locations:
Docker images have all been re-located and/or mirrored to Quay with all built-in environment types having been updated to reference the images at the new location. Images currently on Docker Hub will remain available in order to preserve functionality of Warden 0.1.x release line *(**UPDATE** These images have been removed as of May 28th, 2020)*, but will no longer be updated and compatibility with all functionality in Warden 0.2.0 is not guaranteed. Where these images are referenced in per-project configuration within the `.warden` directory, it is strongly suggested these references be updated to use images at the new locations:

* [https://quay.io/repository/warden/varnish?tab=tags](https://quay.io/repository/warden/varnish?tab=tags)
* [https://quay.io/repository/warden/redis?tab=tags](https://quay.io/repository/warden/redis?tab=tags)
Expand Down
14 changes: 1 addition & 13 deletions docs/images.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
## Docker Images

Each of the docker images used by Warden environments are published on Quay: [https://quay.io/warden](https://quay.io/warden). Source files used to build these images may be found in the `images` directory of the main project repository. Github Actions are used to automatically build and push new images to Quay when image sources are modified.

Please reference the following pages for a list of available image versions:

* [https://quay.io/repository/warden/varnish?tab=tags](https://quay.io/repository/warden/varnish?tab=tags)
* [https://quay.io/repository/warden/redis?tab=tags](https://quay.io/repository/warden/redis?tab=tags)
* [https://quay.io/repository/warden/rabbitmq?tab=tags](https://quay.io/repository/warden/rabbitmq?tab=tags)
* [https://quay.io/repository/warden/php-fpm?tab=tags](https://quay.io/repository/warden/php-fpm?tab=tags)
* [https://quay.io/repository/warden/nginx?tab=tags](https://quay.io/repository/warden/nginx?tab=tags)
* [https://quay.io/repository/warden/mariadb?tab=tags](https://quay.io/repository/warden/mariadb?tab=tags)
* [https://quay.io/repository/warden/mysql?tab=tags](https://quay.io/repository/warden/mysql?tab=tags)
* [https://quay.io/repository/warden/mailhog?tab=tags](https://quay.io/repository/warden/mailhog?tab=tags)
* [https://quay.io/repository/warden/elasticsearch?tab=tags](https://quay.io/repository/warden/elasticsearch?tab=tags)
Each of the docker images used by Warden environments are published on Docker Hub: [https://hub.docker.com/u/wardenenv](https://hub.docker.com/u/wardenenv). Source files used to build these images may be found in the `images` directory of the main project repository. Github Actions are used to automatically build and push new images to Docker Hub when image sources are modified. Please refer to the repositories on Docker Hub for a list of available image versions and tags.
2 changes: 1 addition & 1 deletion environments/includes/blackfire.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ x-extra_hosts: &extra_hosts
services:
php-blackfire:
hostname: "${WARDEN_ENV_NAME}-php-blackfire"
image: quay.io/warden/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}-blackfire
image: docker.io/wardenenv/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}-blackfire
environment:
- TRAEFIK_DOMAIN
- TRAEFIK_SUBDOMAIN
Expand Down
2 changes: 1 addition & 1 deletion environments/includes/elasticsearch.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.5"
services:
elasticsearch:
hostname: "${WARDEN_ENV_NAME}-elasticsearch"
image: quay.io/warden/elasticsearch:${ELASTICSEARCH_VERSION:-6.8}
image: docker.io/wardenenv/elasticsearch:${ELASTICSEARCH_VERSION:-6.8}
labels:
- traefik.enable=true
- traefik.http.routers.${WARDEN_ENV_NAME}-elasticsearch.tls=true
Expand Down
2 changes: 1 addition & 1 deletion environments/includes/mailhog.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.5"
services:
mailhog:
hostname: "${WARDEN_ENV_NAME}-mailhog"
image: quay.io/warden/mailhog:${MAILHOG_VERSION:-1.0}
image: docker.io/wardenenv/mailhog:${MAILHOG_VERSION:-1.0}
labels:
- traefik.enable=true
- traefik.http.routers.${WARDEN_ENV_NAME}-mailhog.tls=true
Expand Down
2 changes: 1 addition & 1 deletion environments/includes/nginx.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.5"
services:
nginx:
hostname: "${WARDEN_ENV_NAME}-nginx"
image: quay.io/warden/nginx:${NGINX_VERSION:-1.16}
image: docker.io/wardenenv/nginx:${NGINX_VERSION:-1.16}
depends_on:
- php-fpm
labels:
Expand Down
4 changes: 2 additions & 2 deletions environments/includes/php-fpm.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ x-extra_hosts: &extra_hosts
services:
php-fpm:
hostname: "${WARDEN_ENV_NAME}-php-fpm"
image: quay.io/warden/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}
image: docker.io/wardenenv/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}
environment:
- TRAEFIK_DOMAIN
- TRAEFIK_SUBDOMAIN
Expand All @@ -23,7 +23,7 @@ services:

php-debug:
hostname: "${WARDEN_ENV_NAME}-php-debug"
image: quay.io/warden/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}-debug
image: docker.io/wardenenv/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}-debug
environment:
- TRAEFIK_DOMAIN
- TRAEFIK_SUBDOMAIN
Expand Down
2 changes: 1 addition & 1 deletion environments/includes/rabbitmq.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.5"
services:
rabbitmq:
hostname: "${WARDEN_ENV_NAME}-rabbitmq"
image: quay.io/warden/rabbitmq:${RABBITMQ_VERSION:-3.7}
image: docker.io/wardenenv/rabbitmq:${RABBITMQ_VERSION:-3.7}
labels:
- traefik.enable=true
- traefik.http.routers.${WARDEN_ENV_NAME}-rabbitmq.tls=true
Expand Down
2 changes: 1 addition & 1 deletion environments/includes/redis.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ version: "3.5"
services:
redis:
hostname: "${WARDEN_ENV_NAME}-redis"
image: quay.io/warden/redis:${REDIS_VERSION:-5.0}
image: docker.io/wardenenv/redis:${REDIS_VERSION:-5.0}
2 changes: 1 addition & 1 deletion environments/includes/varnish.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:

varnish:
hostname: "${WARDEN_ENV_NAME}-varnish"
image: quay.io/warden/varnish:${VARNISH_VERSION:-6.0}
image: docker.io/wardenenv/varnish:${VARNISH_VERSION:-6.0}
depends_on:
- nginx
labels:
Expand Down
2 changes: 1 addition & 1 deletion environments/laravel/laravel.db.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:

db:
hostname: "${WARDEN_ENV_NAME}-mariadb"
image: quay.io/warden/mariadb:${MARIADB_VERSION:-10.3}
image: docker.io/wardenenv/mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-laravel}
- MYSQL_DATABASE=${MYSQL_DATABASE:-laravel}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento1/magento1.db.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:

db:
hostname: "${WARDEN_ENV_NAME}-mariadb"
image: quay.io/warden/mariadb:${MARIADB_VERSION:-10.3}
image: docker.io/wardenenv/mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
- MYSQL_DATABASE=${MYSQL_DATABASE:-magento}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2/magento2.db.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:

db:
hostname: "${WARDEN_ENV_NAME}-mariadb"
image: quay.io/warden/mariadb:${MARIADB_VERSION:-10.3}
image: docker.io/wardenenv/mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
- MYSQL_DATABASE=${MYSQL_DATABASE:-magento}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2/magento2.splitdb.checkout.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:

checkoutdb:
hostname: "${WARDEN_ENV_NAME}-checkoutdb"
image: quay.io/warden/mariadb:${MARIADB_VERSION:-10.3}
image: docker.io/wardenenv/mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
- MYSQL_DATABASE=${MYSQL_DATABASE:-magento}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2/magento2.splitdb.sales.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:

salesdb:
hostname: "${WARDEN_ENV_NAME}-salesdb"
image: quay.io/warden/mariadb:${MARIADB_VERSION:-10.3}
image: docker.io/wardenenv/mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
- MYSQL_DATABASE=${MYSQL_DATABASE:-magento}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2/magento2.tests.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.5"
services:
tmp-mysql:
hostname: "${WARDEN_ENV_NAME}-mysql"
image: quay.io/warden/mysql:5.7
image: docker.io/wardenenv/mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
- MYSQL_DATABASE=magento_integration_tests
Expand Down
2 changes: 1 addition & 1 deletion environments/symfony/symfony.db.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:

db:
hostname: "${WARDEN_ENV_NAME}-mariadb"
image: quay.io/warden/mariadb:${MARIADB_VERSION:-10.3}
image: docker.io/wardenenv/mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-symfony}
- MYSQL_DATABASE=${MYSQL_DATABASE:-symfony}
Expand Down
1 change: 1 addition & 0 deletions images/.trigger
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0b32907e-d50d-45d6-ad25-badeb69517f8
2 changes: 1 addition & 1 deletion images/php-fpm/blackfire/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION=
FROM quay.io/warden/php-fpm:${PHP_VERSION}
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}
USER root

RUN yum install -y pygpgme \
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/debug/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION=
FROM quay.io/warden/php-fpm:${PHP_VERSION}
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}
USER root

RUN set -eux \
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/magento1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION
FROM quay.io/warden/php-fpm:${PHP_VERSION}
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}
USER root

RUN npm install -g grunt-cli gulp yarn
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/magento1/blackfire/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION
FROM quay.io/warden/php-fpm:${PHP_VERSION}-magento1
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}-magento1
USER root

RUN yum install -y pygpgme \
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/magento1/debug/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION
FROM quay.io/warden/php-fpm:${PHP_VERSION}-magento1
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}-magento1
USER root

RUN set -eux \
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/magento2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION
FROM quay.io/warden/php-fpm:${PHP_VERSION}
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}
USER root

# Resolve permission issues stemming from directories auto-created by docker due to mounts in sub-directories
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/magento2/blackfire/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION
FROM quay.io/warden/php-fpm:${PHP_VERSION}-magento2
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}-magento2
USER root

RUN yum install -y pygpgme \
Expand Down
2 changes: 1 addition & 1 deletion images/php-fpm/magento2/debug/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PHP_VERSION
FROM quay.io/warden/php-fpm:${PHP_VERSION}-magento2
FROM docker.io/wardenenv/php-fpm:${PHP_VERSION}-magento2
USER root

RUN set -eux \
Expand Down
6 changes: 3 additions & 3 deletions images/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ fi
if [[ ${PUSH_FLAG} ]]; then
if [[ ${DOCKER_USERNAME:-} ]]; then
echo "Attempting non-interactive docker login (via provided credentials)"
echo "${DOCKER_PASSWORD:-}" | docker login -u "${DOCKER_USERNAME:-}" --password-stdin ${DOCKER_REGISTRY:-quay.io}
echo "${DOCKER_PASSWORD:-}" | docker login -u "${DOCKER_USERNAME:-}" --password-stdin ${DOCKER_REGISTRY:-docker.io}
elif [[ -t 1 ]]; then
echo "Attempting interactive docker login (tty)"
docker login ${DOCKER_REGISTRY:-quay.io}
docker login ${DOCKER_REGISTRY:-docker.io}
fi
fi

## iterate over and build each Dockerfile
for file in $(find ${SEARCH_PATH} -type f -name Dockerfile | sort -V); do
BUILD_DIR="$(dirname "${file}")"
IMAGE_TAG="quay.io/warden/$(echo "${BUILD_DIR}" | cut -d/ -f1)"
IMAGE_TAG="docker.io/wardenenv/$(echo "${BUILD_DIR}" | cut -d/ -f1)"
IMAGE_SUFFIX="$(echo "${BUILD_DIR}" | cut -d/ -f2- -s | tr / - | sed 's/^-//')"

## due to build matrix requirements, magento1 and magento2 specific varients are built in separate invocation
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0
0.5.1

0 comments on commit 79eef37

Please sign in to comment.