Ubuntu 24.04 LTS based docker image. Develop & deploy environment for WordPress themes and plugins.
1.7K
This Docker image is based on the official Ubuntu 24.04 LTS image and provides a comprehensive, lightweight development environment. It is specifically created for building and deploying WordPress plugins and themes by Code Soup and is used as part of the Ziploy GitHub Action workflow.
Software packages are installed in non-interactive mode using apt, and additional tools such as Composer, Node.js, and Yarn are installed from their official sources. This setup provides a streamlined and lightweight environment with all necessary tools available in their specified versions.
This image is optimized to work with the Ziploy GitHub Action, enabling seamless creation of Ziploy WordPress plugin and automated deployment of your WordPress plugins and themes to any hosting environment. To find out more, visit ziploy.com
To build the image, navigate to the directory containing your Dockerfile and run:
docker build --platform=linux/amd64 -t codesoup/beetroot:latest .
Once the image is built, run a container with the following command:
docker run --platform=linux/amd64 -it codesoup/beetroot:latest /bin/sh
Below is an example GitHub Actions workflow that uses this Docker image. This workflow builds and deploys a WordPress plugin/theme when changes are pushed to the release branch.
name: Build and Deploy WordPress Plugin/Theme
on:
push:
branches:
- release
jobs:
build-deploy:
runs-on: ubuntu-latest
container:
image: codesoup/beetroot:latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
composer install --no-dev --prefer-dist
yarn install
- name: Build Assets
run: |
yarn build:prod
- name: Run Tests
run: |
php -v
python --version
- name: Deploy the code
id: deploy_code
uses: code-soup/[email protected]
with:
ziploy-ssh-key: ${{ secrets.MY_SSH_KEY_PRIVATE }}
ziploy-working-directory: "wp-content/themes/my-theme-to-deploy"
linux/amd64 architecture.Content type
Image
Digest
sha256:644542a48…
Size
173.7 MB
Last updated
12 months ago
docker pull codesoup/beetroot