{"id":657,"date":"2021-08-20T21:39:17","date_gmt":"2021-08-20T12:39:17","guid":{"rendered":"https:\/\/webclass.jp\/blog\/?p=657"},"modified":"2021-08-20T21:41:13","modified_gmt":"2021-08-20T12:41:13","slug":"docker-%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6php-%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%b8%e3%81%ae%e5%af%be%e5%bf%9c%e3%83%81%e3%82%a7%e3%83%83","status":"publish","type":"post","link":"https:\/\/webclass.jp\/blog\/2021\/08\/20\/docker-%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6php-%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%b8%e3%81%ae%e5%af%be%e5%bf%9c%e3%83%81%e3%82%a7%e3%83%83\/","title":{"rendered":"docker \u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3063\u3066PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3078\u306e\u5bfe\u5fdc\u30c1\u30a7\u30c3\u30af"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u798f\u5ca1\u3067\u3059<\/p>\n<p>\u3054\u7121\u6c99\u6c70\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u6700\u8fd1\u306b\u8abf\u6574\u3057\u3066\u3044\u305f\u958b\u767a\u74b0\u5883\u306e\u8a71\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3044\u308d\u3093\u306aPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u52d5\u304f\u304b\u691c\u67fb\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h2>PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5bfe\u5fdc\u72b6\u6cc1<\/h2>\n<p>WebClass \u306f Debian \u3068 RHEL \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u4e21\u8005\u306b\u3064\u3044\u3066 OS \u306e\u5074\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u671f\u9593\u306e\u9593\u3001WebClass \u3082\u52d5\u304f\u3088\u3046\u306b\u7dad\u6301\u3059\u308b\u3068\u3044\u3046\u30dd\u30ea\u30b7\u30fc\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b5\u30dd\u30fc\u30c8\u3059\u308b PHP \u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u3053\u308c\u3089OS\u304c\u73fe\u5728\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u7bc4\u56f2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u7279\u306b RHEL \u306f\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u5358\u4f4d\u306e\u30b5\u30dd\u30fc\u30c8\u671f\u9593\u304c\u9577\u304f\u3066\u3057\u3093\u3069\u3044\u3067\u3059\u3002RHEL 6 \u306e PHP 5.3 \u306f\u3088\u3046\u3084\u304f\u53bb\u5e74\u306b\u30b5\u30dd\u30fc\u30c8\u30fb\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\uff12\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f( <a href=\"https:\/\/redhat.sios.jp\/red-hat-enterprise-linux\/rhel6-els\/\">REF:Red Hat Enterprise Linux 6 \uff08RHEL6\uff09 \u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u3068\u79fb\u884c\u306b\u3064\u3044\u3066<\/a>)\u3002\u3053\u308c\u3067 5.3 \u304c\u6d88\u3048\u308b\u3068\u601d\u3044\u304d\u3084\u3001RHEL 7 \u306f PHP 5.4 !! \u3002PHP 5.4 \u306e\u6700\u521d\u306e\u30ea\u30ea\u30fc\u30b9\u306f 2012\u5e74 3\u6708\u3067\u3057\u3066\u3001\u3053\u308c\u3082\u3082\u304610\u5e74\u306b\u306a\u308d\u3046\u3068\u3057\u3066\u3044\u307e\u3059(<a href=\"https:\/\/www.php.net\/ChangeLog-5.php#5.4.0\">REF: Version 5.4 changelog<\/a>)\u3002\u306a\u304a\u3001Debian 11 \u304c\u5148\u9031\u306b\u30ea\u30ea\u30fc\u30b9(<a href=\"https:\/\/www.debian.org\/News\/2021\/20210814\">REF<\/a>)\u3055\u308c\u305f\u305f\u3081\u3001\u3053\u308c\u304b\u3089 PHP 7.4 \u306e\u5bfe\u5fdc\u7b49\u3092\u9032\u3081\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3069\u3046\u3084\u3063\u3066 PHP 5.3 - PHP 7.4 \u3067\u52d5\u304f\u3088\u3046\u306b\u78ba\u8a8d\u3059\u308b\u306e\u304b\uff1f \u3053\u308c\u304c\u554f\u984c\u3067\u3059\u3002<\/p>\n<p>\u6614\u306f\u3001\u305d\u308c\u3053\u305d Debian 8 \u3068 Debian 9 \u3068 CentOS6 \u3068\u3001\u3068\u3044\u3046\u611f\u3058\u3067\u8907\u6570\u306e\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3067\u3059\u304c\u3001\u6a5f\u80fd\u3082\u5897\u3048\u3066\u304d\u3066\u3044\u308b\u4eca\u306e WebClass \u30921\u30641\u3064\u624b\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u304f\u3068\u3044\u3046\u306e\u306f\u7121\u7406\u3067\u3059\u3002\u30d9\u30c6\u30e9\u30f3\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u4f9d\u5b58\u304c\u51fa\u306b\u304f\u3044 PHP \u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u3092\u8eab\u306b\u3064\u3051\u3066\u3044\u307e\u3059\u304c\u3001\u65b0\u3057\u304f\u52a0\u308f\u3063\u305f\u4eba\u304c\u305d\u308c\u3092\u8eab\u306b\u3064\u3051\u308b\u3082\u306e\u3057\u3093\u3069\u3044\u3057\u3001\u30ec\u30d3\u30e5\u30fc\u3067\u3082\u30c1\u30a7\u30c3\u30af\u3057\u304d\u308c\u307e\u305b\u3093\u3002\u5b9f\u969b\u306e\u3068\u3053\u308d\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u4f9d\u5b58\u306e\u554f\u984c\u3092\u30dd\u30ed\u30dd\u30ed\u3068\u51fa\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u691c\u67fb\u3068\u958b\u767a\u8005\u3078\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306e\u6a5f\u68b0\u5316\u3092\u9032\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>PHP Unit \u306b\u3088\u308b\u81ea\u52d5\u30c6\u30b9\u30c8<\/h2>\n<p>WebClass \u3067\u306f\u30a2\u30b8\u30e3\u30a4\u30eb\u306a\u958b\u767a\u30b9\u30bf\u30a4\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u958b\u767a\u4f5c\u696d\u306e\u6d41\u308c\u3068\u3057\u3066\u306f\u3001\u793e\u5185\u306e GitLab \u3092\u4f7f\u3063\u3066 Issue =&gt; Merge Request =&gt; Merge \u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u306e\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u306f GitLab \u306e\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30c6\u30b9\u30c8\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3092\u6a5f\u68b0\u5316\u3057\u3001\u7d20\u65e9\u304f\u5b8c\u5168\u306a\u5909\u66f4\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u304f\u3053\u3068\u3092\u610f\u8b58\u3057\u3066\u3044\u307e\u3059\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u4e00\u90e8\u306f PHP Unit \u3092\u4f7f\u3063\u3066\u304a\u308a\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\uff08Pipelie)\u306f\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2021\/08\/Screen-Shot-2021-08-20-at-20.39.18-1024x741.png\" alt=\"GitLab \u306ePipeline\" \/><\/p>\n<p>PHP Unit \u306e\u5b9f\u884c\u74b0\u5883\u3068\u3057\u3066\u3001\u305d\u308c\u3053\u305d\u5c11\u3057\u524d\u307e\u3067\u306f Debian \u306e\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u5f8c\u306b\u30c6\u30b9\u30c8\u7528\u306e\u30b5\u30fc\u30d0\u306e\u7dad\u6301\u306a\u3069\u306e\u554f\u984c\u3067 CI \u3067\u306e\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u904b\u7528\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u305d\u3046\u3059\u308b\u3068\u3084\u3063\u3071\u308a\u958b\u767a\u8005\u304c\u81ea\u5206\u3067\u30c6\u30b9\u30c8\u3092\u3059\u308b\u3068\u3044\u3046\u306e\u306f\u3001\u3069\u3046\u3057\u3066\u3082\u304a\u308d\u305d\u304b\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u3001CI-Runner \u304c\u4f7f\u3046 Php Unit \u5b9f\u884c\u7528\u306e docker \u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u308a\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5f8c\u624b\u306b\u56de\u3063\u305f\u30c6\u30b9\u30c8\u3092\u76f4\u3057\u3001\u4eca\u3067\u306f Merge Request \u3092\u767a\u884c\u3059\u308b\u305f\u3073\u306b\u81ea\u52d5\u7684\u306b Php Unit \u306e\u7d50\u679c\u304c\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2021\/08\/Screen-Shot-2021-08-20-at-20.30.33-1024x693.png\" alt=\"GitLab \u306e MergeRequest \u3067 Pipeline \u306e\u7d50\u679c\u90e8\u5206\" \/><\/p>\n<p>PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u306ePHP\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u4e26\u884c\u3057\u3066\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u306f PHP5.6 \u3068 PHP 7.3 \u306e\u74b0\u5883\u3067\u81ea\u52d5\u30c6\u30b9\u30c8\u304c\u8d70\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001Php Unit \u3055\u3048\u3042\u308c\u3070\u3044\u3044\u304b\u3068\u8a00\u3046\u3068\u305d\u3046\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u81ea\u52d5\u30c6\u30b9\u30c8\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3053\u308d\u306f\u30c6\u30b9\u30c8\u3055\u308c\u306a\u3044\u306e\u304c\u4f55\u3088\u308a\u554f\u984c\u3067\u3059\u3002WebClass \u306f2000\u5e74\u304b\u3089\u958b\u767a\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u3001\u4eca\u307e\u3067\u5b8c\u5168\u306a\u4f5c\u308a\u76f4\u3057\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3067\u3059\u306e\u3067\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u306a\u3044\u72b6\u614b\u304b\u3089\u4eca\u307e\u3067\u62e1\u5f35\u306e\u508d\u3089\u3067\u5fc5\u6b7b\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3092\u9032\u3081\u3066\u69cb\u9020\u5316\u3057\u3001\u5f8c\u304b\u3089\u81ea\u52d5\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u3092\u52a0\u3048\u3066\u3001\u305d\u3053\u304b\u3089\u30c6\u30b9\u30c8\u53ef\u80fd\u306a\u5b9f\u88c5\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u30c6\u30b9\u30c8\u5b9f\u88c5\u3057\u3066\u3001\u3068\u8d70\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u307e\u3060\u30c6\u30b9\u30bf\u30d6\u30eb\u3067\u306a\u3044\u30b3\u30fc\u30c9\u3082\u3001\u81ea\u52d5\u30c6\u30b9\u30c8\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u30b3\u30fc\u30c9\u3082\u6b8b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>CI \u306b PHP Linter \u8ffd\u52a0<\/h2>\n<p>Php Unit \u306f\u81ea\u52d5\u30c6\u30b9\u30c8\u304c\u5b9f\u88c5\u3055\u308c\u306a\u3044\u3068\u30b3\u30fc\u30c9\u3092\u691c\u67fb\u3067\u304d\u307e\u305b\u3093\u304c\u3001PHP \u306e\u30b3\u30fc\u30c9\u306e\u6587\u6cd5\u30ec\u30d9\u30eb\u3067\u3042\u308c\u3070\u3059\u3050\u306b\u30b9\u30ad\u30e3\u30f3\u3067\u304d\u307e\u3059\u3002\u6587\u6cd5\u30ec\u30d9\u30eb\u306e\u554f\u984c\u3068\u3057\u3066\u306f\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/\/ PHP 5.4 \u304b\u3089\u4f7f\u3048\u308b\u3002\u305d\u308c\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u6587\u6cd5\u30a8\u30e9\u30fc\n$array = [ 1, 2, 3];\n\/\/ \u3053\u306e\u66f8\u304d\u65b9\u306f\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u4f7f\u3048\u308b\n$array = array( 1, 2, 3 );<\/code><\/pre>\n<p>\u3053\u306e\u7a0b\u5ea6\u3068\u601d\u3044\u304d\u3084\u3001\u6587\u6cd5\u30a8\u30e9\u30fc\u306f PHP \u3092\u30ed\u30fc\u30c9\u3057\u305f\u6642\u70b9\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u843d\u3061\u308b\u306e\u3067\u3001\u521d\u671f\u306e require() \u306a\u3069\u3067\uff11\u3064\u3067\u3082\u6df7\u5165\u3059\u308b\u3068\u6a5f\u80fd\u304c\u5168\u304f\u52d5\u304b\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u3001\u691c\u67fb\u3059\u308b\u4fa1\u5024\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>PhpLinter \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u3044\u304f\u3064\u304b\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4e2d\u3092\u9664\u304f\u3068\u57fa\u672c\u306f PHP \u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b Lint \u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067  <code>php -l test.php <\/code> \u3068\u5b9f\u884c\u3057\u3066\u691c\u67fb\u3067\u304d\u307e\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u306f\u3001 PhpUnit \u3092\u52d5\u304b\u305b\u308b\u30b3\u30f3\u30c6\u30ca\u3067\u3042\u308c\u3070\u3001composer \u3068\u304b phing \u3092\u4f7f\u3046\u307e\u3067\u3082\u306a\u304f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c1\u30a7\u30c3\u30af\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>find $SRCDIR  \\( -type f -name &quot;*.php&quot; -o  -name &quot;*.inc&quot; \\)  -exec php -l {} \\; | grep -v &#039;No syntax errors detected&#039; <\/code><\/pre>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u6e96\u5099\u3057\u307e\u3057\u305f\uff01<br \/>\n<img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2021\/08\/Screen-Shot-2021-08-20-at-20.56.08-1024x601.png\" alt=\"\" \/><\/p>\n<p>PHP 7.4 \u3067\u65e9\u901f PhpUnit \u304c\u843d\u3061\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001UnitTest \u306eJob \u306b 7.0 \u306a\u3069\u304c\u3044\u306a\u3044\u306e\u306f\u3001\u307e\u3060\u8abf\u6574\u4e2d\u306e\u305f\u3081\u30c6\u30b9\u30c8Job \u3092\u5165\u308c\u305f\u308a\u5916\u3057\u305f\u308a\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u81ea\u52d5\u30c6\u30b9\u30c8\u306b\u5931\u6557\u3057\u3066\u3044\u308c\u3070\u3001Merge Request \u753b\u9762\u3067\u3082\u305d\u306e\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u3066\u3001\u30de\u30fc\u30b8\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2021\/08\/Screen-Shot-2021-08-20-at-20.56.44.png\" alt=\"PhpUnit \u5931\u6557\" \/><\/p>\n<h2>\u30c6\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/h2>\n<p>Lint \u3092\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001\u5b9f\u306f PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b\u7528\u610f\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/webclass.jp\/blog\/wp-content\/uploads\/2021\/08\/Screen-Shot-2021-08-20-at-21.04.03.png\" alt=\"\" \/><\/p>\n<p>\u3053\u308c\u306f\u3001\u5927\u5b66\u306b\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30ab\u30b9\u30bf\u30e0\u6a5f\u80fd\u306a\u3069\u304c\u305d\u306e\u5927\u5b66\u3067\u306e\u5b9f\u884c\u74b0\u5883\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u6709\u308b\u305f\u3081\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u3082\u3068\u3082\u3068\u7279\u5b9a\u306e\u74b0\u5883\u3067\u52d5\u304f\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u304c\u3069\u3046\u3057\u3066\u3082\u3042\u308b\u306e\u3068\u3001\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5bfe\u5fdc\u3055\u305b\u3066\u3044\u304f\u512a\u5148\u9806\u4f4d\u306f\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u5168\u3066\u3092\u4e00\u6c17\u306b\u3068\u306f\u884c\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u30bf\u30a4\u30e0\u30e9\u30b0\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306e\u82e6\u8089\u306e\u7b56\u3067\u3059\u3002<\/p>\n<p>composer \u306e overtrue\/phplint \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3082\u3042\u308a\u3001phplint \u30c4\u30fc\u30eb\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u5206\u3051\u308b\u3066\u3082\u6709\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u306f\u3084\u3081\u307e\u3057\u305f\u3002\u7406\u7531\u306f\uff12\u3064\u3002\uff11\u3064\u306f\u3001PHP \u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b\u5b9f\u884c\u74b0\u5883\u3092\u5206\u3051\u3066\u3044\u308b\u306e\u3067\u3001PHP \u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3068 composer \u306e\u4f7f\u3044\u305f\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3048\u306a\u304b\u3063\u305f\u308a\u3057\u3066\u8fd4\u3063\u3066\u3084\u3084\u3053\u3057\u3044\u3002\uff11\u3064\u306f\u3001php -l \u306f Deprecated \u306a\u3069\u306e\u60c5\u5831\u3082\u30d0\u30ea\u30d0\u30ea\u66f8\u304d\u51fa\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u5c06\u6765\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u5bfe\u5fdc\u3092\u898b\u636e\u3048\u3066 Error \u3067\u306f\u306a\u3044\u60c5\u5831\u3082\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u306a\u305f\u3081\u3002\u3053\u3046\u3044\u3046\u3068\u304d\u306b\u306f\u826f\u304f\u3082\u60aa\u304f\u3082 Bash \u306f\u5358\u7d14\u3067\u3001\u9664\u5916\u30ea\u30b9\u30c8\u306a\u3069\u958b\u767a\u8005\u304c\u305d\u306e\u307e\u307e\u8aad\u3093\u3060\u308a\u8abf\u6574\u3057\u3084\u3059\u3044\u3068\u601d\u3063\u305f\u304b\u3089\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u3068\u4eca\u5f8c<\/h2>\n<p>PHP \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306e\u30c6\u30b9\u30c8\u7528 Docker \u304c\u3072\u3068\u307e\u305a\u63c3\u3044\u307e\u3057\u305f\u3002CI \u3067\u3082\u52d5\u304b\u3057\u307e\u3059\u304c\u3001Docker \u306a\u306e\u3067\u958b\u767a\u8005\u306e\u624b\u5143\u3067\u3082\u3059\u3050\u306b\u52d5\u304b\u305b\u307e\u3059\u3002\u307e\u305a\u306f\u3053\u308c\u3067 PHP \u306e\u6587\u6cd5\u30ec\u30d9\u30eb\u306e\u554f\u984c\u306f\u672a\u7136\u306b\u9632\u3052\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u30c6\u30b9\u30c8\u306e\u5185\u5bb9\u3092\u5145\u5b9f\u3055\u305b\u308b\u305f\u3081\u306b PHPUnit \u306e\u30c6\u30b9\u30c8\u306f\u3069\u3093\u3069\u3093\u66f8\u304d\u8db3\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001Merge Request \u306e\u30ec\u30d3\u30e5\u30fc\u3067\u306f\u30c6\u30b9\u30c8\u53ef\u80fd\u306a\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3001\u30c6\u30b9\u30c8\u306e\u5185\u5bb9\u306f\u5341\u5206\u304b\u3001\u306a\u3069\u3082\u5f15\u304d\u7d9a\u304d\u7a81\u3063\u8fbc\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ec\u30d3\u30e5\u30fc\u306b\u304a\u3051\u308b\u8106\u5f31\u6027\u306e\u691c\u67fb\u3082\u306a\u304b\u306a\u304b\u96e3\u3057\u3044\u305f\u3081\u3001GitLab \u306e SAST \u6a5f\u80fd\u3042\u305f\u308a\u306b\u8208\u5473\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u3088\u304f\u898b\u308b\u3068 PHP\u306b\u3064\u3044\u3066\u306f PHP-CS \u306e\u62e1\u5f35\u30d1\u30bf\u30fc\u30f3\u306e\u3088\u3046\u3067\u3059\u304c\u3002<\/p>\n<p><a href=\"https:\/\/git.lan.datapacific.co.jp\/help\/user\/application_security\/sast\/index\">https:\/\/git.lan.datapacific.co.jp\/help\/user\/application_security\/sast\/index<\/a><\/p>\n<p>\u5c0f\u3055\u306a\u30c1\u30fc\u30e0\u3067\u30ec\u30ac\u30b7\u30fc\u30b3\u30fc\u30c9\u3082\u62b1\u3048\u3066\u3044\u307e\u3059\u304c\u3001\u3046\u307e\u304f\u3084\u308a\u304f\u308a\u3057\u3066\u826f\u304f\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u798f\u5ca1\u3067\u3059 \u3054\u7121\u6c99\u6c70\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u6700\u8fd1\u306b\u8abf\u6574\u3057\u3066\u3044\u305f\u958b\u767a\u74b0\u5883\u306e\u8a71\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3044\u308d\u3093\u306aPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u52d5\u304f\u304b\u691c\u67fb\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5bfe\u5fdc\u72b6\u6cc1 WebClass \u306f Debian \u3068  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59,61],"tags":[],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-docker","category-gitlab"],"_links":{"self":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":4,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":666,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions\/666"}],"wp:attachment":[{"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webclass.jp\/blog\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}