Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cruikshanks/docker-for-dev
Basic examples of how to use Docker for local Ruby and Node.js development
https://github.com/cruikshanks/docker-for-dev
Last synced: 16 days ago
JSON representation
Basic examples of how to use Docker for local Ruby and Node.js development
- Host: GitHub
- URL: https://github.com/cruikshanks/docker-for-dev
- Owner: Cruikshanks
- License: mit
- Created: 2017-08-15T22:24:04.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T23:58:25.000Z (about 2 years ago)
- Last Synced: 2024-11-20T12:10:14.075Z (2 months ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker for development
Using **Docker** for local development is different to actually building images that you expect to be deployed and run as containers elsewhere.
Essentially the aim for local development is to simplify creating the necessary environment for running your app.
So for example the main docker tutorial assumes I have Python and PIP installed locally so that I can then grab the project's dependencies. The `Dockerfile` focuses on *copying* the project including dependencies into an image, and specifying its startup behaviour.
For local development I'm more interested in starting a container that contains everything I need to build and run my app, whilst still be able to make changes to the project, and have that reflected in the running application (assuming you're building in dynamic rather than a static language).
This project is the result of my initial attempts to understand how to do this.
## Docker for ruby development
The first of two examples. This demonstrates how you can use **Docker** to provide the environment for developing a basic ruby [Sinatra](http://www.sinatrarb.com/) application.
See its [README](/ruby) for further details.
## Docker for node development
The second example. This demonstrates how you can use **Docker** to provide the environment for developing a basic Node.js [Express](https://expressjs.com/) application.
See its [README](/node) for further details.
## Contributing
If you think I'm doing something wrong or have a better way create an issue or better yet raise a pull request and show me.
## License
This information is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
> If you don't add a license it's neither free or open!