{"action":"created","issue":{"url":"https://api.github.com/repos/Osedea/nodock/issues/102","repository_url":"https://api.github.com/repos/Osedea/nodock","labels_url":"https://api.github.com/repos/Osedea/nodock/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/Osedea/nodock/issues/102/comments","events_url":"https://api.github.com/repos/Osedea/nodock/issues/102/events","html_url":"https://github.com/Osedea/nodock/issues/102","id":321396457,"number":102,"title":"Error building nginx service","user":{"login":"Granga","id":6062311,"avatar_url":"https://avatars3.githubusercontent.com/u/6062311?v=4","gravatar_id":"","url":"https://api.github.com/users/Granga","html_url":"https://github.com/Granga","followers_url":"https://api.github.com/users/Granga/followers","following_url":"https://api.github.com/users/Granga/following{/other_user}","gists_url":"https://api.github.com/users/Granga/gists{/gist_id}","starred_url":"https://api.github.com/users/Granga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Granga/subscriptions","organizations_url":"https://api.github.com/users/Granga/orgs","repos_url":"https://api.github.com/users/Granga/repos","events_url":"https://api.github.com/users/Granga/events{/privacy}","received_events_url":"https://api.github.com/users/Granga/received_events","type":"User","site_admin":false},"labels":[{"id":482334581,"url":"https://api.github.com/repos/Osedea/nodock/labels/possible%20bug","name":"possible bug","color":"f9d0c4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-09T01:07:13Z","updated_at":"2018-05-12T19:15:29Z","closed_at":"2018-05-12T19:15:29Z","author_association":"NONE","body":"I get error when running the `docker-compose up -d mongo node nginx` command.\r\nMy OS: Windows 8.1\r\nTerminal: [Hyper](https://github.com/zeit/hyper)\r\n\r\nHere is the command's output:\r\n```\r\n$ docker-compose up -d mongo node nginx\r\nBuilding nginx\r\nStep 1/16 : FROM nginx:1.11\r\n ---> 5766334bdaa0\r\nStep 2/16 : RUN mkdir /etc/nginx/sites-available && rm /etc/nginx/conf.d/default.conf\r\n ---> Using cache\r\n ---> 4892dddb739b\r\nStep 3/16 : ADD nginx.conf /etc/nginx/\r\n ---> Using cache\r\n ---> 03b774e4cfd5\r\nStep 4/16 : COPY scripts /root/scripts/\r\n ---> Using cache\r\n ---> 36c6047daf6a\r\nStep 5/16 : COPY certs /etc/ssl/\r\n ---> Using cache\r\n ---> b90502ed266c\r\nStep 6/16 : COPY sites /etc/nginx/templates\r\n ---> Using cache\r\n ---> 19c271ddb0af\r\nStep 7/16 : ARG WEB_REVERSE_PROXY_PORT=8000\r\n ---> Using cache\r\n ---> f81484e144ab\r\nStep 8/16 : ARG WEB_SSL=false\r\n ---> Using cache\r\n ---> c8811228c3df\r\nStep 9/16 : ARG SELF_SIGNED=false\r\n ---> Using cache\r\n ---> dcfdad9868e4\r\nStep 10/16 : ARG NO_DEFAULT=false\r\n ---> Using cache\r\n ---> ce8f9a09dc8b\r\nStep 11/16 : ENV WEB_REVERSE_PROXY_PORT=$WEB_REVERSE_PROXY_PORT\r\n ---> Using cache\r\n ---> f917d6e76e24\r\nStep 12/16 : ENV WEB_SSL=$WEB_SSL\r\n ---> Using cache\r\n ---> 302da37baf92\r\nStep 13/16 : ENV SELF_SIGNED=$SELF_SIGNED\r\n ---> Using cache\r\n ---> fa5467ae20c8\r\nStep 14/16 : ENV NO_DEFAULT=$NO_DEFAULT\r\n ---> Using cache\r\n ---> a1e25dc9605c\r\nStep 15/16 : RUN /bin/bash /root/scripts/build-nginx.sh\r\n ---> Running in ddbcba4481b9\r\n/root/scripts/build-nginx.sh: line 2: $'\\r': command not found\r\n/root/scripts/build-nginx.sh: line 3: syntax error near unexpected token `$'do\\r''\r\n'root/scripts/build-nginx.sh: line 3: `for conf in /etc/nginx/templates/*.conf; do\r\nERROR: Service 'nginx' failed to build: The command '/bin/sh -c /bin/bash /root/scripts/build-nginx.sh' returned a non-zero code: 2\r\n```"},"comment":{"url":"https://api.github.com/repos/Osedea/nodock/issues/comments/388576743","html_url":"https://github.com/Osedea/nodock/issues/102#issuecomment-388576743","issue_url":"https://api.github.com/repos/Osedea/nodock/issues/102","id":388576743,"user":{"login":"Granga","id":6062311,"avatar_url":"https://avatars3.githubusercontent.com/u/6062311?v=4","gravatar_id":"","url":"https://api.github.com/users/Granga","html_url":"https://github.com/Granga","followers_url":"https://api.github.com/users/Granga/followers","following_url":"https://api.github.com/users/Granga/following{/other_user}","gists_url":"https://api.github.com/users/Granga/gists{/gist_id}","starred_url":"https://api.github.com/users/Granga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Granga/subscriptions","organizations_url":"https://api.github.com/users/Granga/orgs","repos_url":"https://api.github.com/users/Granga/repos","events_url":"https://api.github.com/users/Granga/events{/privacy}","received_events_url":"https://api.github.com/users/Granga/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T19:15:29Z","updated_at":"2018-05-12T19:15:29Z","author_association":"NONE","body":"Yes, to solve this problem, I run these commands:\r\n\r\n```\r\ncd nginx/scripts\r\nsed -i 's/\\r$//' build-nginx.sh\r\nsed -i 's/\\r$//' run-openssl.sh\r\n```\r\n\r\nThank you.\r\n"}}
{"actor":{"display_login":"Granga"}}