{"action":"opened","issue":{"url":"https://api.github.com/repos/Wiredcraft/docker-builder/issues/2","labels_url":"https://api.github.com/repos/Wiredcraft/docker-builder/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Wiredcraft/docker-builder/issues/2/comments","events_url":"https://api.github.com/repos/Wiredcraft/docker-builder/issues/2/events","html_url":"https://github.com/Wiredcraft/docker-builder/issues/2","id":63146738,"number":2,"title":"Improve build process - hierarchy","user":{"login":"zbal","id":631984,"avatar_url":"https://avatars.githubusercontent.com/u/631984?v=3","gravatar_id":"","url":"https://api.github.com/users/zbal","html_url":"https://github.com/zbal","followers_url":"https://api.github.com/users/zbal/followers","following_url":"https://api.github.com/users/zbal/following{/other_user}","gists_url":"https://api.github.com/users/zbal/gists{/gist_id}","starred_url":"https://api.github.com/users/zbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbal/subscriptions","organizations_url":"https://api.github.com/users/zbal/orgs","repos_url":"https://api.github.com/users/zbal/repos","events_url":"https://api.github.com/users/zbal/events{/privacy}","received_events_url":"https://api.github.com/users/zbal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T03:02:58Z","updated_at":"2015-03-20T03:02:58Z","closed_at":null,"body":"Currently, we rely on the `builder.yaml` file to list known containers, running `docker-builder` without args builds all the containers defined in the `yaml` file. Setting args after the bin only builds the required container. BUT it doesn't rebuild containers that depend on it - e.g. rebuild python container should auto rebuild the django container that depends on it. \r\n\r\nThe dependencies are \"defined\" in the `Dockerfile` file, after the `FROM` keyword.\r\n\r\nTo be noted:\r\n- the `FROM` keyword list the complete name, including the hub.docker username (`wiredcraft/bob` - is user wiredcraft, container's name bob) - but only `bob` is set as folder name\r\n- most likely a dependency tree need to be built from the parsing of all the `Dockerfile`\r\n- an option (in `docopt`) may have to be added to allow / bypass the auto build of dependencies and still limit only to the containers listed\r\n- we may want to \"drop\" the containers list from the `builder.yaml` and rely on the current folder / subfolder -- to be discussed."}}