-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from thecodingmachine/hotfix/multiarch
Fixe multiarch arm64 support
- Loading branch information
Showing
25 changed files
with
358 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,13 @@ ARG INSTALL_COMPOSER=1 | |
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-apache | ||
|
||
ONBUILD ARG TARGETOS | ||
ONBUILD ARG TARGETARCH | ||
ONBUILD ARG BLACKFIRE_VERSION=1 | ||
ENV CONTAINER_OS=${TARGETOS} | ||
ENV CONTAINER_ARCH=${TARGETARCH} | ||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
||
|
||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-apache as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
# |-------------------------------------------------------------------------- | ||
# | Main PHP extensions | ||
# |-------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-apache | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,13 @@ ARG INSTALL_COMPOSER=1 | |
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-cli | ||
|
||
ONBUILD ARG TARGETOS | ||
ONBUILD ARG TARGETARCH | ||
ONBUILD ARG BLACKFIRE_VERSION=1 | ||
ENV CONTAINER_OS=${TARGETOS} | ||
ENV CONTAINER_ARCH=${TARGETARCH} | ||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
||
|
||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-cli as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
# |-------------------------------------------------------------------------- | ||
# | Main PHP extensions | ||
# |-------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,13 @@ ARG INSTALL_COMPOSER=1 | |
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-fpm | ||
|
||
ONBUILD ARG TARGETOS | ||
ONBUILD ARG TARGETARCH | ||
ONBUILD ARG BLACKFIRE_VERSION=1 | ||
ENV CONTAINER_OS=${TARGETOS} | ||
ENV CONTAINER_ARCH=${TARGETARCH} | ||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
||
|
||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-slim-fpm as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
# |-------------------------------------------------------------------------- | ||
# | Main PHP extensions | ||
# |-------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
ARG PHP_VERSION | ||
ARG GLOBAL_VERSION | ||
FROM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm as baseapp | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
|
||
FROM --platform=$BUILDPLATFORM thecodingmachine/php:${PHP_VERSION}-${GLOBAL_VERSION}-fpm | ||
|
||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
USER root | ||
|
||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
FROM --platform=$BUILDPLATFORM ubuntu:20.04 | ||
|
||
FROM ubuntu:20.04 | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
# Fixes some weird terminal issues such as broken clear / CTRL+L | ||
|
@@ -10,15 +9,17 @@ LABEL authors="Julien Neuhart <[email protected]>, David Négrier < | |
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG PHP_VERSION | ||
ENV PHP_VERSION=$PHP_VERSION | ||
ONBUILD ARG TARGETOS | ||
ONBUILD ARG TARGETARCH | ||
ONBUILD ARG BLACKFIRE_VERSION=1 | ||
ARG BLACKFIRE_VERSION=1 | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
ONBUILD ARG TARGETOS=${TARGETOS} | ||
ONBUILD ARG TARGETARCH=${TARGETARCH} | ||
ONBUILD ARG BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
||
ENV TARGETOS=${TARGETOS} | ||
ENV TARGETARCH=${TARGETARCH} | ||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
ENV PHP_VERSION=${PHP_VERSION} | ||
|
||
# |-------------------------------------------------------------------------- | ||
# | Main PHP extensions | ||
|
@@ -363,8 +364,11 @@ ONBUILD RUN if [ -n "$INSTALL_CRON" ]; then \ | |
&& echo $SUPERCRONIC_URL \ | ||
&& SUPERCRONIC=supercronic-linux-${TARGETARCH} \ | ||
&& SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \ | ||
&& if [ "$TARGETARCH" == "arm64" ]; then SUPERCRONIC_SHA1SUM=e2714c43e7781bf1579c85aa61259245f56dbba1; \ | ||
elif [ "$TARGETARCH" == "amd64" ]; then SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85; \ | ||
else echo "Target arch '$TARGETARCH' is not supported"; fi; \ | ||
&& curl -fsSLO "$SUPERCRONIC_URL" \ | ||
# && echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ | ||
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ | ||
&& chmod +x "$SUPERCRONIC" \ | ||
&& sudo mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \ | ||
&& sudo ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint) | ||
FROM --platform=$BUILDPLATFORM ubuntu:20.04 | ||
|
||
FROM ubuntu:20.04 | ||
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>" | ||
|
||
# Fixes some weird terminal issues such as broken clear / CTRL+L | ||
|
@@ -10,15 +9,17 @@ LABEL authors="Julien Neuhart <[email protected]>, David Négrier < | |
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG PHP_VERSION | ||
ENV PHP_VERSION=$PHP_VERSION | ||
ONBUILD ARG TARGETOS | ||
ONBUILD ARG TARGETARCH | ||
ONBUILD ARG BLACKFIRE_VERSION=1 | ||
ARG BLACKFIRE_VERSION=1 | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG BLACKFIRE_VERSION=1 | ||
ONBUILD ARG TARGETOS=${TARGETOS} | ||
ONBUILD ARG TARGETARCH=${TARGETARCH} | ||
ONBUILD ARG BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
|
||
ENV TARGETOS=${TARGETOS} | ||
ENV TARGETARCH=${TARGETARCH} | ||
ENV BLACKFIRE_VERSION=${BLACKFIRE_VERSION} | ||
ENV PHP_VERSION=${PHP_VERSION} | ||
|
||
# |-------------------------------------------------------------------------- | ||
# | Main PHP extensions | ||
|
@@ -268,8 +269,11 @@ ONBUILD RUN if [ -n "$INSTALL_CRON" ]; then \ | |
&& echo $SUPERCRONIC_URL \ | ||
&& SUPERCRONIC=supercronic-linux-${TARGETARCH} \ | ||
&& SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \ | ||
&& if [ "$TARGETARCH" == "arm64" ]; then SUPERCRONIC_SHA1SUM=e2714c43e7781bf1579c85aa61259245f56dbba1; \ | ||
elif [ "$TARGETARCH" == "amd64" ]; then SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85; \ | ||
else echo "Target arch '$TARGETARCH' is not supported"; fi; \ | ||
&& curl -fsSLO "$SUPERCRONIC_URL" \ | ||
# && echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ | ||
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \ | ||
&& chmod +x "$SUPERCRONIC" \ | ||
&& sudo mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \ | ||
&& sudo ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic; \ | ||
|
Oops, something went wrong.