Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djmaze/rails-dev-env-with-docker-and-compose
Scripts for using a Rails development environment with Docker and Docker Compose
https://github.com/djmaze/rails-dev-env-with-docker-and-compose
Last synced: 27 days ago
JSON representation
Scripts for using a Rails development environment with Docker and Docker Compose
- Host: GitHub
- URL: https://github.com/djmaze/rails-dev-env-with-docker-and-compose
- Owner: djmaze
- License: mit
- Created: 2015-01-22T13:02:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T16:22:11.000Z (over 6 years ago)
- Last Synced: 2024-12-08T20:41:28.969Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
* Optionally, install [docker-ssh-agent-forward](https://github.com/djmaze/docker-ssh-agent-forward) if you need to install private gems or deploy via SSH.
* Copy the script [bundle-package-all-with-docker](bundle-package-all-with-docker) into your path:curl -sL https://github.com/djmaze/rails-dev-env-with-docker-and-compose/raw/master/bundle-package-all-with-docker | sudo tee /usr/local/bin/bundle-package-all-with-docker 1>/dev/null
sudo chmod +x /usr/local/bin/bundle-package-all-with-docker## Getting started with an existing app
(Note: You have to prefix all commands with `sudo -E` if you need to run Docker as root).
* Use the [`ruby`](https://hub.docker.com/_/ruby/) base image (with the version needed) in your Dockerfile.
* In your project directory, fetch all gems one-time:
bundle-package-all-with-docker
* Then do a `docker build` as usual.
You need to re-run `bundle-package-all-with-docker` when your Gemfile is changed.
## Setting up a new rails app
In a new directory, run:
touch Gemfile
bundle-package-all-with-docker
gem install rails
rails new## Using Docker Compose
TBD