Skip to content

Common package install for Yarn #10

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

Open
wants to merge 1 commit into
base: master
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions 7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -61,10 +62,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
11 changes: 2 additions & 9 deletions 7.0/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -79,14 +80,6 @@ RUN set -xe \
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ${PHP_EXTENSIONS} \
&& apk del .build-deps

# Yarn setup
ADD https://yarnpkg.com/latest.tar.gz /opt/yarn.tar.gz
RUN cd /opt \
&& mkdir yarn \
&& tar xzf yarn.tar.gz -C yarn --strip-components 1 \
&& cd /usr/local/bin \
&& ln -s /opt/yarn/bin/yarn

# Composer
ENV COMPOSER_HOME /home/developer/.composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Expand Down
8 changes: 3 additions & 5 deletions 7.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -61,10 +62,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
8 changes: 3 additions & 5 deletions 7.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -61,10 +62,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
11 changes: 2 additions & 9 deletions 7.0/fpm/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -79,13 +80,5 @@ RUN set -xe \
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ${PHP_EXTENSIONS} \
&& apk del .build-deps

# Yarn setup
ADD https://yarnpkg.com/latest.tar.gz /opt/yarn.tar.gz
RUN cd /opt \
&& mkdir yarn \
&& tar xzf yarn.tar.gz -C yarn --strip-components 1 \
&& cd /usr/local/bin \
&& ln -s /opt/yarn/bin/yarn

RUN docker-php-ext-enable \
xdebug
8 changes: 3 additions & 5 deletions 7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -61,10 +62,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
11 changes: 2 additions & 9 deletions 7.1/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -79,14 +80,6 @@ RUN set -xe \
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ${PHP_EXTENSIONS} \
&& apk del .build-deps

# Yarn setup
ADD https://yarnpkg.com/latest.tar.gz /opt/yarn.tar.gz
RUN cd /opt \
&& mkdir yarn \
&& tar xzf yarn.tar.gz -C yarn --strip-components 1 \
&& cd /usr/local/bin \
&& ln -s /opt/yarn/bin/yarn

# Composer
ENV COMPOSER_HOME /home/developer/.composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Expand Down
8 changes: 3 additions & 5 deletions 7.1/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -61,10 +62,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
8 changes: 3 additions & 5 deletions 7.1/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -61,10 +62,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
11 changes: 2 additions & 9 deletions 7.1/fpm/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn

ADD configure.sh /usr/local/bin/configure
RUN chmod u+x /usr/local/bin/configure
Expand Down Expand Up @@ -79,13 +80,5 @@ RUN set -xe \
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ${PHP_EXTENSIONS} \
&& apk del .build-deps

# Yarn setup
ADD https://yarnpkg.com/latest.tar.gz /opt/yarn.tar.gz
RUN cd /opt \
&& mkdir yarn \
&& tar xzf yarn.tar.gz -C yarn --strip-components 1 \
&& cd /usr/local/bin \
&& ln -s /opt/yarn/bin/yarn

RUN docker-php-ext-enable \
xdebug
8 changes: 0 additions & 8 deletions base-alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,3 @@ RUN set -xe \
&& apk del .phpize-deps-configure \
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ${PHP_EXTENSIONS} \
&& apk del .build-deps

# Yarn setup
ADD https://yarnpkg.com/latest.tar.gz /opt/yarn.tar.gz
RUN cd /opt \
&& mkdir yarn \
&& tar xzf yarn.tar.gz -C yarn --strip-components 1 \
&& cd /usr/local/bin \
&& ln -s /opt/yarn/bin/yarn
5 changes: 1 addition & 4 deletions base-debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

# Special Yarn apt setup
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install yarn \
&& rm --recursive --force /var/lib/apt/lists/*
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# Extra languages needed for tools
RUN apt-get update && apt-get install --yes \
Expand Down
3 changes: 2 additions & 1 deletion env.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ ENV TOOLS_PACKAGES \
curl \
git \
openssh-client \
mysql-client
mysql-client \
yarn