Skip to content

Instantly share code, notes, and snippets.

@leonelvsc
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonelvsc/a11889dff98e8dd32f0d to your computer and use it in GitHub Desktop.
Save leonelvsc/a11889dff98e8dd32f0d to your computer and use it in GitHub Desktop.
Run symfony2 docker image on root of SF2Project folder
# 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