Before You Begin
This 15-minute tutorial shows you how to deploy a Java application in Oracle Application Container Cloud Service from a Git repository by using the command-line interface (CLI).
Background
The Oracle Application Container Cloud Service GitHub integration enables you to deploy your applications directly from a Git repository.
In this tutorial, you create a Git repository to upload your application. Then you can deploy it by using the CLI, which acts as a thin wrapper over Platform as a Service (PaaS) REST APIs.
What Do You Need?
- Access to an instance of Oracle Application Container Cloud Service
- Command-line interface installed and configured
- A GitHub account
- Git CMD shell to execute cURL commands
- The hello-world-app.zip project file
Create a Git Repository
- Log in to github.com.
- Click + and then select New repository.
- In the Repository name field, enter
myJavaApp,
select Public, and then click Create repository. - Extract the contents of the
hello-world-app.zip
file. - Open a Git Bash window and go to the
hello-world-app
directory. - Create your repository.
git init git add . git commit -m "Starting Node project" git remote add origin https://github.com/YourGitProject/myJavaApp.git git push -u origin master
Deploy an Application to Oracle Application Container Cloud Service
- In the command-line window, deploy the
MyJavaApp
application. Make a note of the job ID. You'll use it in the next step.psm accs push -n MyJavaApp -r java -s hourly \ -g https://github.com/YourGitProject/myJavaApp.git \ -m /local-path-to-manifest.json
- Check the deployment job status and replace the
job-ID
placeholder with your job ID.psm accs operation-status -j job-ID -of json
- Get the application information. Make a note of the URL, you'll use it in the next step.
psm accs check-health -n myJavaApp
- Open the application in the CLI, replacing the
url-app
placeholder with your URL.
Note: Acurl url-app
"Hello World"
message indicates that you successfully deployed the application in Oracle Application Container Cloud Service.