Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added n98-magerun2 command to CLI containers #346

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion images/php/7.2-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ 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

# Install n98-magerun2.phar and move to /usr/local/bin/
RUN curl -O https://files.magerun.net/n98-magerun2.phar && chmod +x ./n98-magerun2.phar && mv ./n98-magerun2.phar /usr/local/bin/

ADD bin/* /usr/local/bin/

RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www
Expand All @@ -205,7 +208,8 @@ RUN ["chmod", "+x", \
"/usr/local/bin/cloud-deploy", \
"/usr/local/bin/cloud-post-deploy", \
"/usr/local/bin/run-cron", \
"/usr/local/bin/run-hooks" \
"/usr/local/bin/run-hooks", \
"/usr/local/bin/magerun2" \
]

RUN mkdir -p ${MAGENTO_ROOT}
Expand Down
5 changes: 5 additions & 0 deletions images/php/7.2-cli/bin/magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ "$DEBUG" = "true" ] && set -x

su www-data -s /bin/bash -c "n98-magerun2.phar --root-dir=$MAGENTO_ROOT $*"
6 changes: 5 additions & 1 deletion images/php/7.3-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ 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

# Install n98-magerun2.phar and move to /usr/local/bin/
RUN curl -O https://files.magerun.net/n98-magerun2.phar && chmod +x ./n98-magerun2.phar && mv ./n98-magerun2.phar /usr/local/bin/

ADD bin/* /usr/local/bin/

RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www
Expand All @@ -202,7 +205,8 @@ RUN ["chmod", "+x", \
"/usr/local/bin/cloud-deploy", \
"/usr/local/bin/cloud-post-deploy", \
"/usr/local/bin/run-cron", \
"/usr/local/bin/run-hooks" \
"/usr/local/bin/run-hooks", \
"/usr/local/bin/magerun2" \
]

RUN mkdir -p ${MAGENTO_ROOT}
Expand Down
5 changes: 5 additions & 0 deletions images/php/7.3-cli/bin/magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ "$DEBUG" = "true" ] && set -x

su www-data -s /bin/bash -c "n98-magerun2.phar --root-dir=$MAGENTO_ROOT $*"
6 changes: 5 additions & 1 deletion images/php/7.4-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ 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

# Install n98-magerun2.phar and move to /usr/local/bin/
RUN curl -O https://files.magerun.net/n98-magerun2.phar && chmod +x ./n98-magerun2.phar && mv ./n98-magerun2.phar /usr/local/bin/

ADD bin/* /usr/local/bin/

RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www
Expand All @@ -192,7 +195,8 @@ RUN ["chmod", "+x", \
"/usr/local/bin/cloud-deploy", \
"/usr/local/bin/cloud-post-deploy", \
"/usr/local/bin/run-cron", \
"/usr/local/bin/run-hooks" \
"/usr/local/bin/run-hooks", \
"/usr/local/bin/magerun2" \
]

RUN mkdir -p ${MAGENTO_ROOT}
Expand Down
5 changes: 5 additions & 0 deletions images/php/7.4-cli/bin/magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ "$DEBUG" = "true" ] && set -x

su www-data -s /bin/bash -c "n98-magerun2.phar --root-dir=$MAGENTO_ROOT $*"
6 changes: 5 additions & 1 deletion images/php/8.0-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ 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

# Install n98-magerun2.phar and move to /usr/local/bin/
RUN curl -O https://files.magerun.net/n98-magerun2.phar && chmod +x ./n98-magerun2.phar && mv ./n98-magerun2.phar /usr/local/bin/

ADD bin/* /usr/local/bin/

RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www
Expand All @@ -177,7 +180,8 @@ RUN ["chmod", "+x", \
"/usr/local/bin/cloud-deploy", \
"/usr/local/bin/cloud-post-deploy", \
"/usr/local/bin/run-cron", \
"/usr/local/bin/run-hooks" \
"/usr/local/bin/run-hooks", \
"/usr/local/bin/magerun2" \
]

RUN mkdir -p ${MAGENTO_ROOT}
Expand Down
5 changes: 5 additions & 0 deletions images/php/8.0-cli/bin/magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ "$DEBUG" = "true" ] && set -x

su www-data -s /bin/bash -c "n98-magerun2.phar --root-dir=$MAGENTO_ROOT $*"
6 changes: 5 additions & 1 deletion images/php/8.1-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ 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

# Install n98-magerun2.phar and move to /usr/local/bin/
RUN curl -O https://files.magerun.net/n98-magerun2.phar && chmod +x ./n98-magerun2.phar && mv ./n98-magerun2.phar /usr/local/bin/

ADD bin/* /usr/local/bin/

RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www
Expand All @@ -177,7 +180,8 @@ RUN ["chmod", "+x", \
"/usr/local/bin/cloud-deploy", \
"/usr/local/bin/cloud-post-deploy", \
"/usr/local/bin/run-cron", \
"/usr/local/bin/run-hooks" \
"/usr/local/bin/run-hooks", \
"/usr/local/bin/magerun2" \
]

RUN mkdir -p ${MAGENTO_ROOT}
Expand Down
5 changes: 5 additions & 0 deletions images/php/8.1-cli/bin/magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ "$DEBUG" = "true" ] && set -x

su www-data -s /bin/bash -c "n98-magerun2.phar --root-dir=$MAGENTO_ROOT $*"
6 changes: 5 additions & 1 deletion images/php/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ 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

# Install n98-magerun2.phar and move to /usr/local/bin/
RUN curl -O https://files.magerun.net/n98-magerun2.phar && chmod +x ./n98-magerun2.phar && mv ./n98-magerun2.phar /usr/local/bin/

ADD bin/* /usr/local/bin/

RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/bash www
Expand All @@ -76,7 +79,8 @@ RUN ["chmod", "+x", \
"/usr/local/bin/cloud-deploy", \
"/usr/local/bin/cloud-post-deploy", \
"/usr/local/bin/run-cron", \
"/usr/local/bin/run-hooks" \
"/usr/local/bin/run-hooks", \
"/usr/local/bin/magerun2" \
]

{%volumes_cmd%}
Expand Down
5 changes: 5 additions & 0 deletions images/php/cli/bin/magerun2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

[ "$DEBUG" = "true" ] && set -x

su www-data -s /bin/bash -c "n98-magerun2.phar --root-dir=$MAGENTO_ROOT $*"