Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/surajx/development

single repository that contains the entire stack used for development
https://github.com/surajx/development

Last synced: 9 days ago
JSON representation

single repository that contains the entire stack used for development

Awesome Lists containing this project

README

        

# Development Workflow
1. Make sure the following tools are installed
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [Docker](https://docs.docker.com/v1.8/installation/)
* [Docker-compose](https://docs.docker.com/compose/install/)
2. Fork the following apps into your github account
* [django-app](https://github.com/devwf/django-app)
3. RUN `./dev-init `

# Frequently Used Commands
* `docker-compose up -d` Run containers in background (detached mode)
* `docker-compose stop` gracefully shutdown the container
* `docker-compose rm -f ` Remove stopped container of
* `docker-compose rm -f` Remove ALL stopped service containers
* `docker-compose logs ` view output from container of
* `docker-compose run --rm ` Run a one-off command on a service.
* `docker-compose run --rm /bin/bash` Get a shell prompt on
* `docker-compose run --rm python manage.py && \
sudo chown -R $USER:$USER `
Run django administration on a django-app container, and update user of
generated files to the local user.
* `docker-compose ps` List containers.
* `docker-compose build --pull ` Build newer version of image from hub
* `docker-compose restart` restart running containers
* `docker-compose stop; docker-compose rm -f && docker-compose pull `
Pull the latest image of

### Container/Image Cleanup
* `docker rm $(docker ps -aq)` Removes all stopped containers.
* `docker rmi -f $(docker images | grep "^" | awk '{print $3}')` Remove
all untagged images.
* `docker volume rm $(docker volume ls -q)` Removes all containers *WARNING*
all the data would be lost.