-
Notifications
You must be signed in to change notification settings - Fork 194
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 #130 from magento-commerce/develop
MCLOUD-12025 Cloud Tools Releas
- Loading branch information
Showing
86 changed files
with
954 additions
and
91 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM nginx:1.19 | ||
FROM nginx:1.24 | ||
|
||
ENV UPLOAD_MAX_FILESIZE 64M | ||
ENV XDEBUG_HOST fpm_xdebug | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM opensearchproject/opensearch:1.3.0 | ||
|
||
USER root | ||
RUN yum -y install zip && \ | ||
zip -q -d /usr/share/opensearch/lib/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class && \ | ||
yum remove -y zip && \ | ||
yum -y clean all && \ | ||
rm -rf /var/cache | ||
USER opensearch | ||
|
||
RUN bin/opensearch-plugin install -b analysis-icu && \ | ||
bin/opensearch-plugin install -b analysis-phonetic | ||
|
||
ADD docker-healthcheck.sh /docker-healthcheck.sh | ||
ADD docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
HEALTHCHECK --retries=3 CMD ["bash", "/docker-healthcheck.sh"] | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 9200 9300 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
if [[ -n "$OS_PLUGINS" ]]; then | ||
echo "Installing plugins: $OS_PLUGINS" | ||
for PLUGIN in $OS_PLUGINS | ||
do | ||
./bin/opensearch-plugin install -b "$PLUGIN" | ||
done | ||
fi | ||
|
||
/bin/bash /usr/share/opensearch/opensearch-docker-entrypoint.sh |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
if health="$(curl -fsSL "http://${OS_HOST:-opensearch}:${OS_HOST:-9200}/_cat/health?h=status")"; then | ||
health="$(echo "$health" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" # trim whitespace (otherwise we'll have "green ") | ||
if [ "$health" = 'green' ] || [ "$health" = 'yellow' ]; then | ||
exit 0 | ||
fi | ||
echo >&2 "Unexpected health status: $health" | ||
fi | ||
|
||
exit 1 |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM opensearchproject/opensearch:2.12.0 | ||
|
||
USER root | ||
RUN yum -y install zip && \ | ||
zip -q -d /usr/share/opensearch/lib/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class && \ | ||
yum remove -y zip && \ | ||
yum -y clean all && \ | ||
rm -rf /var/cache | ||
USER opensearch | ||
|
||
RUN bin/opensearch-plugin install -b analysis-icu && \ | ||
bin/opensearch-plugin install -b analysis-phonetic | ||
|
||
ADD docker-healthcheck.sh /docker-healthcheck.sh | ||
ADD docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
HEALTHCHECK --retries=3 CMD ["bash", "/docker-healthcheck.sh"] | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 9200 9300 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
if [[ -n "$OS_PLUGINS" ]]; then | ||
echo "Installing plugins: $OS_PLUGINS" | ||
for PLUGIN in $OS_PLUGINS | ||
do | ||
./bin/opensearch-plugin install -b "$PLUGIN" | ||
done | ||
fi | ||
|
||
/bin/bash /usr/share/opensearch/opensearch-docker-entrypoint.sh |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
if health="$(curl -fsSL "http://${OS_HOST:-opensearch}:${OS_HOST:-9200}/_cat/health?h=status")"; then | ||
health="$(echo "$health" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" # trim whitespace (otherwise we'll have "green ") | ||
if [ "$health" = 'green' ] || [ "$health" = 'yellow' ]; then | ||
exit 0 | ||
fi | ||
echo >&2 "Unexpected health status: $health" | ||
fi | ||
|
||
exit 1 |
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
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 |
---|---|---|
@@ -0,0 +1,193 @@ | ||
# This file is automatically generated. Do not edit directly. # | ||
FROM golang:1.15 AS builder | ||
|
||
RUN if [ $(uname -m) = "x86_64" ]; then mailhog_arch="amd64"; else mailhog_arch="arm64"; fi \ | ||
&& wget -O mhsendmail.tar.gz https://github.com/mailhog/mhsendmail/archive/refs/tags/v0.2.0.tar.gz \ | ||
&& tar -xf mhsendmail.tar.gz \ | ||
&& mkdir -p ./src/github.com/mailhog/ \ | ||
&& mv ./mhsendmail-0.2.0 ./src/github.com/mailhog/mhsendmail \ | ||
&& cd ./src/github.com/mailhog/mhsendmail/ \ | ||
&& go get . \ | ||
&& GOOS=linux GOARCH=${mailhog_arch} go build -o mhsendmail . | ||
|
||
FROM php:8.3-cli | ||
|
||
ARG COMPOSER_VERSION=2.7.0 | ||
ARG MAGENTO_ROOT=/app | ||
ARG COMPOSER_ALLOW_SUPERUSER=1 | ||
ARG COMPOSER_HOME=/composer | ||
ARG CRONTAB="" | ||
|
||
ENV COMPOSER_MEMORY_LIMIT -1 | ||
ENV COMPOSER_ALLOW_SUPERUSER ${COMPOSER_ALLOW_SUPERUSER} | ||
ENV COMPOSER_HOME ${COMPOSER_HOME} | ||
ENV COMPOSER_CLEAR_CACHE false | ||
ENV PHP_MEMORY_LIMIT -1 | ||
ENV PHP_VALIDATE_TIMESTAMPS 1 | ||
ENV DEBUG false | ||
ENV MAGENTO_RUN_MODE production | ||
ENV SENDMAIL_PATH /dev/null | ||
ENV PHPRC ${MAGENTO_ROOT}/php.ini | ||
|
||
ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl | ||
|
||
# Configure Node.js version | ||
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash | ||
|
||
# Install dependencies | ||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y --no-install-recommends \ | ||
apt-utils \ | ||
cron \ | ||
git \ | ||
mariadb-client \ | ||
nano \ | ||
nodejs \ | ||
python3 \ | ||
python3-pip \ | ||
redis-tools \ | ||
sendmail-bin \ | ||
sendmail \ | ||
sudo \ | ||
unzip \ | ||
vim \ | ||
openssh-client \ | ||
gnupg2 \ | ||
ca-certificates \ | ||
lsb-release \ | ||
software-properties-common \ | ||
libbz2-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
libfreetype6-dev \ | ||
libgmp-dev \ | ||
libgpgme11-dev \ | ||
libicu-dev \ | ||
libldap2-dev \ | ||
libpcre3-dev \ | ||
libpspell-dev \ | ||
libtidy-dev \ | ||
libxslt1-dev \ | ||
libyaml-dev \ | ||
libzip-dev \ | ||
zip \ | ||
python3-yaml \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Python packages | ||
|
||
|
||
# Install Grunt | ||
RUN npm install -g grunt-cli | ||
|
||
# Install MailHog | ||
COPY --from=builder /go/src/github.com/mailhog/mhsendmail/mhsendmail /usr/local/bin/ | ||
RUN sudo chmod +x /usr/local/bin/mhsendmail | ||
|
||
# Configure the gd library | ||
RUN docker-php-ext-configure \ | ||
gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ | ||
RUN docker-php-ext-configure \ | ||
opcache --enable-opcache | ||
|
||
# Install required PHP extensions | ||
RUN docker-php-ext-install -j$(nproc) \ | ||
bcmath \ | ||
bz2 \ | ||
calendar \ | ||
exif \ | ||
gd \ | ||
gettext \ | ||
gmp \ | ||
intl \ | ||
mysqli \ | ||
opcache \ | ||
pdo_mysql \ | ||
pspell \ | ||
shmop \ | ||
soap \ | ||
sockets \ | ||
sysvmsg \ | ||
sysvsem \ | ||
sysvshm \ | ||
tidy \ | ||
xsl \ | ||
zip \ | ||
pcntl | ||
|
||
RUN pecl install -o -f \ | ||
gnupg \ | ||
mailparse \ | ||
msgpack \ | ||
oauth \ | ||
pcov \ | ||
raphf \ | ||
redis \ | ||
xdebug-3.3.0 \ | ||
xmlrpc-1.0.0RC3 \ | ||
yaml | ||
|
||
RUN curl -L https://packages.blackfire.io/gpg.key | gpg --dearmor > blackfire.io-archive-keyring.gpg \ | ||
&& install -o root -g root -m 644 blackfire.io-archive-keyring.gpg /etc/apt/trusted.gpg.d/ \ | ||
&& echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list \ | ||
&& apt-get update \ | ||
&& apt-get install blackfire-php \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN if [ $(uname -m) = "x86_64" ]; then ldap_arch="x86_64-linux-gnu"; else ldap_arch="aarch64-linux-gnu"; fi \ | ||
&& docker-php-ext-configure ldap --with-libdir=lib/${ldap_arch} | ||
RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \ | ||
&& rm -f /usr/local/lib/php/extensions/*/*sodium.so \ | ||
&& apt-get remove libsodium* -y \ | ||
&& mkdir -p /tmp/libsodium \ | ||
&& curl -sL https://github.com/jedisct1/libsodium/archive/1.0.18-RELEASE.tar.gz | tar xzf - -C /tmp/libsodium \ | ||
&& cd /tmp/libsodium/libsodium-1.0.18-RELEASE/ \ | ||
&& ./configure \ | ||
&& make && make check \ | ||
&& make install \ | ||
&& cd / \ | ||
&& rm -rf /tmp/libsodium \ | ||
&& pecl install -o -f libsodium | ||
|
||
ADD etc/php-cli.ini /usr/local/etc/php/conf.d/zz-magento.ini | ||
ADD etc/php-xdebug.ini /usr/local/etc/php/conf.d/zz-xdebug-settings.ini | ||
ADD etc/php-pcov.ini /usr/local/etc/php/conf.d/zz-pcov-settings.ini | ||
ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini | ||
ADD etc/php-gnupg.ini /usr/local/etc/php/conf.d/gnupg.ini | ||
|
||
# Get composer installed to /usr/local/bin/composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --version=${COMPOSER_VERSION} --filename=composer | ||
|
||
ADD bin/* /usr/local/bin/ | ||
|
||
RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www | ||
|
||
ADD docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
RUN ["chmod", "+x", \ | ||
"/docker-entrypoint.sh", \ | ||
"/usr/local/bin/magento-installer", \ | ||
"/usr/local/bin/magento-command", \ | ||
"/usr/local/bin/mftf-command", \ | ||
"/usr/local/bin/ece-command", \ | ||
"/usr/local/bin/cloud-build", \ | ||
"/usr/local/bin/cloud-deploy", \ | ||
"/usr/local/bin/cloud-post-deploy", \ | ||
"/usr/local/bin/run-cron", \ | ||
"/usr/local/bin/run-hooks" \ | ||
] | ||
|
||
RUN mkdir -p ${MAGENTO_ROOT} | ||
|
||
VOLUME ${MAGENTO_ROOT} | ||
|
||
RUN chown -R www:www /usr/local /var/www /var/log /usr/local/etc/php/conf.d /etc/cron.d ${MAGENTO_ROOT} ${COMPOSER_HOME} | ||
RUN if [ ! -z "${CRONTAB}" ]; then echo "${CRONTAB}" > /etc/cron.d/magento && touch /var/log/cron.log ; fi | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
WORKDIR ${MAGENTO_ROOT} | ||
|
||
USER root | ||
|
||
CMD ["bash"] |
Oops, something went wrong.