{"action":"created","issue":{"url":"https://api.github.com/repos/sass/node-sass/issues/800","labels_url":"https://api.github.com/repos/sass/node-sass/issues/800/labels{/name}","comments_url":"https://api.github.com/repos/sass/node-sass/issues/800/comments","events_url":"https://api.github.com/repos/sass/node-sass/issues/800/events","html_url":"https://github.com/sass/node-sass/issues/800","id":64286221,"number":800,"title":"Build automation: Multiple issues with docker","user":{"login":"am11","id":3840695,"avatar_url":"https://avatars.githubusercontent.com/u/3840695?v=3","gravatar_id":"","url":"https://api.github.com/users/am11","html_url":"https://github.com/am11","followers_url":"https://api.github.com/users/am11/followers","following_url":"https://api.github.com/users/am11/following{/other_user}","gists_url":"https://api.github.com/users/am11/gists{/gist_id}","starred_url":"https://api.github.com/users/am11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am11/subscriptions","organizations_url":"https://api.github.com/users/am11/orgs","repos_url":"https://api.github.com/users/am11/repos","events_url":"https://api.github.com/users/am11/events{/privacy}","received_events_url":"https://api.github.com/users/am11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/node-sass/labels/Build","name":"Build","color":"009800"},{"url":"https://api.github.com/repos/sass/node-sass/labels/Help%20Wanted","name":"Help Wanted","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sass/node-sass/milestones/5","html_url":"https://github.com/sass/node-sass/milestones/3.0","labels_url":"https://api.github.com/repos/sass/node-sass/milestones/5/labels","id":949404,"number":5,"title":"3.0","description":"* Implement Custom Importer: https://github.com/sass/node-sass/issues/332.\r\n* Add binaries for Solaris and FreeBSD: https://github.com/sass/node-sass-binaries/issues/32.\r\n* Replace file watcher package `gaze` with `chokidar`: https://github.com/sass/node-sass/issues/636.\r\n* Make recursive option independent of watch: https://github.com/sass/node-sass/issues/601.","creator":{"login":"am11","id":3840695,"avatar_url":"https://avatars.githubusercontent.com/u/3840695?v=3","gravatar_id":"","url":"https://api.github.com/users/am11","html_url":"https://github.com/am11","followers_url":"https://api.github.com/users/am11/followers","following_url":"https://api.github.com/users/am11/following{/other_user}","gists_url":"https://api.github.com/users/am11/gists{/gist_id}","starred_url":"https://api.github.com/users/am11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am11/subscriptions","organizations_url":"https://api.github.com/users/am11/orgs","repos_url":"https://api.github.com/users/am11/repos","events_url":"https://api.github.com/users/am11/events{/privacy}","received_events_url":"https://api.github.com/users/am11/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":21,"state":"open","created_at":"2015-01-24T03:49:55Z","updated_at":"2015-03-25T21:55:17Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-03-25T14:41:44Z","updated_at":"2015-03-26T10:26:45Z","closed_at":null,"body":"@QuLogic, @Vektah,\r\n\r\nAs per the previous conversation: https://github.com/sass/libsass/issues/382#issuecomment-83519065, I am building binaries for v3.0.0-beta.1 using docker container (so we don't have to manually build apply code patch to libsass).\r\n\r\nSo far I have this Dockerfile, https://gist.github.com/am11/1529b2458b1a1f4bdba8. I am able to configure nvm (which happen to not support x86-32 runtimes, hence these [ugly workarounds](https://gist.github.com/am11/1529b2458b1a1f4bdba8#file-node-sass_docker-sh-L56-L84)). \r\n\r\nThe end objective is to get total of eight binaries for four versions of runtimes for both, 64 and 32 bit architectures.\r\n\r\nI am able to build the x64 binaries, removing [lines 44-84](https://gist.github.com/am11/1529b2458b1a1f4bdba8#file-node-sass_docker-sh-L44-L84), but i386 build throw the following on linking:\r\n\r\n>\r\nSOLINK_MODULE(target) Release/obj.target/binding.node\r\n/opt/centos/devtoolset-1.0/root/usr/libexec/gcc/x86_64-CentOS-linux/4.7.0/ld: skipping incompatible /opt/centos/devtools\r\net-1.0/root/usr/lib/gcc/x86_64-CentOS-linux/4.7.0/libstdc++_nonshared.a when searching for -lstdc++_nonshared\r\n/opt/centos/devtoolset-1.0/root/usr/libexec/gcc/x86_64-CentOS-linux/4.7.0/ld: cannot find -lstdc++_nonshared\r\ncollect2: error: ld returned 1 exit status\r\n\r\nI tried many solution ranging from setting `-m32` for CXX, CL, LD flags, but could not satisfy/shut-up linker..\r\n\r\nAlso tried a separate CentOS 5x i386 containers, such as this one: https://registry.hub.docker.com/u/gpmidi/centos-5/, but they all end up with varied issues: some are actually x86_64 (uname -a), some are versioned <= 5.10, so yum throws mirror not found server error. If this works out, we will also save us from the nvm hacks for i386.\r\n\r\n---\r\n\r\nSecondly, the last step is to add `vendor/` to a gzip image. After that I want to obtain that image in host so I can untar and upload to GitHub release. We already have upload-directly-to-GitHub-release script ready: [scripts/upload.js](https://github.com/sass/node-sass/blob/3d8ad45c304bbc23850066650d869fcfc217d190/scripts/upload.js), but for some crazy reason the uploaded binaries are corrupted (probably due to ill-serialization? or we should use zip content-type instead of application/octet-stream?). \r\n\r\nOnce the process exits, the container goes in stale state, hence the following doesn't work:\r\n\r\n```\r\ndocker cp <containerId>:/node-sass/binaries.tar.gz ./mystore\r\n```\r\n\r\n(from http://stackoverflow.com/a/22050116/863980)\r\n\r\nwhere container id can be fetched from\r\n\r\n```\r\ndocker ps -a\r\n```\r\n\r\nDo we need to upload it somewhere? or send as Email attachment? \r\n\r\nAlso copying @xzyfer, @mgreter; feel free to chime in. :)\r\n"},"comment":{"url":"https://api.github.com/repos/sass/node-sass/issues/comments/86442195","html_url":"https://github.com/sass/node-sass/issues/800#issuecomment-86442195","issue_url":"https://api.github.com/repos/sass/node-sass/issues/800","id":86442195,"user":{"login":"am11","id":3840695,"avatar_url":"https://avatars.githubusercontent.com/u/3840695?v=3","gravatar_id":"","url":"https://api.github.com/users/am11","html_url":"https://github.com/am11","followers_url":"https://api.github.com/users/am11/followers","following_url":"https://api.github.com/users/am11/following{/other_user}","gists_url":"https://api.github.com/users/am11/gists{/gist_id}","starred_url":"https://api.github.com/users/am11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am11/subscriptions","organizations_url":"https://api.github.com/users/am11/orgs","repos_url":"https://api.github.com/users/am11/repos","events_url":"https://api.github.com/users/am11/events{/privacy}","received_events_url":"https://api.github.com/users/am11/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T10:26:44Z","updated_at":"2015-03-26T10:26:44Z","body":"Thank you. I will have a look after my working hours. :)"}}