{"action":"created","issue":{"url":"https://api.github.com/repos/mediathekview/MServer/issues/62","repository_url":"https://api.github.com/repos/mediathekview/MServer","labels_url":"https://api.github.com/repos/mediathekview/MServer/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/mediathekview/MServer/issues/62/comments","events_url":"https://api.github.com/repos/mediathekview/MServer/issues/62/events","html_url":"https://github.com/mediathekview/MServer/issues/62","id":204514281,"number":62,"title":"Anbindung von AWS für Upload","user":{"login":"Nicklas2751","id":4107593,"avatar_url":"https://avatars.githubusercontent.com/u/4107593?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicklas2751","html_url":"https://github.com/Nicklas2751","followers_url":"https://api.github.com/users/Nicklas2751/followers","following_url":"https://api.github.com/users/Nicklas2751/following{/other_user}","gists_url":"https://api.github.com/users/Nicklas2751/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicklas2751/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicklas2751/subscriptions","organizations_url":"https://api.github.com/users/Nicklas2751/orgs","repos_url":"https://api.github.com/users/Nicklas2751/repos","events_url":"https://api.github.com/users/Nicklas2751/events{/privacy}","received_events_url":"https://api.github.com/users/Nicklas2751/received_events","type":"User","site_admin":false},"labels":[{"id":467132315,"url":"https://api.github.com/repos/mediathekview/MServer/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"Nicklas2751","id":4107593,"avatar_url":"https://avatars.githubusercontent.com/u/4107593?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicklas2751","html_url":"https://github.com/Nicklas2751","followers_url":"https://api.github.com/users/Nicklas2751/followers","following_url":"https://api.github.com/users/Nicklas2751/following{/other_user}","gists_url":"https://api.github.com/users/Nicklas2751/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicklas2751/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicklas2751/subscriptions","organizations_url":"https://api.github.com/users/Nicklas2751/orgs","repos_url":"https://api.github.com/users/Nicklas2751/repos","events_url":"https://api.github.com/users/Nicklas2751/events{/privacy}","received_events_url":"https://api.github.com/users/Nicklas2751/received_events","type":"User","site_admin":false},"assignees":[{"login":"Nicklas2751","id":4107593,"avatar_url":"https://avatars.githubusercontent.com/u/4107593?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicklas2751","html_url":"https://github.com/Nicklas2751","followers_url":"https://api.github.com/users/Nicklas2751/followers","following_url":"https://api.github.com/users/Nicklas2751/following{/other_user}","gists_url":"https://api.github.com/users/Nicklas2751/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicklas2751/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicklas2751/subscriptions","organizations_url":"https://api.github.com/users/Nicklas2751/orgs","repos_url":"https://api.github.com/users/Nicklas2751/repos","events_url":"https://api.github.com/users/Nicklas2751/events{/privacy}","received_events_url":"https://api.github.com/users/Nicklas2751/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-02-01T07:26:37Z","updated_at":"2017-02-01T07:48:16Z","closed_at":null,"body":"Die sog. Cloud ist immer mehr im kommen und das zu recht. Bei Anbietern wie Amazon mit der AWS ist sehr einfach geworden sich schnell genau die Leistung zu holen die man gerade benötigt und nur für das zu bezhalen was man tatsächlich verwendet. Amazon ist mit der AWS aktueller Markführerer, eine Recheninstanz der AWS (EC2) kann zwar über Umwege via s3fs und co direkt Dateisystem mäßig auf eine Speicherinstanz (S3) zugreifen so, dass man eine Filmliste in den S3 Speicher-Bucket ablegen kann aber das ist nicht gerade die saubere Art und weise. Amazon bietet für die AWS einfache Schnitstellen und SDKs für die verschiedensten Programmiersprachen an darunter auch Java.\r\n\r\nLange rede kurzer Sinn um zu ermöglichen, dass die vom MServer erstellten Filmlisten einfach und sauber in einem S3 Bucket abgelegt werden können wäre es gut, eine neue Upload möglichkeit hinzuzufügen welche auf die AWS S3 API zugreift und diese zum Upload nutzt.\r\n\r\nZur Umsetzung sollte dies hilfreich sein:\r\n- http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html\r\n- http://docs.aws.amazon.com/de_de/AmazonS3/latest/dev/UploadObjSingleOpJava.html\r\n- http://docs.aws.amazon.com/de_de/AmazonS3/latest/dev/HLTrackProgressMPUJava.html\r\n\r\nEine Konfiguration könnte dann so aussehen:\r\n```\r\n<upload>\r\n    <upload-art>aws</upload-art>\r\n    <upload-liste>diff,akt</upload-liste>\r\n    <upload-dest-dir>filmlisten</upload-dest-dir>\r\n    <upload-aws-bucket-name>mserver</upload-aws-bucket-name>\r\n    <upload-aws-access-key-id>ABC123</upload-aws-access-key-id>\r\n    <upload-aws-secret-access-key>123AbC</upload-aws-secret-access-key>\r\n</upload>\r\n```"},"comment":{"url":"https://api.github.com/repos/mediathekview/MServer/issues/comments/276593330","html_url":"https://github.com/mediathekview/MServer/issues/62#issuecomment-276593330","issue_url":"https://api.github.com/repos/mediathekview/MServer/issues/62","id":276593330,"user":{"login":"lookshe","id":2007776,"avatar_url":"https://avatars.githubusercontent.com/u/2007776?v=3","gravatar_id":"","url":"https://api.github.com/users/lookshe","html_url":"https://github.com/lookshe","followers_url":"https://api.github.com/users/lookshe/followers","following_url":"https://api.github.com/users/lookshe/following{/other_user}","gists_url":"https://api.github.com/users/lookshe/gists{/gist_id}","starred_url":"https://api.github.com/users/lookshe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookshe/subscriptions","organizations_url":"https://api.github.com/users/lookshe/orgs","repos_url":"https://api.github.com/users/lookshe/repos","events_url":"https://api.github.com/users/lookshe/events{/privacy}","received_events_url":"https://api.github.com/users/lookshe/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T07:48:16Z","updated_at":"2017-02-01T07:48:16Z","body":"Was spricht dagegen das S3 Bucket einfach zu mounten und dann per <upload-art>copy</upload-art> zu nutzen? Sonst bräuchte man für jede \"Cloud\" eine spezielle Implementierung.\r\nOder wenn man die Upload-Möglichkeiten erweitern will, wäre es da nicht sinnvoller eine Möglichkeit einzubauen, dass Systembefehle für den Upload genutzt werden können, damit auch anderes generisch angebunden werden kann? Für AWS könnte man dann bspw. https://aws.amazon.com/de/getting-started/tutorials/backup-to-s3-cli/ nutzen."}}
{"actor":{"display_login":"lookshe"}}