{"id":935,"date":"2021-03-05T21:12:40","date_gmt":"2021-03-05T12:12:40","guid":{"rendered":"http:\/\/www.opentone.co.jp\/ot-lab\/?p=935"},"modified":"2025-05-12T10:06:19","modified_gmt":"2025-05-12T01:06:19","slug":"openshift-java-web","status":"publish","type":"post","link":"https:\/\/www.opentone.co.jp\/ot-lab\/all\/web-system\/openshift-java-web","title":{"rendered":"OpenShift\u3067Java Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7c21\u5358\u516c\u958b"},"content":{"rendered":"\n<p>\u7686\u69d8\u3053\u3093\u306b\u3061\u306f\u3002t.i.\u3067\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fOpenShift\u3067\u7c21\u5358\u306bJava Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3(Tomcat\uff06MySQL\u4f7f\u7528)\u3092\u516c\u958b\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">0. \u306f\u3058\u3081\u306b<\/h1>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3092\u8aad\u3080\u306b\u3042\u305f\u3063\u3066\u3001\u5fc5\u8981\u306a\u7269\u3084\u77e5\u8b58\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5fc5\u8981\u306a\u7269<ol><li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li><li>git \u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883<\/li><\/ol><\/li><li>\u5fc5\u8981\u306a\u77e5\u8b58<ol><li>Tomcat\u3067\u52d5\u304f\u3001Java Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3(war\u30d5\u30a1\u30a4\u30eb)\u306e\u4f5c\u308a\u65b9<\/li><li>SSH\u516c\u958b\u9375\u306e\u4f5c\u308a\u65b9<\/li><li>git\u30b3\u30de\u30f3\u30c9(clone, add, commit, push)\u306e\u8d85\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/li><li>phpMyAdmin\u306e\u8d85\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9(CREATE TABLE, INSERT\u306e\u5b9f\u884c\u65b9\u6cd5)<\/li><\/ol><\/li><\/ul>\n\n\n\n<p>\u975e\u5e38\u306b\u6577\u5c45\u306f\u4f4e\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">1. OpenShift\u3068\u306f\uff1f<\/h1>\n\n\n\n<p><a href=\"https:\/\/www.openshift.com\/\">OpenShift<\/a>\u3092\u975e\u5e38\u306b\u7c21\u5358\u306b\u8a00\u3063\u3066\u3057\u307e\u3046\u3068\u3001RedHat\u793e\u304c\u63d0\u4f9b\u3059\u308b\u30af\u30e9\u30a6\u30c9(PaaS)\u3068\u305d\u306ePaaS\u69cb\u7bc9\u30c4\u30fc\u30eb\u306e\u7dcf\u79f0\u3067\u3059\u3002\u4eca\u56de\u306f\u7121\u6599\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30af\u30e9\u30a6\u30c9\u3067\u3042\u308b<a href=\"https:\/\/www.openshift.com\/products\/online\">OpenShift Online<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u3067\u3042\u308b<a href=\"https:\/\/www.openshift.com\/products\/enterprise\">OpenShift Enterprise<\/a>\u3084\u30c4\u30fc\u30eb\u306e<a href=\"https:\/\/www.openshift.com\/products\/origin\">OpenShift Origin<\/a>\u306b\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u30da\u30fc\u30b8\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u4ed6\u306ePaaS(\u4f8b\uff1aGAE)\u3068\u6bd4\u8f03\u3057\u305f\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u8a73\u7d30\u306f<a href=\"https:\/\/www.openshift.com\/developers\/technologies\">\u3053\u3061\u3089<\/a>\u3067\u78ba\u8a8d\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066MySQL, PostgreSQL, MongoDB\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b<\/li><li>Tomcat\u3084JBoss\u3092\u4f7f\u3048\u308b<\/li><li>Java\u4ee5\u5916\u306b\u3082Node.js\u3001Perl\u3001PHP\u3001Python\u3001Ruby\u3001Vert.x\u304c\u4f7f\u3048\u308b<\/li><\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">2. \u516c\u958b\u307e\u3067\u306e\u624b\u9806<\/h1>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3092\u8aad\u3080\u306e\u306b\u5fc5\u8981\u306a\u7269\u3084\u77e5\u8b58\u304c\u3042\u308c\u3070\u3059\u3050\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>OpenShift Online \u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210<ul><li><a href=\"https:\/\/www.openshift.com\/\">https:\/\/www.openshift.com\/<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001ONLINE\u306eSIGN UP FOR FREE\u304b\u3089\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u3078\u884c\u304d\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b<\/li><li>\u5c4a\u3044\u305f\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30b7\u30e7\u30f3\u30e1\u30fc\u30eb\u306b\u66f8\u304b\u308c\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/li><\/ul><\/li><li>OpenShift Online\u3078\u306eSSH\u516c\u958b\u9375\u767b\u9332<ul><li>SSH\u9375\u306e\u30da\u30a2\u3092\u4f5c\u6210\u3059\u308b<\/li><li>\u516c\u958b\u9375\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u3001OpenShift Online\u306e&#8221;public key&#8221;\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3059\u308b<\/li><\/ul><\/li><li>Application\u4f5c\u6210<ul><li>&#8220;Choose a type of application&#8221;\u304b\u3089&#8221;Tomcat 7 (JBoss EWS 2.0)&#8221;\u3092\u9078\u629e\u3057\u3066Application\u3092\u4f5c\u6210\u3059\u308b(\u5024\u306f\u5168\u3066\u30c7\u30d5\u30a9\u30eb\u30c8) \u203b\u753b\u9762\u306b&#8221;Source Code&#8221;\u3068\u3057\u3066ssh:\/\/\uff5e\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3067git URL\u3068\u3057\u3066\u30e1\u30e2\u3057\u3066\u304a\u304f<\/li><li>\u4f5c\u6210\u3057\u305fApplication\u3092\u9078\u629e\u3057\u3001&#8221;Add MySQL 5.5&#8243;\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066MySQL 5.5\u3092\u8ffd\u52a0\u3059\u308b<\/li><li>\u4f5c\u6210\u3057\u305fApplication\u3092\u9078\u629e\u3057\u3001&#8221;Add phpMyAdmin 4.0&#8243;\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066phpMyAdmin 4.0\u3092\u8ffd\u52a0\u3059\u308b \u203bRoot User, Root Password, URL\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304f<\/li><\/ul><\/li><li>DB\u306e\u6e96\u5099<ul><li>\u30e1\u30e2\u3057\u305fphpMyAdmin URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b(phpMyAdmin\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b) \u203b\u8a8d\u8a3c\u306eID\/PASS\u306f\u3001\u30e1\u30e2\u3057\u305fRoot User, Root Password<\/li><li>Java Web\u30a2\u30d7\u30ea\u306eDB\u63a5\u7d9a\u5148\u3092\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u305f\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306b\u5909\u66f4\u3059\u308b<\/li><li>phpMyAdmin\u3092\u4f7f\u7528\u3057\u3066\u3001CREATE TABLE, INSERT\u3092\u5b9f\u884c\u3059\u308b<\/li><\/ul><\/li><li>war\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30d7\u30ed\u30a4<ul><li>war\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/li><li>\u30e1\u30e2\u3057\u3066\u3042\u308bgit URL\u3092git clone\u3059\u308b<\/li><li>src\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068pom.xml\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<\/li><li>war\u30d5\u30a1\u30a4\u30eb\u3092webapps\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308b<\/li><li>git add, git commit, git push\u3092\u3059\u308b<\/li><\/ul><\/li><\/ol>\n\n\n\n<h1 class=\"wp-block-heading\">3. \u516c\u958b\u3055\u308c\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h1>\n\n\n\n<p>git push\u3057\u305f\u3060\u3051\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f&#8221;Application&#8221;\u306eURL\u306bwar\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4ed8\u3051\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044(&#8220;Application&#8221;\u306eURL\u304c&#8221;http:\/\/jbossews-foo.rhcloud.com\/&#8221;\u3067bar.war\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u306e\u306a\u3089\u3070\u3001&#8221;http:\/\/jbossews-foo.rhcloud.com\/bar\/&#8221;)<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">4. \u307e\u3068\u3081<\/h1>\n\n\n\n<p>\u3053\u306e\u624b\u9806\u3067<a href=\"http:\/\/jbossews-tifsol.rhcloud.com\/loginsample\/\">\u30ed\u30b0\u30a4\u30f3\u30b5\u30f3\u30d7\u30eb<\/a>\u3092\u516c\u958b\u3057\u3066\u307f\u307e\u3057\u305f(\u30d1\u30b9\u30ef\u30fc\u30c9\uff1apass)\u3002<br>\u524d\u63d0\u77e5\u8b58\u304c\u3042\u308c\u3070\u7c21\u5358\u306bJava Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u516c\u958b\u3067\u304d\u308b\u3053\u3068\u304c\u304a\u308f\u304b\u308a\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u6b21\u56de\u3092\u304a\u697d\u3057\u307f\u306b\u3002&nbsp;<\/p>\n<div class=\"opent-_2\" style=\"margin-top: 10px;margin-right: 10px;margin-bottom: 10px;margin-left: 10px;\" id=\"opent-1169028079\"><a href=\"https:\/\/www.opentone.co.jp\/backlog\/\" aria-label=\"twitter_backlogskt_new\"><img src=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new.jpg\" alt=\"\"  srcset=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new.jpg 1024w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new-300x157.jpg 300w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new-768x401.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"384\" height=\"200\"   \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u7686\u69d8\u3053\u3093\u306b\u3061\u306f\u3002t.i.\u3067\u3054\u3056\u3044\u307e\u3059\u3002 \u4eca\u56de\u306fOpenShift\u3067\u7c21\u5358\u306bJava Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[28],"tags":[13],"class_list":["post-935","post","type-post","status-publish","format-standard","hentry","category-web-system","tag-infrastructure",""],"acf":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"engage-mag-carousel-img":false,"engage-mag-carousel-img-landscape":false,"engage-mag-carousel-large-img":false,"engage-mag-carousel-large-img-landscape":false,"engage-mag-large-thumb":false,"engage-mag-small-thumb":false},"uagb_author_info":{"display_name":"ah106rx4o4","author_link":"https:\/\/www.opentone.co.jp\/ot-lab\/author\/ah106rx4o4"},"uagb_comment_info":1,"uagb_excerpt":"\u7686\u69d8\u3053\u3093\u306b\u3061\u306f\u3002t.i.\u3067\u3054\u3056\u3044\u307e\u3059\u3002 \u4eca\u56de\u306fOpenShift\u3067\u7c21\u5358\u306bJava Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7","_links":{"self":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/comments?post=935"}],"version-history":[{"count":1,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/935\/revisions"}],"predecessor-version":[{"id":936,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/935\/revisions\/936"}],"wp:attachment":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/media?parent=935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/categories?post=935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/tags?post=935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}