{"action":"created","issue":{"url":"https://api.github.com/repos/reikalang/rcl/issues/6","repository_url":"https://api.github.com/repos/reikalang/rcl","labels_url":"https://api.github.com/repos/reikalang/rcl/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/reikalang/rcl/issues/6/comments","events_url":"https://api.github.com/repos/reikalang/rcl/issues/6/events","html_url":"https://github.com/reikalang/rcl/issues/6","id":313441626,"number":6,"title":"[go] Test on Travis using Docker","user":{"login":"at15","id":5621298,"avatar_url":"https://avatars2.githubusercontent.com/u/5621298?v=4","gravatar_id":"","url":"https://api.github.com/users/at15","html_url":"https://github.com/at15","followers_url":"https://api.github.com/users/at15/followers","following_url":"https://api.github.com/users/at15/following{/other_user}","gists_url":"https://api.github.com/users/at15/gists{/gist_id}","starred_url":"https://api.github.com/users/at15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at15/subscriptions","organizations_url":"https://api.github.com/users/at15/orgs","repos_url":"https://api.github.com/users/at15/repos","events_url":"https://api.github.com/users/at15/events{/privacy}","received_events_url":"https://api.github.com/users/at15/received_events","type":"User","site_admin":false},"labels":[{"id":899078213,"url":"https://api.github.com/repos/reikalang/rcl/labels/backlog","name":"backlog","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-11T18:40:51Z","updated_at":"2018-04-12T06:07:46Z","closed_at":"2018-04-12T06:07:46Z","author_association":"CONTRIBUTOR","body":"Since current repo has more than one language, it would take some time to setup test using travis, we can just use docker for test, this also allow test different go version \r\n\r\n- [ ] build the docker image that has dep from standard go image\r\n- [ ] download dependencies, we might only need to download it once, could just build a image for dep\r\n- [ ] run test in container\r\n\r\nRef\r\n\r\n- https://github.com/dyweb/gommon/blob/master/scripts/docker-compose.yml"},"comment":{"url":"https://api.github.com/repos/reikalang/rcl/issues/comments/380689490","html_url":"https://github.com/reikalang/rcl/issues/6#issuecomment-380689490","issue_url":"https://api.github.com/repos/reikalang/rcl/issues/6","id":380689490,"user":{"login":"at15","id":5621298,"avatar_url":"https://avatars2.githubusercontent.com/u/5621298?v=4","gravatar_id":"","url":"https://api.github.com/users/at15","html_url":"https://github.com/at15","followers_url":"https://api.github.com/users/at15/followers","following_url":"https://api.github.com/users/at15/following{/other_user}","gists_url":"https://api.github.com/users/at15/gists{/gist_id}","starred_url":"https://api.github.com/users/at15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at15/subscriptions","organizations_url":"https://api.github.com/users/at15/orgs","repos_url":"https://api.github.com/users/at15/repos","events_url":"https://api.github.com/users/at15/events{/privacy}","received_events_url":"https://api.github.com/users/at15/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T06:07:46Z","updated_at":"2018-04-12T06:07:46Z","author_association":"CONTRIBUTOR","body":"so the issue should be when volume is bind to docker from local file system,its permission is root, and in container, user is set to `gradle`, so `gradle` command can't create folder .... but\r\n\r\n- it worked for me locally, and the generated file `build`, `.gradle` all have correct permission (instead of root ...)\r\n- the `USER` in `Dockerfile` seems only have effects for command after it https://docs.docker.com/engine/reference/builder/#user\r\n\r\n> The USER instruction sets the user name (or UID) and optionally the user group (or GID) to use when running the image and for any RUN, CMD and ENTRYPOINT instructions that follow it in the Dockerfile."}}
{"actor":{"display_login":"at15"}}