Comments (5)
oh I'm sorry, looks like I had it before my eyes. On the other hand, maybe the fact that it was not immediately readable for me means that we should add an example here, even the one I gave, where in build we need freetds-dev
and in base freetds-bin
as runtime dependency.
Regarding --dev
do we have some overlap here with what docked provides? or perhaps these two tools should be merged ?
from dockerfile-rails.
Hey folks, I just wanted to leave a small bit of feedback to this issue. I was using this project today for an app that leverages SQL Server, and therefor needs freetds-dev to build.
The example @januszm left in the README was extremely valuable today, and I just wanted to thank you for adding it, and @rubys for allowing it in such prime real estate. In addition to helping configure the output, it helps highlight the difference between build and runtime binary deps. A lot of context in such a small example. (Particularly useful that it's the exact example I was trying to add ;))
from dockerfile-rails.
From https://github.com/rubys/dockerfile-rails#add-a-packageenvironment-variablebuild-argument :
Each of these can be tailored to a specific build phase by adding
-base
,-build
, or-deploy
after the flag name (e.g--env-build:
). If no such suffix is found, the default for arg is-base
, and the default for the rest is-deploy
.
Is this what you are looking for? Did you just miss it, or do you have any suggestions on how to make it more clear?
I am also curious if this tool is to be used to create Docker images for development or is it intended to be only for building production images? I'm asking because here is hardcoded RAILS_ENV production
If adding a '--dev' option would be of value, I have no objection. I'm about to merge in the following change rails/rails#47594 which would obviously need to only apply to production. I'd also drop the setting of BUNDLE_WITHOUT
in development.
from dockerfile-rails.
we should add an example here
Care to make a pull request? I'd like to keep the front page compact, but anything is fair game on additional pages.
do we have some overlap here with what docked provides?
At the moment, quite different use cases. dockerfile-rails assumes that you have an application. docked assumes that you have nothing and want to run rails new
inside an empty container. If you want to complete the picture, I would also include things like VSCode which lets you operate inside a container the same way you would if the code was local.
from dockerfile-rails.
Care to make a pull request? I'd like to keep the front page compact, but anything is fair game on additional pages.
Gotcha, will do, probably just one phrase.
At the moment, quite different use cases.
Not necessarily, but I get your point. These commands from docked
are used for further development after the application is created and could as well be used after "dockerizing" a legacy project
docked rails generate scaffold post title:string body:text
docked rails db:migrate
docked rails server
this is the "overlap" I meant
from dockerfile-rails.
Related Issues (20)
- Expose BUNDLE_WITHOUT as ARG to enable building test and production images HOT 1
- Add curl HOT 2
- 1.5.2 Dockerfile breaks on ECS HOT 4
- `--max-idle` option generates corrupted Dockerfile
- `--max-idle=n` should now be added for Puma
- dockerfile_generator.rb:505:in `>=': comparison of Gem::Version with String failed (ArgumentError)
- Install Bun when it is being used instead of Node HOT 17
- Don't default to sqlite3, or provide option to disable? HOT 2
- vendor directory is empty in CI HOT 1
- `packages` directive on `dockerfile.yaml` doesn't install all packages
- replace frozen-lockfile with immutable for yarn >= 2
- [REQ] Is there a plan to support Alpine Linux in `dockerfile-rails` instead of the Debian OS? HOT 7
- Node being installed even if Bun is being used HOT 2
- Error installing psych (5.1.2) when creating DockerFile with Rails 7.1.2
- Order of `COPY` commands doesn't allow for Gemfile's `file` directive
- Node path not found error when building image with Alpine
- Missing RUN statement when using execjs and Yarn HOT 1
- Latest Rubygems no longer supports Ruby < 3 HOT 1
- Use `bun` official images HOT 2
- Ignore Shrine default upload directory in .dockerignore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfile-rails.