Last active
August 29, 2015 14:04
-
-
Save leonelvsc/a11889dff98e8dd32f0d to your computer and use it in GitHub Desktop.
Run symfony2 docker image on root of SF2Project folder
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
# 1st file place it in bin/start | |
#!/bin/bash | |
docker run -d \ | |
-v $(pwd):/var/www \ | |
-p 8000:80 \ | |
-p 8001:22 \ | |
--cidfile app/cache/docker.cid \ | |
leonelvsc/symfony2 | |
#============================================= | |
# 2nd file bin/stop | |
#!/bin/bash | |
docker stop $(cat app/cache/docker.cid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment