Created
May 9, 2017 11:52
-
-
Save emgk/02ad3f66dbf7ba56ea73de6bfd3ed61b to your computer and use it in GitHub Desktop.
Docker deployment batch script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 . | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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