Skip to content
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

fix: install compatible yoastseo version #131

Merged
merged 3 commits into from
Sep 19, 2023
Merged
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
5 changes: 4 additions & 1 deletion wordpress.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
LABEL maintainer="[email protected]"

# Update all packages, remove cruft, install required packages, configure apache
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \

Check notice on line 12 in wordpress.Dockerfile

View workflow job for this annotation

GitHub Actions / unit-tests / Dockerfile lint

Avoid additional packages by specifying `--no-install-recommends`

Check warning on line 12 in wordpress.Dockerfile

View workflow job for this annotation

GitHub Actions / unit-tests / Dockerfile lint

Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`

Check warning on line 12 in wordpress.Dockerfile

View workflow job for this annotation

GitHub Actions / unit-tests / Dockerfile lint

Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check

Check notice on line 12 in wordpress.Dockerfile

View workflow job for this annotation

GitHub Actions / unit-tests / Dockerfile lint

Delete the apt-get lists after installing something
apt-get update \
&& apt-get --purge autoremove -y \
&& apt-get install -y apache2 \
Expand Down Expand Up @@ -72,7 +72,7 @@

RUN wp core download --version=${VERSION}

RUN set -e; \

Check warning on line 75 in wordpress.Dockerfile

View workflow job for this annotation

GitHub Actions / unit-tests / Dockerfile lint

Use WORKDIR to switch to a directory
cd ./wp-content/plugins; \
for plugin in \
404page \
Expand All @@ -98,7 +98,6 @@
svg-support \
syntaxhighlighter \
wordpress-importer \
wordpress-seo \
wp-font-awesome \
wp-lightbox-2 \
wp-markdown \
Expand All @@ -113,13 +112,17 @@
curl -sSL "https://downloads.wordpress.org/plugin/openid.3.5.0.zip" -o "openid.zip"; \
unzip "openid.zip"; \
rm "openid.zip"; \
# Latest YoastSEO does not support 5.9.3 version of WordPress.
curl -sSL "https://downloads.wordpress.org/plugin/wordpress-seo.18.9.zip" -o "wordpress-seo.zip"; \
unzip "wordpress-seo.zip"; \
rm "wordpress-seo.zip"; \
git clone https://git.launchpad.net/~canonical-sysadmins/wordpress-launchpad-integration/+git/wordpress-launchpad-integration wordpress-launchpad-integration; \
git clone https://git.launchpad.net/~canonical-sysadmins/wordpress/+git/openstack-objectstorage-k8s openstack-objectstorage-k8s; \
git clone https://git.launchpad.net/~canonical-sysadmins/wordpress-teams-integration/+git/wordpress-teams-integration wordpress-teams-integration; \
git clone https://git.launchpad.net/~canonical-sysadmins/wordpress/+git/wp-plugin-xubuntu-team-members xubuntu-team-members; \
rm -rf */.git

RUN cd ./wp-content/themes && \

Check warning on line 125 in wordpress.Dockerfile

View workflow job for this annotation

GitHub Actions / unit-tests / Dockerfile lint

Use WORKDIR to switch to a directory
git clone https://git.launchpad.net/~canonical-sysadmins/ubuntu-community-webthemes/+git/light-wordpress-theme light-wordpress-theme && \
git clone https://git.launchpad.net/~canonical-sysadmins/wordpress/+git/wp-theme-mscom mscom && \
git clone https://git.launchpad.net/~canonical-sysadmins/wordpress/+git/wp-theme-thematic thematic && \
Expand Down
Loading