Skip to content

Instantly share code, notes, and snippets.

@krlsdu
Created November 4, 2016 18:35
Show Gist options
  • Save krlsdu/2ac980f0822427acf7721c5e34ba1f88 to your computer and use it in GitHub Desktop.
Save krlsdu/2ac980f0822427acf7721c5e34ba1f88 to your computer and use it in GitHub Desktop.
Script to up and launcher a instace from askbot using docker
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