To build the image, you can run the following command:
./build
To build and push the image to Docker Hub, you can run the following command:
./build-push
To run the image, you can use the following command:
./run
The commands you might want to test expect to find the WordPress plugin code in the
/project
directory. You can run the following command to clone a plugin repository
to the /project
directory (Please, replace the repository URL with the one you want to test):
git clone https://github.com/publishpress/PublishPress-Future.git /project
You can use the command pdropbox
(based on droxul
) to upload built packages to Dropbox.
It requires create a Dropbox App and generate an access token. You can easily do this by
running pdropbox
the first time and following the instructions.
The uploaded files will be available in the folder you select when creatin the Dropbox App, which can be an Scoped App (App Folder).
In order to avoid having to generate a new access token every time you run the pdropbox
command, you can
cache the access token in a file. The file will be created in the /root
directory and will be named
.dropbox_uploader
.
Make sure to include this file in the child dev-workspace image as a volume (compose.yaml
), so the access token is
available in the next run.
If you want to unlink your Dropbox account, you can run pdropbox unlink
.
You can find more information about the droxul
command in the official repository.
The following commands are available in the image:
composer
- PHP dependency managerwp
- WordPress CLIcheckdep
- Check dependencies between free and pro pluginsghlogin
- Script to set Github token and login user using Github CLIlongpath
- Script to list the logest paths in the pluginmergedep
- Script to merge dependencies from free plugin into pro pluginparsejson
- a script to parse JSON files and retrieve the value of a keypbuild
- Build the plugin packagepdropbox
- Dropbox uploaderpfile
- Script to get the file name of the pluginpfolder
- Script to get the folder name of the plugin, where it is installed in WordPresspname
- Script to get the plugin namepslug
- Script to get the plugin slugpversion
- Script to get the plugin versionpzipfile
- Script to get the plugin zip file nameversion
- Show the version of the dev-workspace
This project is licensed under the GNU GPL v3.0 License - see the LICENSE file for details.