Compute Engine
Create a VM then deploy your application to the VM.
Getting Started
Clone
cd $HOME
git clone https://github.com/saturnism/jvm-helloworld-by-example
cd jvm-helloworld-by-example/helloworld-springboot-tomcatBuild
./mvnw packageCreate a VM
Enable API
gcloud services enable compute.googleapis.comCreate a VM
gcloud compute instances create helloworld \
--scopes=cloud-platformCopy File to VM
SSH to VM
Install OpenJDK in the VM
Run in the VM
Expose
Firewall
Add Tag
Add Firewall Rule
Connect
Getting Started - Container in Compute Engine
Clone
Build
Containerize
Enable API
Jib
Create a VM with Container Image
Enable API
Create a VM
Expose
Firewall
Connect
Last updated
Was this helpful?