{"id":2538,"date":"2019-02-15T08:01:09","date_gmt":"2019-02-15T13:01:09","guid":{"rendered":"http:\/\/www.soul-repairs.com\/blog\/?p=2538"},"modified":"2019-02-14T22:20:22","modified_gmt":"2019-02-15T03:20:22","slug":"openshifts-jdk11-s2i-is-generally-available","status":"publish","type":"post","link":"https:\/\/soul-repairs.com\/blog\/2019\/02\/15\/openshifts-jdk11-s2i-is-generally-available\/","title":{"rendered":"OpenShift&#8217;s JDK11 S2I is Generally Available!"},"content":{"rendered":"<p>If you&#8217;re a Java developer who&#8217;s been working with OpenShift 3.x for a while, odds are very high you&#8217;ve worked with their <a href=\"https:\/\/access.redhat.com\/containers\/?tab=overview#\/registry.access.redhat.com\/redhat-openjdk-18\/openjdk18-openshift\" target=\"_blank\" rel=\"noopener\">OpenJDK 8 S2I image<\/a>.<\/p>\n<p>That container includes Red Hat&#8217;s S2I magic, which can take a git URL or a JAR and turn it into a running Java application. Combined with <a href=\"http:\/\/spring.io\/projects\/spring-boot\" target=\"_blank\" rel=\"noopener\">Spring Boot<\/a>, it&#8217;s a fantastic way to get running Java containers in minutes.<\/p>\n<p><!--more--><\/p>\n<p>At our last company, we had new developers building production-ready applications less than a week after their start date, using this tech (and pipelines that ran SonarQube and code reviews\/pull requests in Bitbucket&#8230;we&#8217;re not <em>totally<\/em> crazy).<\/p>\n<p>But, if you&#8217;re a Java developer who&#8217;s been paying attention, you know that Java 9\/10\/11 have lots of good new features over Java 8. And, you know that OpenJDK 11 is the one that&#8217;s getting long-term support from Red Hat.<\/p>\n<h2>OpenJDK 11 Image is Now Available!<\/h2>\n<p>A couple people were asking about Java 11 in OpenShift, so we checked it out and noticed that the <a href=\"https:\/\/openjdk.java.net\/projects\/jdk\/11\/\" target=\"_blank\" rel=\"noopener\">JDK 11<\/a> image is now marked as Generally Available!\u00a0<a href=\"https:\/\/knowyourmeme.com\/memes\/success-kid-i-hate-sandcastles\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"emoji alignnone wp-image-2547 size-thumbnail\" style=\"background-color: #ffffff; background-image: none !important;\" src=\"https:\/\/soul-repairs.com\/blog\/wp-content\/uploads\/2019\/02\/success-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>\u00a0As of this writing, it&#8217;s on version 1.0-8 and fully supported for OpenShift customers:<\/p>\n<blockquote><p><a href=\"https:\/\/access.redhat.com\/containers\/?tab=overview#\/registry.access.redhat.com\/openjdk\/openjdk-11-rhel7\" target=\"_blank\" rel=\"noopener\">openjdk-11-rhel7<\/a><\/p><\/blockquote>\n<p>If you maintain your own registry, you can pull the image from Red Hat&#8217;s container registry into your\u00a0<code>openshift<\/code>\u00a0project with this command:<\/p>\n<p><code>oc tag registry.access.redhat.com\/openjdk\/openjdk-11-rhel7:latest openshift\/openjdk-11-rhel7:latest --scheduled=true<\/code><\/p>\n<p>The <code><a href=\"https:\/\/www.mankier.com\/1\/oc-tag\" target=\"_blank\" rel=\"noopener\">oc tag<\/a><\/code>command with <code>--scheduled=true<\/code> will also set up the image in <strong>your<\/strong> registry to auto-pull from Red Hat&#8217;s registry as new versions are assigned to the tag <code>latest<\/code>. This is great for things like vulnerabilities, especially if you have a process to automatically update any applications built using the Red Hat image.<\/p>\n<p>Have fun with Java 11!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re a Java developer who&#8217;s been working with OpenShift 3.x for a while, odds are very high you&#8217;ve worked with their OpenJDK 8 S2I image. That container includes Red Hat&#8217;s S2I magic, which can take a git URL or a JAR and turn it into a running Java application. Combined with Spring Boot, it&#8217;s &hellip; <\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/soul-repairs.com\/blog\/2019\/02\/15\/openshifts-jdk11-s2i-is-generally-available\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[89,95,94,44,96,77,93],"wf_post_folders":[33],"coauthors":[11,26],"class_list":["post-2538","post","type-post","status-publish","format-standard","hentry","category-technology","tag-java","tag-jdk","tag-oc","tag-openshift","tag-s2i","tag-sonarqube","tag-spring-boot"],"_links":{"self":[{"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/posts\/2538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/comments?post=2538"}],"version-history":[{"count":4,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/posts\/2538\/revisions"}],"predecessor-version":[{"id":2542,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/posts\/2538\/revisions\/2542"}],"wp:attachment":[{"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/media?parent=2538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/categories?post=2538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/tags?post=2538"},{"taxonomy":"wf_post_folders","embeddable":true,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/wf_post_folders?post=2538"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/soul-repairs.com\/blog\/wp-json\/wp\/v2\/coauthors?post=2538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}