Skip to content

Instantly share code, notes, and snippets.

@emgk
Created May 9, 2017 11:52
Show Gist options
  • Save emgk/02ad3f66dbf7ba56ea73de6bfd3ed61b to your computer and use it in GitHub Desktop.
Save emgk/02ad3f66dbf7ba56ea73de6bfd3ed61b to your computer and use it in GitHub Desktop.
Docker deployment batch script
@echo off
setlocal
IF "%1"=="-up" (
"%DOCKER_TOOLBOX_INSTALL_PATH%\start.sh" cd c:/wpdoc/%2/html; docker cp . %3:/var/www/html
)
IF "%1"=="-down" (
if not exist "c:/wpdoc/%2%" (
md "c:/wpdoc/%2%"
)
"%DOCKER_TOOLBOX_INSTALL_PATH%\start.sh" cd c:/wpdoc/%2/html; docker cp %3:/var/www/html .
)
1. Put this file anywhere you want.
2. Copy the path where you saved this file
3. Set that path to environment setting of computer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment