{"id":1877,"date":"2021-10-14T13:08:31","date_gmt":"2021-10-14T04:08:31","guid":{"rendered":"https:\/\/www.itchefblog.com\/?p=1877"},"modified":"2021-10-14T13:08:31","modified_gmt":"2021-10-14T04:08:31","slug":"jib-%eb%b9%8c%eb%93%9c-%ec%8b%9c-%ed%94%84%eb%a1%9c%ed%8d%bc%ed%8b%b0%eb%a1%9c-%eb%b6%84%ea%b8%b0%ec%b2%98%eb%a6%ac%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.itchefblog.com\/?p=1877","title":{"rendered":"jib \ube4c\ub4dc \uc2dc \ud504\ub85c\ud37c\ud2f0\ub85c \ubd84\uae30\ucc98\ub9ac\ud558\uae30"},"content":{"rendered":"\n<p>spring boot\uc758 \uacbd\uc6b0 \ubd80\ud2b8 \uc2dc\uc5d0 -Dspring.profile.active\ub85c \ud504\ub85c\ud30c\uc77c\uc744 \uc120\ud0dd\ud560 \uc218 \uc788\uc9c0\ub9cc jib\uc758 \uacbd\uc6b0 \ud574\ub2f9 \ud504\ub85c\ud30c\uc77c\uc744 \ubd88\ub7ec\ub2e4\uac00 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uae30\uc5d0 \uac80\uc0c9\ud558\ub2e4\uac00 \uc54c\uac8c \ub41c \uc0ac\uc2e4.<br>project.hasProperty(&#8216;propertyName&#8217;) \uc73c\ub85c \ucc98\ub9ac\uac00 \uac00\ub2a5\ud558\ub2e4.<\/p>\n\n\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\njib {\n    container {\n        jvmFlags = mutableListOf(&quot;-Dspring.profiles.active=dev&quot;)\n        if (project.hasProperty('production')) {\n            jvmFlags = mutableListOf(&quot;Dspring.profiles.active=production&quot;)\n        }\n    }\n}\n<\/pre>\n\n\n<p>\uc704\uc640 \uac19\uc774 \ubd84\uae30 \ucc98\ub9ac\ub97c \ud574\uc900 \ub4a4 gradle jib \uc640 \uac19\uc774 \uc2e4\ud589\ud558\uba74  jvmFlags\ub294 dev \ud504\ub85c\ud30c\uc77c\ub85c \ube4c\ub4dc\ub97c \ud558\uace0 gradle jib -Pproduction\uacfc \uac19\uc774 \uc2e4\ud589\ud558\uba74 production \ud504\ub85c\ud30c\uc77c\ub85c \ube4c\ub4dc\ub97c \ud558\uac8c \ub41c\ub2e4. \ub05d.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>spring boot\uc758 \uacbd\uc6b0 \ubd80\ud2b8 \uc2dc\uc5d0 -Dspring.profile.active\ub85c \ud504\ub85c\ud30c\uc77c\uc744 \uc120\ud0dd\ud560 \uc218 \uc788\uc9c0\ub9cc jib\uc758 \uacbd\uc6b0 \ud574\ub2f9 \ud504\ub85c\ud30c\uc77c\uc744 \ubd88\ub7ec\ub2e4\uac00 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uae30\uc5d0 \uac80\uc0c9\ud558\ub2e4\uac00 \uc54c\uac8c \ub41c \uc0ac\uc2e4.project.hasProperty(&#8216;propertyName&#8217;) \uc73c\ub85c \ucc98\ub9ac\uac00 \uac00\ub2a5\ud558\ub2e4. \uc704\uc640 \uac19\uc774 \ubd84\uae30 \ucc98\ub9ac\ub97c \ud574\uc900 \ub4a4 gradle jib \uc640 \uac19\uc774 \uc2e4\ud589\ud558\uba74 jvmFlags\ub294 dev \ud504\ub85c\ud30c\uc77c\ub85c \ube4c\ub4dc\ub97c \ud558\uace0 gradle jib -Pproduction\uacfc \uac19\uc774 \uc2e4\ud589\ud558\uba74 production \ud504\ub85c\ud30c\uc77c\ub85c \ube4c\ub4dc\ub97c \ud558\uac8c \ub41c\ub2e4. \ub05d.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[555,7],"tags":[588,589,590,591,592,593,594,595,596],"_links":{"self":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1877"}],"collection":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1877"}],"version-history":[{"count":1,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1877\/revisions"}],"predecessor-version":[{"id":1878,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1877\/revisions\/1878"}],"wp:attachment":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}