{"action":"created","issue":{"url":"https://api.github.com/repos/Financial-Times/ft-origami/issues/451","repository_url":"https://api.github.com/repos/Financial-Times/ft-origami","labels_url":"https://api.github.com/repos/Financial-Times/ft-origami/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/Financial-Times/ft-origami/issues/451/comments","events_url":"https://api.github.com/repos/Financial-Times/ft-origami/issues/451/events","html_url":"https://github.com/Financial-Times/ft-origami/issues/451","id":134605383,"number":451,"title":"Have npmjs registry fallbacks to defend against outages","user":{"login":"JakeChampion","id":1569131,"avatar_url":"https://avatars.githubusercontent.com/u/1569131?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeChampion","html_url":"https://github.com/JakeChampion","followers_url":"https://api.github.com/users/JakeChampion/followers","following_url":"https://api.github.com/users/JakeChampion/following{/other_user}","gists_url":"https://api.github.com/users/JakeChampion/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeChampion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeChampion/subscriptions","organizations_url":"https://api.github.com/users/JakeChampion/orgs","repos_url":"https://api.github.com/users/JakeChampion/repos","events_url":"https://api.github.com/users/JakeChampion/events{/privacy}","received_events_url":"https://api.github.com/users/JakeChampion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Financial-Times/ft-origami/labels/type:%20enhancement","name":"type: enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T15:10:19Z","updated_at":"2016-05-26T11:07:54Z","closed_at":"2016-05-26T11:07:54Z","body":"Currently if the main npmjs.org registry is down, the Origami Build Service will not work for modules which are not in it's cache. There are public mirrors of the main registry which can be used, so long as the build service has the functionality to switch it's registry.\r\n\r\nA quick solution to this would be to have the npmjs registry endpoint as an environment variable, meaning if a registry goes down we would edit the environment variable to point to a different registry and redeploy the build service.\r\n\r\nA further down the road solution would be to make the build service become aware of outages on a registry and to automatically switch to a healthy registry.\r\n\r\nHere are the public registries that I know of:\r\nhttp://registry.cnpmjs.org/\r\nhttp://registry.nodejitsu.com/\r\nhttp://registry.npmjs.org/"},"comment":{"url":"https://api.github.com/repos/Financial-Times/ft-origami/issues/comments/221842389","html_url":"https://github.com/Financial-Times/ft-origami/issues/451#issuecomment-221842389","issue_url":"https://api.github.com/repos/Financial-Times/ft-origami/issues/451","id":221842389,"user":{"login":"onishiweb","id":1240073,"avatar_url":"https://avatars.githubusercontent.com/u/1240073?v=3","gravatar_id":"","url":"https://api.github.com/users/onishiweb","html_url":"https://github.com/onishiweb","followers_url":"https://api.github.com/users/onishiweb/followers","following_url":"https://api.github.com/users/onishiweb/following{/other_user}","gists_url":"https://api.github.com/users/onishiweb/gists{/gist_id}","starred_url":"https://api.github.com/users/onishiweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onishiweb/subscriptions","organizations_url":"https://api.github.com/users/onishiweb/orgs","repos_url":"https://api.github.com/users/onishiweb/repos","events_url":"https://api.github.com/users/onishiweb/events{/privacy}","received_events_url":"https://api.github.com/users/onishiweb/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T11:07:54Z","updated_at":"2016-05-26T11:07:54Z","body":"I think we can close this issue as would only be relevant if #481 were to be applied, which potentially won't be in the near future."}}
{"actor":{"display_login":"onishiweb"}}