Skip to content

Commit

Permalink
[INFRA] make deployer a global cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mautz-et-tong committed Aug 15, 2023
1 parent 8d16fca commit c73213e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
10 changes: 7 additions & 3 deletions src/7.4/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ RUN set -xe; \
################################################
curl -s -f -L -o /usr/local/bin/magerun2 https://files.magerun.net/n98-magerun2.phar; \
chmod +x /usr/local/bin/magerun2; \
/usr/local/bin/docker-layer-clean; \
echo "alias dep='vendor/bin/deployer.phar'" >> ~/.bashrc; \
echo "alias dep='vendor/bin/deployer.phar'" >> /home/www-data/.bashrc
/usr/local/bin/docker-layer-clean

WORKDIR /var/www/html
ENTRYPOINT ["docker-entrypoint"]
Expand All @@ -166,6 +164,12 @@ ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
ARG TOOLBOX_BUILD_REQUIREMENTS=""
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""

RUN set -xe; \
\
composer global require deployer/deployer; \
composer global update; \
echo "export PATH=$PATH:~/.composer/vendor/bin" >> ~/.bashrc && source ~/.bashrc

# hadolint ignore=DL4006
RUN set -xe; \
\
Expand Down
10 changes: 7 additions & 3 deletions src/8.0/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ RUN set -xe; \
################################################
curl -s -f -L -o /usr/local/bin/magerun2 https://files.magerun.net/n98-magerun2.phar; \
chmod +x /usr/local/bin/magerun2; \
/usr/local/bin/docker-layer-clean; \
echo "alias dep='vendor/bin/deployer.phar'" >> ~/.bashrc; \
echo "alias dep='vendor/bin/deployer.phar'" >> /home/www-data/.bashrc
/usr/local/bin/docker-layer-clean

WORKDIR /var/www/html
ENTRYPOINT ["docker-entrypoint"]
Expand All @@ -166,6 +164,12 @@ ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
ARG TOOLBOX_BUILD_REQUIREMENTS=""
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""

RUN set -xe; \
\
composer global require deployer/deployer; \
composer global update; \
echo "export PATH=$PATH:~/.composer/vendor/bin" >> ~/.bashrc && source ~/.bashrc

# hadolint ignore=DL4006
RUN set -xe; \
\
Expand Down
10 changes: 7 additions & 3 deletions src/8.1/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ RUN set -xe; \
################################################
curl -s -f -L -o /usr/local/bin/magerun2 https://files.magerun.net/n98-magerun2.phar; \
chmod +x /usr/local/bin/magerun2; \
/usr/local/bin/docker-layer-clean; \
echo "alias dep='vendor/bin/deployer.phar'" >> ~/.bashrc; \
echo "alias dep='vendor/bin/deployer.phar'" >> /home/www-data/.bashrc
/usr/local/bin/docker-layer-clean

WORKDIR /var/www/html
ENTRYPOINT ["docker-entrypoint"]
Expand All @@ -166,6 +164,12 @@ ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
ARG TOOLBOX_BUILD_REQUIREMENTS=""
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""

RUN set -xe; \
\
composer global require deployer/deployer; \
composer global update; \
echo "export PATH=$PATH:~/.composer/vendor/bin" >> ~/.bashrc && source ~/.bashrc

# hadolint ignore=DL4006
RUN set -xe; \
\
Expand Down
10 changes: 7 additions & 3 deletions src/8.2/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ RUN set -xe; \
################################################
curl -s -f -L -o /usr/local/bin/magerun2 https://files.magerun.net/n98-magerun2.phar; \
chmod +x /usr/local/bin/magerun2; \
/usr/local/bin/docker-layer-clean; \
echo "alias dep='vendor/bin/deployer.phar'" >> ~/.bashrc; \
echo "alias dep='vendor/bin/deployer.phar'" >> /home/www-data/.bashrc
/usr/local/bin/docker-layer-clean

WORKDIR /var/www/html
ENTRYPOINT ["docker-entrypoint"]
Expand All @@ -166,6 +164,12 @@ ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
ARG TOOLBOX_BUILD_REQUIREMENTS=""
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""

RUN set -xe; \
\
composer global require deployer/deployer; \
composer global update; \
echo "export PATH=$PATH:~/.composer/vendor/bin" >> ~/.bashrc && source ~/.bashrc

# hadolint ignore=DL4006
RUN set -xe; \
\
Expand Down

0 comments on commit c73213e

Please sign in to comment.