Giter VIP home page Giter VIP logo

Comments (9)

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @mboersma on September 13, 2016 21:17

This general idea works well for buildpack-based apps (now that deis/slugbuilder#104 landed).

It would be useful to have a similar pre-/post-compile hook mechanism for Dockerfile apps, as well as for deis pull deploys. We should put some thought into how to implement that in a consistent way--suggestions welcome!

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @robholland on October 14, 2016 13:6

This probably belongs on deis/controller then?

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @pixeleet on October 14, 2016 13:55

So controller would setup the service you depend on for testing? Would it work with shell scripts? Would it be a DSL like some ci systems use? How do you imagine it working @robholland?

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @bacongobbler on October 14, 2016 15:20

I still think it's fair to keep it here for the time being until someone writes out a design document/PR for the proposed feature.

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @robholland on October 14, 2016 20:56

Simplest functionality would be to specify commands that are run inside the container after build/pull. This would be useful for asset compilation for example, which needs to be run with the correct environment.

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @robholland on October 18, 2016 16:23

How about:

$ deis hooks:post:list
=== app Post Hooks
$ deis hooks:post:add 'bundle exec rake assets:precompile'
=== app Post Hooks
bundle exec rake assets:precompile
$ deis hooks:post:remove 'bundle exec rake assets:precompile'
=== app Post Hooks

The registered commands are run inside the docker container after build and before deployment to k8s.

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @bacongobbler on October 18, 2016 16:44

I'm concerned about the added time to run the one-off command in the same API call as when we build the app. We're already seeing a large number of issues come in that's usually ELB-related with the builder timing out.

If you're willing to take a crack at a PR as well as some end-to-end tests, I don't see an issue with the proposal as long as it works.

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @bacongobbler on March 22, 2017 21:5

Does anyone have the time to work on this or shall we remove from the milestone since the cut-off for v2.13 is April 3rd?

from dockerbuilder.

Cryptophobia avatar Cryptophobia commented on August 16, 2024

From @mboersma on March 22, 2017 21:15

It seems unlikely we can tackle this in time for v2.13. I'll kick it into the future.

from dockerbuilder.

Related Issues (9)

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.