2分でできるネタ。
まずは、Temurin on Ubuntu Focal (20.04LTS) の Docker image を docker hub から探してサクッと起動。
まずは、Temurin on Ubuntu Focal (20.04LTS) の Docker image を docker hub から探してサクッと起動。
$ docker run -it eclipse-temurin:17-jdk-focal /bin/bashUnable to find image 'eclipse-temurin:17-jdk-focal' locally17-jdk-focal: Pulling from library/eclipse-temurin35807b77a593: Pull complete501c25919076: Pull completeedd792abf4d9: Pull complete2873dd09179d: Pull completeDigest: sha256:8cbc90d9a10bac85032a9409049512dd7a34f40e28c5935f0f6d029734b3d7d9Status: Downloaded newer image for eclipse-temurin:17-jdk-focalroot@7ff0182107f5:/#
起動できたみたいなので、OpenJDK のバージョンを一応確認
root@7ff0182107f5:~# java -versionopenjdk version "17" 2021-09-14OpenJDK Runtime Environment Temurin-17+35 (build 17+35)OpenJDK 64-Bit Server VM Temurin-17+35 (build 17+35, mixed mode, sharing)
大丈夫そうです。
root@7ff0182107f5:~# cd /opt/root@7ff0182107f5:/opt# curl https://download.jboss.org/wildfly/24.0.1.Final/wildfly-24.0.1.Final.tar.gz -o wildfly-24.0.1.Final.tar.gz% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 200M 100 200M 0 0 1153k 0 0:02:58 0:02:58 --:--:-- 1182kroot@7ff0182107f5:/opt# lsjava wildfly-24.0.1.Final.tar.gz
落とせたようなので、解いて起動します。
root@7ff0182107f5:/opt# tar xpzf wildfly-24.0.1.Final.tar.gzroot@7ff0182107f5:/opt# cd wildfly-24.0.1.Final/binroot@7ff0182107f5:/opt/wildfly-24.0.1.Final/bin# ./standalone.sh=========================================================================JBoss Bootstrap EnvironmentJBOSS_HOME: /opt/wildfly-24.0.1.FinalJAVA: /opt/java/openjdk/bin/javaJAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED=========================================================================05:58:29,658 INFO [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final05:58:30,385 INFO [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final05:58:30,394 INFO [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final05:58:30,542 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 24.0.1.Final (WildFly Core 16.0.1.Final) starting05:58:31,611 INFO [org.wildfly.security] (ServerService Thread Pool -- 18) ELY00001: WildFly Elytron version 1.16.1.Final05:58:32,070 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 13) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions05:58:32,437 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.05:58:32,542 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 37) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.05:58:32,625 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)05:58:32,645 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.8.4.Final05:58:32,654 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.8.4.Final05:58:32,727 INFO [org.jboss.remoting] (MSC service thread 1-8) JBoss Remoting version 5.0.23.Final05:58:32,772 INFO [org.wildfly.extension.health] (ServerService Thread Pool -- 52) WFLYHEALTH0001: Activating Base Health Subsystem05:58:32,778 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 53) WFLYCLINF0001: Activating Infinispan subsystem.05:58:32,807 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 54) WFLYIO001: Worker 'default' has auto-configured to 8 IO threads with 64 max task threads based on your 4 available processors05:58:32,812 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 44) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)05:58:32,809 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 55) WFLYRS0016: RESTEasy version 3.15.1.Final05:58:32,823 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 60) WFLYJSF0007: Activated the following Jakarta Server Faces Implementations: [main]05:58:32,856 INFO [org.wildfly.extension.metrics] (ServerService Thread Pool -- 62) WFLYMETRICS0001: Activating Base Metrics Subsystem05:58:32,858 INFO [org.wildfly.extension.microprofile.jwt.smallrye] (ServerService Thread Pool -- 64) WFLYJWT0001: Activating MicroProfile JWT Subsystem05:58:32,864 INFO [org.jboss.as.connector] (MSC service thread 1-8) WFLYJCA0009: Starting Jakarta Connectors Subsystem (WildFly/IronJacamar 1.4.35.Final)05:58:32,867 INFO [org.wildfly.extension.microprofile.config.smallrye] (ServerService Thread Pool -- 63) WFLYCONF0001: Activating MicroProfile Config Subsystem05:58:32,895 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0018: Started Driver service with driver-name = h205:58:32,902 INFO [org.wildfly.extension.microprofile.opentracing] (ServerService Thread Pool -- 65) WFLYTRACEXT0001: Activating MicroProfile OpenTracing Subsystem05:58:32,926 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 66) WFLYNAM0001: Activating Naming Subsystem05:58:32,936 INFO [org.jboss.as.security] (ServerService Thread Pool -- 72) WFLYSEC0002: Activating Security Subsystem05:58:32,941 INFO [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=5.0.3.Final-redhat-0000705:58:32,955 WARN [org.wildfly.extension.elytron] (MSC service thread 1-6) WFLYELY00023: KeyStore file '/opt/wildfly-24.0.1.Final/standalone/configuration/application.keystore' does not exist. Used blank.05:58:32,979 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]05:58:32,980 INFO [org.jboss.as.naming] (MSC service thread 1-1) WFLYNAM0003: Starting Naming Service05:58:32,998 WARN [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY01084: KeyStore /opt/wildfly-24.0.1.Final/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost05:58:33,017 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 74) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.05:58:33,047 INFO [org.jboss.as.ejb3] (MSC service thread 1-7) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.05:58:33,058 INFO [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.05:58:33,079 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 76) WFLYWS0002: Activating WebServices Extension05:58:33,085 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0003: Undertow 2.2.8.Final starting05:58:33,240 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 75) WFLYUT0014: Creating file handler for path '/opt/wildfly-24.0.1.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']05:58:33,247 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.05:58:33,250 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) Queuing requests.05:58:33,252 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting05:58:33,434 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:808005:58:33,544 INFO [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0493: Jakarta Enterprise Beans subsystem suspension complete05:58:33,619 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]05:58:33,825 INFO [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none05:58:33,849 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-7) WFLYDM0111: Keystore /opt/wildfly-24.0.1.Final/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost05:58:33,872 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) WFLYDS0013: Started FileSystemDeploymentService for directory /opt/wildfly-24.0.1.Final/standalone/deployments05:58:33,897 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:844305:58:33,992 INFO [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.4.4.Final (Apache CXF 3.3.10)05:58:34,171 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server05:58:34,174 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 24.0.1.Final (WildFly Core 16.0.1.Final) started in 5071ms - Started 319 of 558 services (344 services are lazy, passive or on-demand)05:58:34,176 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management05:58:34,177 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
おしまい。