Created
November 4, 2016 18:35
-
-
Save krlsdu/2ac980f0822427acf7721c5e34ba1f88 to your computer and use it in GitHub Desktop.
Script to up and launcher a instace from askbot using docker
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
docker build -t askbot . | |
docker run --name postgres -e POSTGRES_PASSWORD=askbot -e POSTGRES_USER=askbot -e POSTGRES_DB=askbot -d postgres | |
docker run --name memcached -d memcached | |
docker run --name askbot -t -i --link memcached --link postgres -d askbot | |
sleep 7 | |
docker exec askbot python manage.py syncdb --noinput | |
docker restart askbot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment