Skip to content

Commit

Permalink
Merge branch 'release/1.0.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jul 24, 2023
2 parents 08262e4 + b03f8ba commit 215b92b
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .docker-config/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nystudio107/spin-up-craft-base:8.1-alpine
FROM nystudio107/spin-up-craft-base:8.2-alpine

WORKDIR /var/www

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ docker buildx build \
--push \
--no-cache \
--platform linux/arm64/v8,linux/amd64 \
--tag nystudio107/spin-up-craft-base-dev:8.1-alpine \
--tag nystudio107/spin-up-craft-base-dev:latest .
--tag nystudio107/spin-up-craft-base-dev:8.1-alpine .
44 changes: 44 additions & 0 deletions .docker-config/spin-up-craft-base-dev/php-8.2-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM nystudio107/php-dev-base:8.2-alpine

# dependencies required for running "phpize"
# these get automatically installed and removed by "docker-php-ext-*" (unless they're already installed)
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
dpkg \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c \
linux-headers \
wget

# Install packages
RUN set -eux; \
# Packages needed only for build
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& \
# Packages to install
apk add --no-cache \
su-exec \
nano \
mysql-client \
mariadb-connector-c \
&& \
# Install PHP extensions
docker-php-ext-install \
pdo_mysql \
soap \
&& \
# Install Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
&& \
# Remove the build deps
apk del .build-deps \
&& \
# Clean out directories that don't need to be part of the image
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
# Build this image, and push it to DockerHub.com

docker buildx build \
--push \
--no-cache \
--platform linux/arm64/v8,linux/amd64 \
--tag nystudio107/spin-up-craft-base-dev:8.2-alpine \
--tag nystudio107/spin-up-craft-base-dev:latest .
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ docker buildx build \
--push \
--no-cache \
--platform linux/arm64/v8,linux/amd64 \
--tag nystudio107/spin-up-craft-base:8.1-alpine \
--tag nystudio107/spin-up-craft-base:latest .
--tag nystudio107/spin-up-craft-base:8.1-alpine .
44 changes: 44 additions & 0 deletions .docker-config/spin-up-craft-base/php-8.2-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM nystudio107/php-prod-base:8.2-alpine

# dependencies required for running "phpize"
# these get automatically installed and removed by "docker-php-ext-*" (unless they're already installed)
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
dpkg \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
re2c \
linux-headers \
wget

# Install packages
RUN set -eux; \
# Packages needed only for build
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& \
# Packages to install
apk add --no-cache \
su-exec \
nano \
mysql-client \
mariadb-connector-c \
&& \
# Install PHP extensions
docker-php-ext-install \
pdo_mysql \
soap \
&& \
# Install Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
&& \
# Remove the build deps
apk del .build-deps \
&& \
# Clean out directories that don't need to be part of the image
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
# Build this image, and push it to DockerHub.com

docker buildx build \
--push \
--no-cache \
--platform linux/arm64/v8,linux/amd64 \
--tag nystudio107/spin-up-craft-base:8.2-alpine \
--tag nystudio107/spin-up-craft-base:latest .
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["8.0", "8.1"]
php: ["8.0", "8.1", "8.2"]
images: ["spin-up-craft-base", "spin-up-craft-base-dev"]
name: ${{ matrix.images }} ${{ matrix.php }} images
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["8.0", "8.1"]
php: ["8.0", "8.1", "8.2"]
images: ["spin-up-craft-base", "spin-up-craft-base-dev"]
name: ${{ matrix.images }} ${{ matrix.php }} images
steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# nystudio107/spin-up-craft Change Log

## 1.0.15 - 2023.07.24
### Added
* Use PHP 8.2 as the base for `spin-up-craft-base` Docker images

## 1.0.14 - 2023.04.25
### Fixed
* Wait not just for the database to be available, but also that the `info` table has been populated before proceeding with the `queue` container ([#2](https://github.com/nystudio107/spin-up-craft/issues/2))
Expand Down

0 comments on commit 215b92b

Please sign in to comment.