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

39 lines
734 B
Plaintext
Raw Normal View History

2022-01-07 10:56:11 -05:00
// 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
----
2025-11-04 15:41:59 +00:00
[source,terminal]
----
$ cd spring-petclinic
----
2022-01-07 10:56:11 -05:00
2025-11-04 15:41:59 +00:00
[source,terminal]
----
$ mvn package
----
2022-01-07 10:56:11 -05:00
2025-11-04 15:41:59 +00:00
[source,terminal]
----
$ odo create java test3 --binary target/*.jar
----
2022-01-07 10:56:11 -05:00
[source,terminal]
----
2025-11-04 15:41:59 +00:00
$ odo push
2022-01-07 10:56:11 -05:00
----