{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2392","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2392/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2392/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2392/events","html_url":"https://github.com/RIOT-OS/RIOT/pull/2392","id":56646275,"number":2392,"title":"Makefile.include: Add support for running make inside a Docker container","user":{"login":"gebart","id":317506,"avatar_url":"https://avatars.githubusercontent.com/u/317506?v=3","gravatar_id":"","url":"https://api.github.com/users/gebart","html_url":"https://github.com/gebart","followers_url":"https://api.github.com/users/gebart/followers","following_url":"https://api.github.com/users/gebart/following{/other_user}","gists_url":"https://api.github.com/users/gebart/gists{/gist_id}","starred_url":"https://api.github.com/users/gebart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebart/subscriptions","organizations_url":"https://api.github.com/users/gebart/orgs","repos_url":"https://api.github.com/users/gebart/repos","events_url":"https://api.github.com/users/gebart/events{/privacy}","received_events_url":"https://api.github.com/users/gebart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/make","name":"make","color":"bfdadc"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/NEEDS%20SQUASHING","name":"NEEDS SQUASHING","color":"009800"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/new%20feature","name":"new feature","color":"e11d21"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/Request%20for%20Comments","name":"Request for Comments","color":"23F823"}],"state":"open","locked":false,"assignee":{"login":"kaspar030","id":4679640,"avatar_url":"https://avatars.githubusercontent.com/u/4679640?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspar030","html_url":"https://github.com/kaspar030","followers_url":"https://api.github.com/users/kaspar030/followers","following_url":"https://api.github.com/users/kaspar030/following{/other_user}","gists_url":"https://api.github.com/users/kaspar030/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspar030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspar030/subscriptions","organizations_url":"https://api.github.com/users/kaspar030/orgs","repos_url":"https://api.github.com/users/kaspar030/repos","events_url":"https://api.github.com/users/kaspar030/events{/privacy}","received_events_url":"https://api.github.com/users/kaspar030/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-02-05T09:29:21Z","updated_at":"2015-03-22T14:16:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2392","html_url":"https://github.com/RIOT-OS/RIOT/pull/2392","diff_url":"https://github.com/RIOT-OS/RIOT/pull/2392.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/2392.patch"},"body":"This is a work in progress spawning from #2391 \r\n\r\nTo test it out:\r\n\r\n 1. Install Docker on your host.\r\n 2. Either pull a pre-built image or build your own using a Dockerfile:\r\n\r\n## Pre-built from Docker hub\r\n\r\nI have prepared images based on debian:jessie for embedded development. The Docker hub repository is named `gebart/riotbuild` and can be browsed at https://registry.hub.docker.com/u/gebart/riotbuild/ \r\n\r\n```sh\r\ndocker pull gebart/riotbuild:latest\r\n```\r\nwill pull an image capable of building all RIOT target platforms as far as I know..\r\n\r\nThe following pre-built images are available:\r\n\r\n - `gebart/riotbuild:native-only` - only build-essentials and related tools for building the native platform\r\n - `gebart/riotbuild:arm` - native + arm-none-eabi toolchains\r\n - `gebart/riotbuild:avr` - native + avr toolchains\r\n - `gebart/riotbuild:msp430` - native + msp430 toolchains\r\n - `gebart/riotbuild:x86` - native + qemu-system-x86, for x86 bare metal platforms.\r\n - `gebart/riotbuild:latest` - all of the above toolchains\r\n\r\n## Build your own\r\n\r\nThe Dockerfiles used for building the above images are available at https://github.com/gebart/riotbuild\r\n\r\n```sh\r\ngit clone https://github.com/gebart/riotbuild.git \r\ncd riotbuild\r\n[optional: ] cd $platform\r\ndocker build -t imagename .\r\n```\r\n\r\n## Trying out building RIOT in a container\r\n\r\nSet the DOCKER_IMAGE environment variable to your chosen build image and set BUILD_IN_DOCKER to 1 to enable building inside that image.\r\n\r\n```sh\r\nexport DOCKER_IMAGE=[chosen image above]\r\nexport BUILD_IN_DOCKER=1\r\ncd /your/riot/path/examples/default\r\nmake BOARD=whatever\r\n```"},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/84615001","html_url":"https://github.com/RIOT-OS/RIOT/pull/2392#issuecomment-84615001","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2392","id":84615001,"user":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T14:16:15Z","updated_at":"2015-03-22T14:16:15Z","body":"Sorry, Pebcak, docker wasn't started."}}