1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/developer-cli-odo-sample-applications-binary.adoc
2025-11-06 09:13:13 +00:00

39 lines
734 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/developer_cli_odo/using-sample-applications.adoc
[id="odo-sample-applications-binary_{context}"]
= Binary example applications
Use the following commands to build and run sample applications from a binary file for a particular runtime.
[id="odo-sample-applications-binary-java_{context}"]
== java
Java can be used to deploy a binary artifact as follows:
[source,terminal]
----
$ git clone https://github.com/spring-projects/spring-petclinic.git
----
[source,terminal]
----
$ cd spring-petclinic
----
[source,terminal]
----
$ mvn package
----
[source,terminal]
----
$ odo create java test3 --binary target/*.jar
----
[source,terminal]
----
$ odo push
----