Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/surajx/development
- Owner: surajx
- License: mit
- Created: 2015-11-28T15:40:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-09T00:35:34.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T23:26:22.405Z (about 1 month ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.