{"id":167,"date":"2020-11-03T22:16:12","date_gmt":"2020-11-03T13:16:12","guid":{"rendered":"http:\/\/localhost:8000\/?p=167"},"modified":"2021-01-23T12:30:42","modified_gmt":"2021-01-23T03:30:42","slug":"airflow-dockeroperator","status":"publish","type":"post","link":"http:\/\/localhost:8000\/2020\/11\/airflow-dockeroperator.html","title":{"rendered":"Airflow\u3067DockerOperator\u3092\u52d5\u304b\u3059"},"content":{"rendered":"

Airflow<\/a>\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f5c\u6210\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3001\u304a\u3088\u3073\u76e3\u8996\u3059\u308b\u305f\u3081\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002\u4ed5\u4e8b\u3067Airflow\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u306fAirflow\u3092\u30ed\u30fc\u30ab\u30ebPC\u4e0a\u3067\u52d5\u304b\u3057\u3066\u3001DockerOperator\u3067\u4efb\u610f\u306eDocker\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3057\u3064\u3064\u3001\u5fc5\u8981\u306a\u8981\u7d20\uff08DAG\u5b9f\u884c\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u6307\u5b9a\u3068\u304b\u74b0\u5883\u5909\u6570\u6e21\u3057\u306a\u3069\uff09\u3092\u8a66\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

Airflow\u306b\u3064\u3044\u3066<\/h2>\n

\u516c\u5f0f\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304b\u3089\u5f15\u3063\u5f35\u3063\u3066\u304d\u305f\u3060\u3051\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u539f\u5247\u30fb\u7279\u5fb4\u304c\u3042\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n

\u539f\u5247<\/h3>\n

\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb<\/strong>
\nAirflow\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u5099\u3048\u3066\u3044\u3066\u3001Message\u30ad\u30e5\u30fc\u3092\u4f7f\u7528\u3057\u3066\u4efb\u610f\u306e\u6570\u306e\u30ef\u30fc\u30ab\u30fc\u3092\u8abf\u6574\u3067\u304d\u3001\u7121\u9650\u306b\u62e1\u5f35\u3067\u304d\u308b<\/p>\n

\u52d5\u7684<\/strong>
\nAirflow\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306fPython\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3001\u52d5\u7684\u306b\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n

\u62e1\u5f35\u53ef\u80fd<\/strong>
\n\u72ec\u81ea\u306e\u6f14\u7b97\u5b50\u3092\u7c21\u5358\u306b\u5b9a\u7fa9\u3057\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u62e1\u5f35\u3057\u3066\u3001\u74b0\u5883\u306b\u9069\u3057\u305f\u62bd\u8c61\u5316\u30ec\u30d9\u30eb\u306b\u9069\u5408\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n

\u30a8\u30ec\u30ac\u30f3\u30c8<\/strong>
\nAirflow\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u7121\u99c4\u304c\u306a\u304f\u660e\u78ba\u3067\u3042\u308a\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u306fJinja\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30a2\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b<\/p>\n

\u7279\u5fb4<\/h3>\n

\u7d14\u7c8b\u306aPython<\/strong>
\n\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3084XML\u306e\u9ed2\u9b54\u8853\u306f\u5fc5\u8981\u306a\u3057\uff01\u6a19\u6e96\u306ePython\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306e\u65e5\u6642\u5f62\u5f0f\u3084\u30bf\u30b9\u30af\u3092\u52d5\u7684\u306b\u751f\u6210\u3059\u308b\u30eb\u30fc\u30d7\u306a\u3069\u3092\u5b9f\u88c5\u3057\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b8c\u5168\u306a\u67d4\u8edf\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n

\u4fbf\u5229\u306aUI<\/strong>
\n\u5805\u7262\u3067\u6700\u65b0\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4ecb\u3057\u3066\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u76e3\u8996\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3001\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u308b\u3002\u30bf\u30b9\u30af\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3068\u30ed\u30b0\u3092\u5e38\u306b\u5b8c\u5168\u306bWebUI\u304b\u3089\u628a\u63e1\u3067\u304d\u308b<\/p>\n

\u5805\u7262\u306a\u7d71\u5408<\/strong>
\nAirflow\u306f\u3001GCP\u3001AWS\u3001Azure\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u591a\u304f\u306e\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30b5\u30fc\u30d3\u30b9\u3067\u633f\u5165\u3057\u3066\u5b9f\u884c\u53ef\u80fd\u306a\u30aa\u30da\u30ec\u30fc\u30bf\u30fc\u3092\u5099\u3048\u3066\u3044\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001Airflow\u3092\u73fe\u5728\u306e\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u306b\u7c21\u5358\u306b\u9069\u7528\u3057\u3001\u6b21\u4e16\u4ee3\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306b\u62e1\u5f35\u3067\u304d\u308b<\/p>\n

\u4f7f\u3044\u3084\u3059\u3044<\/strong>
\nPython\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u3001\u8ab0\u3067\u3082\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u3002Apache Airflow\u306f\u3001\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u7bc4\u56f2\u3092\u5236\u9650\u3057\u306a\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001ML\u30e2\u30c7\u30eb\u306e\u69cb\u7bc9\u3001\u30c7\u30fc\u30bf\u306e\u8ee2\u9001\u3001\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u306e\u7ba1\u7406\u306a\u3069\u3092\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4e2d\u3067\u81ea\u7531\u306b\u5b9a\u7fa9\u30fb\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n

\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9<\/strong>
\n\u6539\u5584\u3057\u305f\u3044\u5834\u5408\u306fIssue\u3092\u3042\u3052\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3057\u3001Pull Request\u3092\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u4f5c\u696d\u306f\u5358\u7d14\u3067\u30cf\u30fc\u30c9\u30eb\u3082\u9577\u6642\u9593\u306e\u624b\u9806\u3082\u5fc5\u8981\u306a\u3057<\/p>\n

\u63a1\u7528\u7406\u7531<\/h2>\n

\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a8\u30f3\u30b8\u30f3\u306f\u3053\u308c\u307e\u3067 Jenkins<\/a> \u3092\u5229\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4f55\u3067\u3082\u3067\u304d\u308b\u53cd\u9762\u8a2d\u5b9a\u304c\u8907\u96d1\u3067\u53e4\u81ed\u3044\u5370\u8c61\u304c\u3042\u308a\u3001\u5225\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a8\u30f3\u30b8\u30f3\u306b\u4e57\u308a\u63db\u3048\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u8981\u4ef6\u3067\u4e57\u308a\u63db\u3048\u5148\u3092\u63a2\u3057\u59cb\u3081\u305f\u306e\u3067\u3059\u304c\u3001Airflow\u304c\u5168\u3066\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u305f\u306e\u3067\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n