Skip to content

Commit

Permalink
Merge branch '6.x' into build/DDS-1584
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksantamaria committed Jan 16, 2024
2 parents a779dbe + 7c79d34 commit 83334d1
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 15 deletions.
4 changes: 2 additions & 2 deletions gh-actions-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ target "php-cli" {

labels = {
"org.opencontainers.image.description" = "PHP Drupal CLI image for Bay container platform"
"org.opencontainers.image.source" = "https://github.com/dpc-sdp/bay/blob/5.x/images/bay-php/Dockerfile.cli"
"org.opencontainers.image.source" = "https://github.com/dpc-sdp/bay/blob/6.x/images/bay-php/Dockerfile.cli"
}
}
target "php-fpm" {
Expand All @@ -72,7 +72,7 @@ target "php-fpm" {

labels = {
"org.opencontainers.image.description" = "PHP-FPM image for Bay container platform"
"org.opencontainers.image.source" = "https://github.com/dpc-sdp/bay/blob/5.x/images/bay-php/Dockerfile.fpm"
"org.opencontainers.image.source" = "https://github.com/dpc-sdp/bay/blob/6.x/images/bay-php/Dockerfile.fpm"
}
}
target "ripple-static" {
Expand Down
6 changes: 5 additions & 1 deletion images/awx-ee/execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ additional_build_steps:
prepend_final:
- LABEL org.opencontainers.image.authors="Digital Victoria"
- LABEL org.opencontainers.image.description="Provides an AWX execution environment image optimised for use with SDP."
- LABEL org.opencontainers.image.source="https://github.com/dpc-sdp/bay/blob/5.x/images/awx-ee/context/Dockerfile"
- LABEL org.opencontainers.image.source="https://github.com/dpc-sdp/bay/blob/6.x/images/awx-ee/context/Dockerfile"
- ARG LAGOON_CLI_VERSION=v0.15.4
- ARG NVM_INSTALL_VERSION=v0.39.1
- ARG NODE_VERSION=v14.15.1
Expand Down Expand Up @@ -70,3 +70,7 @@ additional_build_steps:
- RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$NVM_INSTALL_VERSION/install.sh | bash
- RUN curl -L "https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz" -o /tmp/helm && tar -xvf /tmp/helm -C /tmp && mv /tmp/linux-amd64/helm /usr/local/bin
- RUN chmod +x /usr/local/bin/helm
- RUN curl -L https://github.com/google/yamlfmt/releases/download/v0.10.0/yamlfmt_0.10.0_Linux_x86_64.tar.gz --output /tmp/yamlfmt_0.10.0_Linux_x86_64.tar.gz
- RUN tar -C /tmp -xvf /tmp/yamlfmt_0.10.0_Linux_x86_64.tar.gz
- RUN chmod +x /tmp/yamlfmt
- RUN mv /tmp/yamlfmt /usr/local/bin
2 changes: 1 addition & 1 deletion images/bay-php_goss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

ARG BASE_IMAGE
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.source="https://github.com/dpc-sdp/bay/blob/5.x/images/bay-php_goss/Dockerfile"
LABEL org.opencontainers.image.source="https://github.com/dpc-sdp/bay/blob/6.x/images/bay-php_goss/Dockerfile"
2 changes: 1 addition & 1 deletion images/bay-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM uselagoon/php-7.4-cli-drupal:latest
LABEL org.opencontainers.image.source="https://github.com/dpc-sdp/bay/blob/5.x/images/bay-test/Dockerfile"
LABEL org.opencontainers.image.source="https://github.com/dpc-sdp/bay/blob/6.x/images/bay-test/Dockerfile"
2 changes: 1 addition & 1 deletion images/mailhog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You can also use it in your Docker Compose stack with the following snippet:
```
services:
mailhog:
image: singledigital/bay-mailhog:5.x
image: singledigital/bay-mailhog:6.x
ports:
- 1025
- 8025
Expand Down
2 changes: 1 addition & 1 deletion images/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can also use it in your Docker Compose stack with the following snippet:
```
services:
nginx:
image: singledigital/bay-nginx:5.x
image: singledigital/bay-nginx:6.x
volumes:
- path/to/app:/app
ports:
Expand Down
2 changes: 1 addition & 1 deletion images/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can also use it in your Docker Compose stack with the following snippet:
```
services:
app:
image: singledigital/bay-node:5.x
image: singledigital/bay-node:6.x
volumes:
- path/to/app:/app
ports:
Expand Down
1 change: 1 addition & 0 deletions images/php/Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ COPY redis-cluster.services.yml /bay
COPY redis-single.services.yml /bay
COPY settings.php /bay
COPY db-build.sh /bay
COPY db-dump-sanitized.sh /bay
COPY mtk /bay/mtk

# Change worker pool from dynamic to static. Change default value to 24.
Expand Down
2 changes: 1 addition & 1 deletion images/php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can also use it in your Docker Compose stack with the following snippet:
```
services:
nginx:
image: singledigital/bay-php-fpm:5.x
image: singledigital/bay-php-fpm:6.x
volumes:
- path/to/app:/app
ports:
Expand Down
7 changes: 1 addition & 6 deletions images/php/db-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ cleanup() {
if [[ "${BASH_SOURCE[0]}" = "$0" ]]; then
trap cleanup EXIT
info "creating sanitized database dump with mtk - https://github.com/skpr/mtk"
mtk dump \
--user "${MARIADB_USERNAME}" \
--password "${MARIADB_PASSWORD}" \
--port "${MARIADB_PORT}" \
--host "${MARIADB_HOST}" \
"${MARIADB_DATABASE}" > "${DB_TEMPORARY_FILE}" || fatal "failed to dump database"
/bay/db-dump-sanitized.sh > "${DB_TEMPORARY_FILE}" || fatal "failed to dump database"

info "pushing database dump to s3 - ${S3_OBJECT_PATH}"
aws s3 cp --no-progress "${DB_TEMPORARY_FILE}" "${S3_OBJECT_PATH}" || fatal "failed to push dump to s3"
Expand Down
17 changes: 17 additions & 0 deletions images/php/db-dump-sanitized.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

#/ Usage: ./db-dump-sanitized.sh
#/ Description: dumps a sanitized database to stdout
#/ Options:
#/ --help: Display this help message
usage() { grep '^#/' "$0" | cut -c4- ; exit 0 ; }
expr "$*" : ".*--help" > /dev/null && usage

mtk dump \
--user "${MARIADB_USERNAME}" \
--password "${MARIADB_PASSWORD}" \
--port "${MARIADB_PORT}" \
--host "${MARIADB_HOST}" \
"${MARIADB_DATABASE}"

0 comments on commit 83334d1

Please sign in to comment.