This project allows to easily manage dependencies between projects.
On your machine you must have :
Create a .dependencies file that must be in JSON format.
Here is an example of a file with a dependency.
{
"my-project-name": {
"path": "my-project-path",
"repository": "[email protected]:my-project.git"
}
}
path must be relative to the parent directory.
repository git repository url.
Then edit your project make to add the following lines :
DEPENDENCIES=
CMD_start = docker run -ti --rm -v $(PWD)/../:/mnt/projects/ -e PROJECTNAME=my-project-name -e COMMAND=start -e DEPENDENCIES=${DEPENDENCIES} d3tdistribution/projet-dependencies
start: env
$(shell ${CMD_start})
PROJECTNAME is the name of the project.
COMMAND is the command to execute for the dependent projets.
DEPENDENCIES is the list of dependent projects already started in order to avoid project circular dependencies.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. See LICENSE.txt for more information.
Content type
Image
Digest
Size
27.3 MB
Last updated
over 4 years ago
docker pull d3tdistribution/projet-dependencies