Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.5 KB

HOW_TO_BUILD_NEW_IMAGE.md

File metadata and controls

41 lines (26 loc) · 1.5 KB

How to build new image

Steps

1. Update following middlewares on Dockerfile to the latest

middleware check point release information URL
base image FROM wordpress - Docker Hub (Choose the most detailed tag because it doesn't move)
Composer RUN sh -c 'wget ... How do I install Composer programmatically? - Composer
PHPUnit phpunit/phpunit Plugin Unit Tests – WP-CLI — WordPress.org
install-wp-tests RUN wget -O /usr/bin/install-wp-tests ... Releases · wp-cli/scaffold-command

2. Run test on local

docker-compose -f docker-compose.test.yml run sut

3. Commit

4. Create Pull Request

5. Merge Pull Request

6. Push with tag same with base image on latest revision of master branch

EX:

git tag 5.3.1-php7.3-apache
git push origin 5.3.1-php7.3-apache

Then, new image will automatically built.

Roadmap

I'm planing to automate updating Dockerfile, committing it, and pushing with tag by GitHub Actions. Because Docker Hub prepares link to revision of GitHub repository for referencing Dockerfile and build context. And Docker hub has not support build args yet.

Feature request: Build args on docker hub · Issue #508 · docker/hub-feedback