Added WP-CLI support to workspace (#1748)
* Added WP-CLI support * Updated documentation for WP-CLI
This commit is contained in:
		
				
					committed by
					
						
						Shao Yu-Lung (Allen)
					
				
			
			
				
	
			
			
			
						parent
						
							5edf3f398b
						
					
				
				
					commit
					c7aa535598
				
			@@ -103,7 +103,7 @@ Laradock introduces the **Workspace** Image, as a development environment.
 | 
			
		||||
It contains a rich set of helpful tools, all pre-configured to work and integrate with almost any combination of Containers and tools you may choose.
 | 
			
		||||
 | 
			
		||||
**Workspace Image Tools**
 | 
			
		||||
PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - Envoy - Deployer - Vim - Yarn - SOAP - Drush...
 | 
			
		||||
PHP CLI - Composer - Git - Linuxbrew - Node - V8JS - Gulp - SQLite - xDebug - Envoy - Deployer - Vim - Yarn - SOAP - Drush - WP-CLI...
 | 
			
		||||
 | 
			
		||||
You can choose, which tools to install in your workspace container and other containers, from the `.env` file.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -71,6 +71,7 @@ services:
 | 
			
		||||
          - INSTALL_NPM_BOWER=${WORKSPACE_INSTALL_NPM_BOWER}
 | 
			
		||||
          - INSTALL_NPM_VUE_CLI=${WORKSPACE_INSTALL_NPM_VUE_CLI}
 | 
			
		||||
          - INSTALL_DRUSH=${WORKSPACE_INSTALL_DRUSH}
 | 
			
		||||
          - INSTALL_WP_CLI=${WORKSPACE_INSTALL_WP_CLI}
 | 
			
		||||
          - INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE}
 | 
			
		||||
          - INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
 | 
			
		||||
          - AEROSPIKE_PHP_REPOSITORY=${AEROSPIKE_PHP_REPOSITORY}
 | 
			
		||||
 
 | 
			
		||||
@@ -104,6 +104,7 @@ WORKSPACE_INSTALL_MSSQL=false
 | 
			
		||||
WORKSPACE_INSTALL_DRUSH=false
 | 
			
		||||
WORKSPACE_DRUSH_VERSION=8.1.17
 | 
			
		||||
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
 | 
			
		||||
WORKSPACE_INSTALL_WP_CLI=false
 | 
			
		||||
WORKSPACE_INSTALL_AEROSPIKE=false
 | 
			
		||||
WORKSPACE_INSTALL_V8JS=false
 | 
			
		||||
WORKSPACE_INSTALL_LARAVEL_ENVOY=false
 | 
			
		||||
 
 | 
			
		||||
@@ -174,6 +174,21 @@ RUN if [ ${INSTALL_DRUSH} = true ]; then \
 | 
			
		||||
    drush core-status \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
###########################################################################
 | 
			
		||||
# WP CLI:
 | 
			
		||||
###########################################################################
 | 
			
		||||
 | 
			
		||||
# The command line interface for WordPress
 | 
			
		||||
 | 
			
		||||
USER root
 | 
			
		||||
 | 
			
		||||
ARG INSTALL_WP_CLI=false
 | 
			
		||||
 | 
			
		||||
RUN if [ ${INSTALL_WP_CLI} = true ]; then \
 | 
			
		||||
    curl -fsSL -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | bash && \
 | 
			
		||||
    chmod +x /usr/local/bin/wp \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
###########################################################################
 | 
			
		||||
# SSH2:
 | 
			
		||||
###########################################################################
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user