Skip to content

digitalmobil/wp-build-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Wordpress Build Tools

build status license

What is this?

A docker image that contains all build tools required for building dm-wordpress images.

Features:

  • composer
  • nodejs / npm
  • yarn
  • grunt / grunt-cli
  • bower
  • sass
  • Uniformly use /data as the working directory for any of the tools above
  • Executing as non-privileged user wp-build
  • Preserving file permissions by adopting the /data dir owner's UID

How to use this image

Installation

docker pull digitalmobil/wp-build-tools

Usage

  1. Run Composer

    Simple composer call in the current directory:

    docker run --rm -v $(pwd):/data digitalmobil/wp-build-tools composer --help

    If working with packages installed via git ssh the local .ssh directory shall be mapped into the container:

    docker run --rm -v $(pwd):/data               \
                    -v ~/.ssh:/home/wp-build/.ssh \
                    digitalmobil/wp-build-tools composer install

    To speed up things the local cache can be utilized as well:

    docker run --rm -v $(pwd):/data                         \
                    -v ~/.ssh:/home/wp-build/.ssh           \
                    -v ~/.composer:/home/wp-build/.composer \
                    digitalmobil/wp-build-tools composer install
  2. Run npm

    docker run --rm -v $(pwd):/data digitalmobil/wp-build-tools npm install
  3. Run yarn

    docker run --rm -v $(pwd):/data digitalmobil/wp-build-tools yarn install
  4. Run grunt

    docker run --rm -v $(pwd):/data digitalmobil/wp-build-tools grunt prod

About

A docker image containing all tools required for building dm-wordpress releases

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages