)]}'
{"docker/base/Dockerfile.j2":[{"author":{"_account_id":13642,"name":"Vikram Hosakote","email":"vikram.ganesh@gmail.com","username":"vhosakot"},"change_message_id":"a8bbc3c034af362724123c98cbf624a1c2cd44a7","unresolved":false,"context_lines":[{"line_number":184,"context_line":"COPY set_configs.py /usr/local/bin/kolla_set_configs"},{"line_number":185,"context_line":"COPY start.sh /usr/local/bin/kolla_start"},{"line_number":186,"context_line":"COPY sudoers /etc/sudoers"},{"line_number":187,"context_line":"COPY curlrc /root/.curlrc"},{"line_number":188,"context_line":"RUN touch /usr/local/bin/kolla_extend_start \\"},{"line_number":189,"context_line":"    \u0026\u0026 chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \\"},{"line_number":190,"context_line":"    \u0026\u0026 chmod 440 /etc/sudoers \\"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"9a061dce_4a0d0de7","line":187,"range":{"start_line":187,"start_character":13,"end_line":187,"end_character":17},"updated":"2016-04-07 05:54:15.000000000","message":"Won\u0027t this cause permission issue ?  Won\u0027t curlrc work if it is copied to a location like  /usr/local/bin/  or  /etc/  which are used to copy other files (set_configs.py, start.sh, sudoers) in this Dockerfile (in lines 184, 185 and 186) ?\n\n\nAlso, will curlrc work when curl is used by non-root (rabbitmq for example) in a Dockerfile ?\n\n\nhttps://github.com/openstack/kolla/blob/master/docker/rabbitmq/Dockerfile.j2#L23","commit_id":"c72df69da20192697ce10a4264e1653b21d6f2e7"},{"author":{"_account_id":7888,"name":"Benedikt Trefzer","email":"benedikt.trefzer@cirrax.com","username":"trefzer"},"change_message_id":"3b2550ec81ec5524e594e654852049aa78b9b51f","unresolved":false,"context_lines":[{"line_number":184,"context_line":"COPY set_configs.py /usr/local/bin/kolla_set_configs"},{"line_number":185,"context_line":"COPY start.sh /usr/local/bin/kolla_start"},{"line_number":186,"context_line":"COPY sudoers /etc/sudoers"},{"line_number":187,"context_line":"COPY curlrc /root/.curlrc"},{"line_number":188,"context_line":"RUN touch /usr/local/bin/kolla_extend_start \\"},{"line_number":189,"context_line":"    \u0026\u0026 chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \\"},{"line_number":190,"context_line":"    \u0026\u0026 chmod 440 /etc/sudoers \\"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"9a061dce_9ee2c62d","line":187,"range":{"start_line":187,"start_character":13,"end_line":187,"end_character":17},"in_reply_to":"9a061dce_4a0d0de7","updated":"2016-04-07 06:17:38.000000000","message":".curlrc is the default location used when curl is invoked as root. So this curlrc is not used when invoked as non root. But all the containers are build as root as far as I see (also rabbitmq container). \nI do not see any permission issues.\nIf curlrc is copied to /etc (or /usr/local ...) then I would need to add a parameter --config to all curl invokation, which I think is not necessary.","commit_id":"c72df69da20192697ce10a4264e1653b21d6f2e7"},{"author":{"_account_id":13642,"name":"Vikram Hosakote","email":"vikram.ganesh@gmail.com","username":"vhosakot"},"change_message_id":"ab213c0234d1d67b5db6d780218b2ab7a7923922","unresolved":false,"context_lines":[{"line_number":184,"context_line":"COPY set_configs.py /usr/local/bin/kolla_set_configs"},{"line_number":185,"context_line":"COPY start.sh /usr/local/bin/kolla_start"},{"line_number":186,"context_line":"COPY sudoers /etc/sudoers"},{"line_number":187,"context_line":"COPY curlrc /root/.curlrc"},{"line_number":188,"context_line":"RUN touch /usr/local/bin/kolla_extend_start \\"},{"line_number":189,"context_line":"    \u0026\u0026 chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \\"},{"line_number":190,"context_line":"    \u0026\u0026 chmod 440 /etc/sudoers \\"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"9a061dce_633d64c3","line":187,"range":{"start_line":187,"start_character":13,"end_line":187,"end_character":17},"in_reply_to":"9a061dce_9ee2c62d","updated":"2016-04-07 22:07:14.000000000","message":"Thanks a lot for the detailed info Benedikt!","commit_id":"c72df69da20192697ce10a4264e1653b21d6f2e7"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"c22352cd144da138de5a972afa2c6edb1b8dbf95","unresolved":false,"context_lines":[{"line_number":207,"context_line":"COPY set_configs.py /usr/local/bin/kolla_set_configs"},{"line_number":208,"context_line":"COPY start.sh /usr/local/bin/kolla_start"},{"line_number":209,"context_line":"COPY sudoers /etc/sudoers"},{"line_number":210,"context_line":"COPY curlrc /root/.curlrc"},{"line_number":211,"context_line":"RUN touch /usr/local/bin/kolla_extend_start \\"},{"line_number":212,"context_line":"    \u0026\u0026 chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \\"},{"line_number":213,"context_line":"    \u0026\u0026 chmod 440 /etc/sudoers \\"}],"source_content_type":"text/x-jinja2","patch_set":3,"id":"1a122d0e_3111c9b0","line":210,"updated":"2016-04-21 19:32:21.000000000","message":"I am not hot on this.  do you intend to only use curlrc during container building?  We drop root in many of our containers, which mens this curlrc file will not be honored.","commit_id":"1fceaedb2186ce2ca7899b49383231a0e59d05bd"},{"author":{"_account_id":7888,"name":"Benedikt Trefzer","email":"benedikt.trefzer@cirrax.com","username":"trefzer"},"change_message_id":"716948528d4f9569fd2b2151b08863b1357a42c1","unresolved":false,"context_lines":[{"line_number":207,"context_line":"COPY set_configs.py /usr/local/bin/kolla_set_configs"},{"line_number":208,"context_line":"COPY start.sh /usr/local/bin/kolla_start"},{"line_number":209,"context_line":"COPY sudoers /etc/sudoers"},{"line_number":210,"context_line":"COPY curlrc /root/.curlrc"},{"line_number":211,"context_line":"RUN touch /usr/local/bin/kolla_extend_start \\"},{"line_number":212,"context_line":"    \u0026\u0026 chmod 755 /usr/local/bin/kolla_start /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_set_configs \\"},{"line_number":213,"context_line":"    \u0026\u0026 chmod 440 /etc/sudoers \\"}],"source_content_type":"text/x-jinja2","patch_set":3,"id":"dab17558_169430e0","line":210,"in_reply_to":"1a122d0e_3111c9b0","updated":"2016-05-14 08:01:17.000000000","message":"the curlrc file only manages cleaner output when building containers. so it\u0027s ok to remove when container is build. \nthe alternative is to add all the options (or a global config file) whenever curlrc is invoked during the build process. I think the way it is now it\u0027s much cleaner.","commit_id":"1fceaedb2186ce2ca7899b49383231a0e59d05bd"}],"docker/base/curlrc":[{"author":{"_account_id":13642,"name":"Vikram Hosakote","email":"vikram.ganesh@gmail.com","username":"vhosakot"},"change_message_id":"a8bbc3c034af362724123c98cbf624a1c2cd44a7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# curl default options"},{"line_number":2,"context_line":"--silent"},{"line_number":3,"context_line":"--show-error"},{"line_number":4,"context_line":"--write-out \"curl (%{url_effective}): response: %{http_code}, time: %{time_total}, size: %{size_download}\\n\""}],"source_content_type":"application/octet-stream","patch_set":1,"id":"9a061dce_aafe69ab","line":4,"range":{"start_line":4,"start_character":0,"end_line":4,"end_character":108},"updated":"2016-04-07 05:54:15.000000000","message":"Where do these variables url_effective, http_code, time_total and size_download come from ?","commit_id":"c72df69da20192697ce10a4264e1653b21d6f2e7"},{"author":{"_account_id":7888,"name":"Benedikt Trefzer","email":"benedikt.trefzer@cirrax.com","username":"trefzer"},"change_message_id":"d6d6c92aab76c5f66c707dd65ba46943ce7ce290","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# curl default options"},{"line_number":2,"context_line":"--silent"},{"line_number":3,"context_line":"--show-error"},{"line_number":4,"context_line":"--write-out \"curl (%{url_effective}): response: %{http_code}, time: %{time_total}, size: %{size_download}\\n\""}],"source_content_type":"application/octet-stream","patch_set":1,"id":"9a061dce_7e225253","line":4,"range":{"start_line":4,"start_character":0,"end_line":4,"end_character":108},"in_reply_to":"9a061dce_aafe69ab","updated":"2016-04-07 06:20:45.000000000","message":"from curl (see man curl, option --write-out)","commit_id":"c72df69da20192697ce10a4264e1653b21d6f2e7"}]}
