Sample for Hello World task. Print "Hello World"
- Fork the repositoy
Please refer to the Choreo documentation under the Develop an Application with Buildpacks to learn how to deploy the application.
-
Select
Manual Task
Card from Component Creation Wizard -
Select
Java
as the buildpack. Fill as follow according to selected Buildpack.Field Description Name Hello World Java Task Description Hello World Java Task GitHub Account Your account GitHub Repository choreo-samples Branch main
Buildpack Java Select Go Project Directory hello-world-java-task Select Language Version 8 -
Click Create. Once the component creation is complete, you will see the component overview page.
-
Deploy the created component
Here, we have specify the entrypoint in the Procfile
Navigate to the Go application directory
cd hello-world-java-task
Run the mvn command
mvn clean install
Execute jar file
java -cp target/sample-app-1.0-SNAPSHOT.jar com.sample.app.App