)]}'
{"README.md":[{"author":{"_account_id":9373,"name":"Vlad Gusev","email":"vlad.esten@gmail.com","username":"s10"},"change_message_id":"97b2cebb867bfed4fd658a621c84eb27d8319640","unresolved":false,"context_lines":[{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Generate your secret file, and run the `docker build` command with proper options:"},{"line_number":164,"context_line":"``` bash"},{"line_number":165,"context_line":"$ jq -n --arg user \"${REGISTRY_USER}\" \\"},{"line_number":166,"context_line":"    --arg password \"${REGISTRY_PASSWORD}\" \\"},{"line_number":167,"context_line":"   \u0027{\"user\":user, \"password\":password}\u0027 | tee $(pwd)/privatereg.json"},{"line_number":168,"context_line":"       "}],"source_content_type":"text/x-gfm","patch_set":7,"id":"9fb8cfa7_075ced16","line":165,"updated":"2019-07-01 11:02:32.000000000","message":"This doesn\u0027t work:\n\nerror: user is not defined\n{\"user\":user, \"password\":password}\n        ^^^^\nerror: password is not defined\n{\"user\":user, \"password\":password}\n                         ^^^^^^^^\n2 compile errors","commit_id":"6cc62089b3efbc2d2174c57ae9a2add68b241b15"}],"scripts/fetch_wheels.py":[{"author":{"_account_id":9373,"name":"Vlad Gusev","email":"vlad.esten@gmail.com","username":"s10"},"change_message_id":"97b2cebb867bfed4fd658a621c84eb27d8319640","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"DOCKER_REGISTRY\u003d\u0027registry.hub.docker.com\u0027"},{"line_number":17,"context_line":"PRIVATEREG_SECRETS_FILEPATH\u003d\u0027/run/secrets/privatereg.json\u0027"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"def make_request(url, token\u003dNone):"},{"line_number":20,"context_line":"    req \u003d urllib2.Request(url\u003durl)"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9fb8cfa7_c7ed7525","line":18,"updated":"2019-07-01 11:02:32.000000000","message":"There are no mandatory pycodestyle checks for this script, but I\u0027d prefer to avoid E302 and E501 in the new code blocks.","commit_id":"6cc62089b3efbc2d2174c57ae9a2add68b241b15"},{"author":{"_account_id":9373,"name":"Vlad Gusev","email":"vlad.esten@gmail.com","username":"s10"},"change_message_id":"97b2cebb867bfed4fd658a621c84eb27d8319640","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        with open(PRIVATEREG_SECRETS_FILEPATH) as json_secret_file:"},{"line_number":26,"context_line":"            data \u003d json.load(json_secret_file)"},{"line_number":27,"context_line":"            if \u0027user\u0027 in data and \u0027password\u0027 in data:"},{"line_number":28,"context_line":"                b64auth \u003d base64.standard_b64encode(\"{user}:{password}\".format(data))"},{"line_number":29,"context_line":"                req.add_header(\"Authorization\", \"Basic %s\" % b64auth)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    return req"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fb8cfa7_a7908144","line":28,"updated":"2019-07-01 11:02:32.000000000","message":"I\u0027ve got KeyError: \u0027user\u0027 here","commit_id":"6cc62089b3efbc2d2174c57ae9a2add68b241b15"},{"author":{"_account_id":9373,"name":"Vlad Gusev","email":"vlad.esten@gmail.com","username":"s10"},"change_message_id":"97b2cebb867bfed4fd658a621c84eb27d8319640","unresolved":false,"context_lines":[{"line_number":35,"context_line":"      authserver \u003d \u0027auth.docker.io\u0027"},{"line_number":36,"context_line":"      service \u003d \u0027registry.docker.io\u0027"},{"line_number":37,"context_line":"    else:"},{"line_number":38,"context_line":"      authserver \u003d \"{}/v2\".format(registry)"},{"line_number":39,"context_line":"      service \u003d  registry.split(\u0027:\u0027)[0]"},{"line_number":40,"context_line":"    url \u003d \"{}://{}/token?service\u003d{}\u0026\" \\"},{"line_number":41,"context_line":"            \"scope\u003drepository:{}:pull\".format(protocol, authserver, service, repo)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9fb8cfa7_c7881572","line":38,"updated":"2019-07-01 11:02:32.000000000","message":"This auth logic will not work, for example, for Gitlab registry, because authserver could not be identical to the registry server and service is \u0027container_registry\u0027","commit_id":"6cc62089b3efbc2d2174c57ae9a2add68b241b15"}]}
