File tree Expand file tree Collapse file tree 4 files changed +8
-89
lines changed Expand file tree Collapse file tree 4 files changed +8
-89
lines changed Original file line number Diff line number Diff line change 1
1
FROM wordpress:4.7
2
2
3
- # Install packages
4
- RUN apt-get update && \
5
- apt-get -y install vim subversion mysql-client less
6
-
7
- # Install wp-cli
8
- RUN curl -L -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +x /usr/local/bin/wp
9
-
10
- # Add non-privileged user, best for using wp-cli
11
- RUN groupadd -r user && useradd --no-log-init -r -g user user
12
-
13
- # Install composer
14
- RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer
15
-
16
- COPY ./install-wp-tests-docker.sh /tmp
17
-
18
- RUN /tmp/install-wp-tests-docker.sh 4.7
19
-
20
- # Xdebug environment variables
21
- ENV XDEBUG_PORT 9000
3
+ # No longer including tests and wp-cli in this old version,
4
+ # because the base image is so old now that updating its deps is problematic.
22
5
23
6
# See: https://github.com/docker-library/wordpress/issues/205
24
7
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh
Original file line number Diff line number Diff line change 1
1
FROM wordpress:4.8
2
2
3
- # Install packages
4
- RUN apt-get update && \
5
- apt-get -y install vim subversion mysql-client less
6
-
7
- # Install wp-cli
8
- RUN curl -L -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +x /usr/local/bin/wp
9
-
10
- # Add non-privileged user, best for using wp-cli
11
- RUN groupadd -r user && useradd --no-log-init -r -g user user
12
-
13
- # Install composer
14
- RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer
15
-
16
- COPY ./install-wp-tests-docker.sh /tmp
17
-
18
- RUN /tmp/install-wp-tests-docker.sh 4.8
19
-
20
- # Xdebug environment variables
21
- ENV XDEBUG_PORT 9000
3
+ # No longer including tests and wp-cli in this old version,
4
+ # because the base image is so old now that updating its deps is problematic.
22
5
23
6
# See: https://github.com/docker-library/wordpress/issues/205
24
7
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh
Original file line number Diff line number Diff line change 1
1
FROM wordpress:4.9
2
2
3
- # Install packages
4
- RUN apt-get update && \
5
- apt-get -y install vim subversion mysql-client less
6
-
7
- # Install wp-cli
8
- RUN curl -L -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +x /usr/local/bin/wp
9
-
10
- # Add non-privileged user, best for using wp-cli
11
- RUN groupadd -r user && useradd --no-log-init -r -g user user
12
-
13
- # DEBUG is not set up for 4.9
14
- # To enable this would require setting up a different docker-php-ext-xdebug.ini
15
- # that refers to the specific .so file that is installed by by this pecl command.
16
- # Install xdebug
17
- #RUN pecl install xdebug
18
- ## Copy in our php.ini debug configuration
19
- #COPY ./docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d
20
-
21
- # Install redis php extension
22
- # The echo is to avoid the terminal prompt on install
23
- RUN echo "\n " | pecl install redis
24
- COPY ./docker-php-ext-redis.ini /usr/local/etc/php/conf.d
25
-
26
- # Install composer
27
- RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer
28
-
29
- COPY ./install-wp-tests-docker.sh /tmp
30
-
31
- RUN /tmp/install-wp-tests-docker.sh 4.9 db-4.9:3309
32
-
33
- # Xdebug environment variables
34
- ENV XDEBUG_PORT 9000
3
+ # No longer including tests and wp-cli in this old version,
4
+ # because the base image is so old now that updating its deps is problematic.
35
5
36
6
# See: https://github.com/docker-library/wordpress/issues/205
37
7
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh
Original file line number Diff line number Diff line change 1
1
FROM wordpress:5.0-php7.3
2
2
3
- # Install packages
4
- RUN apt-get update && \
5
- apt-get -y install vim subversion mysql-client less
6
-
7
- # Install wp-cli
8
- RUN curl -L -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && chmod +x /usr/local/bin/wp
9
-
10
- # Add non-privileged user, best for using wp-cli
11
- RUN groupadd -r user && useradd --no-log-init -r -g user user
12
-
13
- # Install composer
14
- RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer
15
-
16
- COPY ./install-wp-tests-docker.sh /tmp
17
-
18
- RUN /tmp/install-wp-tests-docker.sh 5.0 db-5.0:3307
19
-
20
- # Xdebug environment variables
21
- ENV XDEBUG_PORT 9000
3
+ # No longer including tests and wp-cli in this old version,
4
+ # because the base image is so old now that updating its deps is problematic.
22
5
23
6
# See: https://github.com/docker-library/wordpress/issues/205
24
7
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh
You can’t perform that action at this time.
0 commit comments