Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contextually aware dependencies per project #51

Open
twslade opened this issue Dec 5, 2016 · 0 comments
Open

contextually aware dependencies per project #51

twslade opened this issue Dec 5, 2016 · 0 comments

Comments

@twslade
Copy link

twslade commented Dec 5, 2016

Imagine having projects that can be bootstrapped with dependencies within the context of the project. The definition of those dependencies can travel within the repository.

Example: Two repositories require different versions of NPM. The first project requires v2.5.10 and the second required v4.0.3. To set these up with Dex in its current form requires searching for the appropriate dockerfile and building/installing through dex. You can then choose to install them globally or with the dex prefix. We would then need to modify our project code to prefer one of the dex images to have the two separate versions running.

In the use case above, imagine that we created .dexjson file that defines the required images to run the current program. In our use case above, the file might look like:

Dependencies:
  command-name: docker-tag
  node: node-4
  php: ./php7-cli/Dockerfile
  cop: dexbuilds/cop:release

Dex would then build the four dependencies listed above and create executable symlinks within the project root to run the individual commands. As shown above in the config file, the dependencies can reference docker tags or local docker files.

Inspiration: https://docs.haskellstack.org/en/stable/GUIDE/#what-makes-stack-special

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant