Giter VIP home page Giter VIP logo

Comments (5)

januszm avatar januszm commented on June 25, 2024 1

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.

ttilberg avatar ttilberg commented on June 25, 2024 1

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.

rubys avatar rubys commented on June 25, 2024

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.

rubys avatar rubys commented on June 25, 2024

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.

januszm avatar januszm commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.