{"action":"closed","issue":{"url":"https://api.github.com/repos/pulibrary/pul-the-hard-way/issues/34","repository_url":"https://api.github.com/repos/pulibrary/pul-the-hard-way","labels_url":"https://api.github.com/repos/pulibrary/pul-the-hard-way/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/pulibrary/pul-the-hard-way/issues/34/comments","events_url":"https://api.github.com/repos/pulibrary/pul-the-hard-way/issues/34/events","html_url":"https://github.com/pulibrary/pul-the-hard-way/issues/34","id":365990494,"node_id":"MDU6SXNzdWUzNjU5OTA0OTQ=","number":34,"title":"Document deployment of solr configs in solr cloud","user":{"login":"tampakis","id":4650153,"node_id":"MDQ6VXNlcjQ2NTAxNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/4650153?v=4","gravatar_id":"","url":"https://api.github.com/users/tampakis","html_url":"https://github.com/tampakis","followers_url":"https://api.github.com/users/tampakis/followers","following_url":"https://api.github.com/users/tampakis/following{/other_user}","gists_url":"https://api.github.com/users/tampakis/gists{/gist_id}","starred_url":"https://api.github.com/users/tampakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tampakis/subscriptions","organizations_url":"https://api.github.com/users/tampakis/orgs","repos_url":"https://api.github.com/users/tampakis/repos","events_url":"https://api.github.com/users/tampakis/events{/privacy}","received_events_url":"https://api.github.com/users/tampakis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"hackmastera","id":845363,"node_id":"MDQ6VXNlcjg0NTM2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/845363?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmastera","html_url":"https://github.com/hackmastera","followers_url":"https://api.github.com/users/hackmastera/followers","following_url":"https://api.github.com/users/hackmastera/following{/other_user}","gists_url":"https://api.github.com/users/hackmastera/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmastera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmastera/subscriptions","organizations_url":"https://api.github.com/users/hackmastera/orgs","repos_url":"https://api.github.com/users/hackmastera/repos","events_url":"https://api.github.com/users/hackmastera/events{/privacy}","received_events_url":"https://api.github.com/users/hackmastera/received_events","type":"User","site_admin":false},"assignees":[{"login":"hackmastera","id":845363,"node_id":"MDQ6VXNlcjg0NTM2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/845363?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmastera","html_url":"https://github.com/hackmastera","followers_url":"https://api.github.com/users/hackmastera/followers","following_url":"https://api.github.com/users/hackmastera/following{/other_user}","gists_url":"https://api.github.com/users/hackmastera/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmastera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmastera/subscriptions","organizations_url":"https://api.github.com/users/hackmastera/orgs","repos_url":"https://api.github.com/users/hackmastera/repos","events_url":"https://api.github.com/users/hackmastera/events{/privacy}","received_events_url":"https://api.github.com/users/hackmastera/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-10-02T16:58:11Z","updated_at":"2018-10-25T15:42:50Z","closed_at":"2018-10-25T15:42:50Z","author_association":"MEMBER","body":"Update: closing this ticket should just be a matter of pointing to the pul_solr repository\r\n\r\n\r\n@eliotjordan these were the notes I kept for zipping and uploading the config sets for solr cloud. We should automate the process:\r\n```\r\nTo replace configsets:\r\nCreate zips of the configsets in programmatic fashion based on directory name within solr_configs\r\nUpload replacement version appended with tmp i.e.:\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @pulmap.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=pulmap-tmp”\r\nReplace all of the collections that use the old version with the tmp version i.e.:\r\nhttp://localhost:8983/solr/admin/collections?action=MODIFYCOLLECTION&collection=pulmap&collection.configName=pulmap-tmp\r\nDelete old configs:\r\nhttp://localhost:8983/solr/admin/configs?action=DELETE&name=pulmap\r\nUpload new configs without tmp\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @pulmap.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=pulmap”\r\nReplace all collections with original configset name:\r\nhttp://localhost:8983/solr/admin/collections?action=MODIFYCOLLECTION&collection=pulmap&collection.configName=pulmap\r\nDelete all tmp config sets:\r\nhttp://localhost:8983/solr/admin/configs?action=DELETE&name=pulmap-tmp\r\n\r\n\r\n\r\n(cd /solr/pul_solr/current/solr_configs/orangelight/conf && zip -r - *) > orangelight.zip\r\n(cd /solr/pul_solr/current/solr_configs/pulmap/conf && zip -r - *) > pulmap.zip\r\n(cd /solr/pul_solr/current/solr_configs/figgy/conf && zip -r - *) > figgy.zip\r\n(cd /solr/pul_solr/current/solr_configs/lae-blacklight/conf && zip -r - *) > lae-blacklight.zip\r\n(cd /solr/pul_solr/current/solr_configs/dpul-blacklight/conf && zip -r - *) > dpul-blacklight.zip\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @orangelight.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=orangelight\"\r\n\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @pulmap.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=pulmap\"\r\n\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @figgy.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=figgy\"\r\n\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @lae-blacklight.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=lae-blacklight\"\r\n\r\ncurl -X POST --header \"Content-Type:application/octet-stream\" --data-binary @dpul-blacklight.zip \"http://localhost:8983/solr/admin/configs?action=UPLOAD&name=dpul-blacklight\"\r\n```"}}
{"actor":{"display_login":"escowles"}}