Skip to content

Commit

Permalink
Nodesource script not required for buster
Browse files Browse the repository at this point in the history
  • Loading branch information
wmortada committed Jun 28, 2021
1 parent 87fe9a6 commit 8bc5014
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
8 changes: 5 additions & 3 deletions civicrm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ FROM php:7.3-apache-stretch
# * vim
# * less

# debian stretch requires nodejs setup script
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https
apt-transport-https \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash -

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
bash-completion \
default-mysql-client \
git \
Expand Down
8 changes: 5 additions & 3 deletions publish/civicrm/php7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ FROM php:7.2-apache-stretch
# * vim
# * less

# debian stretch requires nodejs setup script
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https
apt-transport-https \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash -

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
bash-completion \
default-mysql-client \
git \
Expand Down
8 changes: 5 additions & 3 deletions publish/civicrm/php7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ FROM php:7.3-apache-stretch
# * vim
# * less

# debian stretch requires nodejs setup script
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https
apt-transport-https \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash -

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
bash-completion \
default-mysql-client \
git \
Expand Down
7 changes: 2 additions & 5 deletions publish/civicrm/php7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ FROM php:7.4-apache-buster
# * vim
# * less

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
bash-completion \
default-mysql-client \
git \
Expand Down
10 changes: 7 additions & 3 deletions publish/templates/civicrm/Dockerfile.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ FROM php:{{ php_version }}-apache-buster
# * vim
# * less

{% if php_version in ['7.2', '7.3'] %}
# debian stretch requires nodejs setup script
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https
apt-transport-https \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash -
{% endif %}

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
bash-completion \
default-mysql-client \
git \
Expand Down

0 comments on commit 8bc5014

Please sign in to comment.