Skip to content

Commit 62787fd

Browse files
committed
update older dockerfiles
1 parent 2e9bb14 commit 62787fd

File tree

4 files changed

+8
-89
lines changed

4 files changed

+8
-89
lines changed

docker/Dockerfile-4.7

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
FROM wordpress:4.7
22

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.
225

236
# See: https://github.com/docker-library/wordpress/issues/205
247
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh

docker/Dockerfile-4.8

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
FROM wordpress:4.8
22

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.
225

236
# See: https://github.com/docker-library/wordpress/issues/205
247
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh

docker/Dockerfile-4.9

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
11
FROM wordpress:4.9
22

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.
355

366
# See: https://github.com/docker-library/wordpress/issues/205
377
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh

docker/Dockerfile-5.0

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
FROM wordpress:5.0-php7.3
22

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.
225

236
# See: https://github.com/docker-library/wordpress/issues/205
247
COPY ./apache2-custom.sh /usr/local/bin/apache2-custom.sh

0 commit comments

Comments
 (0)