)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10526,"name":"Catherine Diep","email":"cdiep@us.ibm.com","username":"cdiep"},"change_message_id":"e460813f15d3c7d2de26357fbe48642b3aa27788","unresolved":false,"context_lines":[{"line_number":20,"context_line":"Basic usage example:"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"1) Checkout repository"},{"line_number":23,"context_line":"2) Run ./env_build"},{"line_number":24,"context_line":"3) Run ./env_up"},{"line_number":25,"context_line":"..."},{"line_number":26,"context_line":"You will get Bash console in the prepared dockerized environment."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa31d9ce_dca5aa47","line":23,"range":{"start_line":23,"start_character":3,"end_line":23,"end_character":18},"updated":"2017-02-17 21:22:05.000000000","message":"I have to run this with sudo (sudo ./env_build).\n\nThere is still error in creating group with sudo execution ( http://paste.openstack.org/show/599456/ )","commit_id":"a183116edf1902c0416cc3e96f509392fa3008b2"},{"author":{"_account_id":9377,"name":"Sergey Slipushenko","email":"slipushenko@gmail.com","username":"sslypushenko"},"change_message_id":"f65421051d4a03dea6dac7cd7c8a821c7ed49b07","unresolved":false,"context_lines":[{"line_number":20,"context_line":"Basic usage example:"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"1) Checkout repository"},{"line_number":23,"context_line":"2) Run ./env_build"},{"line_number":24,"context_line":"3) Run ./env_up"},{"line_number":25,"context_line":"..."},{"line_number":26,"context_line":"You will get Bash console in the prepared dockerized environment."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da36d5c6_f9261515","line":23,"range":{"start_line":23,"start_character":3,"end_line":23,"end_character":18},"in_reply_to":"fa31d9ce_dca5aa47","updated":"2017-02-20 20:44:27.000000000","message":"It\u0027s my mistake. I have docker no-sudo configured access and totally forgot about this. These scripts SHOULD not be executed with sudo. Execution with sudo leads to the error you described","commit_id":"a183116edf1902c0416cc3e96f509392fa3008b2"}],"docker/env_build.sh":[{"author":{"_account_id":17716,"name":"Luz Cazares","email":"luz.cazares@intel.com","username":"luzcazares"},"change_message_id":"a8dac4969973c4880033007d86a798ddfdc23036","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -x"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"if [ \"$EUID\" -eq 0 ]"},{"line_number":4,"context_line":"  then echo \"This script should not be runned with sudo!\""},{"line_number":5,"context_line":"  exit"}],"source_content_type":"text/x-sh","patch_set":5,"id":"1a1ced50_2a52c9dd","line":2,"updated":"2017-03-20 22:14:37.000000000","message":"Add docstring.\n\nScript will build docker image from Dockerfile.","commit_id":"9df95a2e47201660a82e71df6b5d8b64c7f5482c"},{"author":{"_account_id":964,"name":"Anne Gentle","email":"annegentle@justwriteclick.com","username":"annegentle"},"change_message_id":"06f05ebf1a130671615ff0ea88afc23cac06eb0d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -x"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"if [ \"$EUID\" -eq 0 ]"},{"line_number":4,"context_line":"  then echo \"This script should not be runned with sudo!\""},{"line_number":5,"context_line":"  exit"},{"line_number":6,"context_line":"fi"},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":5,"id":"da36d5c6_c632cef1","line":4,"updated":"2017-02-23 20:09:25.000000000","message":"So do these scripts only work if you have no sudo Docker configured?","commit_id":"9df95a2e47201660a82e71df6b5d8b64c7f5482c"},{"author":{"_account_id":17716,"name":"Luz Cazares","email":"luz.cazares@intel.com","username":"luzcazares"},"change_message_id":"a8dac4969973c4880033007d86a798ddfdc23036","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -x"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"if [ \"$EUID\" -eq 0 ]"},{"line_number":4,"context_line":"  then echo \"This script should not be runned with sudo!\""},{"line_number":5,"context_line":"  exit"},{"line_number":6,"context_line":"fi"},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":5,"id":"1a1ced50_4e9c82c0","line":4,"range":{"start_line":4,"start_character":39,"end_line":4,"end_character":45},"updated":"2017-03-20 22:14:37.000000000","message":"nit: sed \u0027s/runned/run/g\u0027","commit_id":"9df95a2e47201660a82e71df6b5d8b64c7f5482c"}],"docker/env_up.sh":[{"author":{"_account_id":17716,"name":"Luz Cazares","email":"luz.cazares@intel.com","username":"luzcazares"},"change_message_id":"a8dac4969973c4880033007d86a798ddfdc23036","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -x"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"if [ \"$EUID\" -eq 0 ]"},{"line_number":4,"context_line":"  then echo \"This script should not be runned with sudo!\""},{"line_number":5,"context_line":"  exit"},{"line_number":6,"context_line":"fi"},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":5,"id":"1a1ced50_aef7b6f3","line":4,"range":{"start_line":4,"start_character":39,"end_line":4,"end_character":45},"updated":"2017-03-20 22:14:37.000000000","message":"ditto","commit_id":"9df95a2e47201660a82e71df6b5d8b64c7f5482c"},{"author":{"_account_id":17716,"name":"Luz Cazares","email":"luz.cazares@intel.com","username":"luzcazares"},"change_message_id":"a8dac4969973c4880033007d86a798ddfdc23036","unresolved":false,"context_lines":[{"line_number":14,"context_line":"        sudo docker start -a -i $ENV_CONTAINER"},{"line_number":15,"context_line":"        exit 0"},{"line_number":16,"context_line":"    fi"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"    sudo docker run \\"},{"line_number":19,"context_line":"        --dns\u003d8.8.8.8 \\"},{"line_number":20,"context_line":"        -i -t \\"}],"source_content_type":"text/x-sh","patch_set":5,"id":"1a1ced50_f5f252d1","line":17,"updated":"2017-03-20 22:14:37.000000000","message":"Probably verify docker image exists before using it?","commit_id":"9df95a2e47201660a82e71df6b5d8b64c7f5482c"}],"setup_env":[{"author":{"_account_id":10526,"name":"Catherine Diep","email":"cdiep@us.ibm.com","username":"cdiep"},"change_message_id":"e460813f15d3c7d2de26357fbe48642b3aa27788","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    echo \"  -h  Print this usage message\""},{"line_number":14,"context_line":"    echo \"  -c  Tempest test runner commit. You can specify SHA or branch here\""},{"line_number":15,"context_line":"    echo \"      If no commit or tag is specified, tempest will be install from commit\""},{"line_number":16,"context_line":"    echo \"  -q  Run quietly. If .tempest folder exists, refstack-client is considered as installed\""},{"line_number":17,"context_line":"    echo \"  -t  Tempest test runner tag. You can specify tag here\""},{"line_number":18,"context_line":"    echo \"      ${CHECKOUT_POINT}\""},{"line_number":19,"context_line":"    exit 1"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"fa31d9ce_3c440673","line":16,"range":{"start_line":16,"start_character":4,"end_line":16,"end_character":99},"updated":"2017-02-17 21:22:05.000000000","message":"Suggest to move this sentence right after the -h sentence because the \"If no commit ..\" sentence describes what happen if either -c or -t option is not specified.","commit_id":"a183116edf1902c0416cc3e96f509392fa3008b2"}]}
