WildFly supports the latest standards for REST-based data access, including JAX-RS 2, and JSON-P. Building on Jakarta EE provides rich enterprise capabilities in easy to consume frameworks that eliminate boilerplate and reduce technical burden.
For details of the architecture, see Deploy WildFly connected to an autonomous database
-
Permission to
manage
the following types of resources in your Oracle Cloud Infrastructure tenancy:vcns
,internet-gateways
,route-tables
,network-security-groups
,subnets
,autonomous-database-family
, andinstances
. -
Quota to create the following resources: 1 VCN, 3 subnets, 1 Internet Gateway, 1 NAT Gateway, 2 route rules, 1 Load Balancer, 1 ATP instance, and 3 compute instances (bastion host + 2 JBoss servers).
If you don't have the required permissions and quota, contact your tenancy administrator. See Policy Reference, Service Limits, Compartment Quotas.
-
If you aren't already signed in, when prompted, enter the tenancy and user credentials.
-
Review and accept the terms and conditions.
-
Select the region where you want to deploy the stack.
-
Follow the on-screen prompts and instructions to create the stack.
-
After creating the stack, click Terraform Actions, and select Plan.
-
Wait for the job to be completed, and review the plan.
To make any changes, return to the Stack Details page, click Edit Stack, and make the required changes. Then, run the Plan action again.
-
If no further changes are necessary, return to the Stack Details page, click Terraform Actions, and select Apply.
Now, you'll want a local copy of this repo. You can make that with the commands:
git clone https://github.com/oracle-devrel/terraform-oci-arch-jboss-wildfly-atp.git
cd terraform-oci-arch-jboss-wildfly-atp
ls
First off, you'll need to do some pre-deploy setup. That's all detailed here.
Create a terraform.tfvars
file, and specify the following variables:
# Authentication
tenancy_ocid = "<tenancy_ocid>"
user_ocid = "<user_ocid>"
fingerprint = "<finger_print>"
private_key_path = "<pem_private_key_path>"
# Region
region = "<oci_region>"
# Compartment
compartment_ocid = "<compartment_ocid>"
# ATP
atp_password = "<atp_password>"
# JBoss Config
jboss_admin_password = "<jboss_admin_password>"
Run the following commands:
terraform init
terraform plan
terraform apply
There is no application deployed, but once deployed applications will be available at
http://<LOAD_BALANCER_IP>/
To access the admin console, you have 2 options:
Create a SOCKSv5 proxy through the public IP of the bastion host.
For example SOCKS v5 proxy on port 1088
ssh -C -D 1088 [email protected]
Then configure your browser to use a manual SOCK5 proxy, (On Firefox, click Preferences, then search for PROXY, and click Settings). Select Manual Proxy, and SOCKSv5 option. Pass it 'localhost' as the host and 1088 as the port.
You can then connect through the browser using the Private IP of the server.
For example: http://10.1.2.2:9990/ to reach the WildFly console.
You can tunnel to the jboss instance through the bastion host with
export BASTION_IP=<bastion-ip>
export JBOSS_HOST=<jboss-host-private-ip>
# tunnel
ssh -M -S socket -fnNT -L 9990:${JBOSS_HOST}:9990 opc@${BASTION_IP} cat -
ssh -S socket -O check opc@${BASTION_IP}
Then the admin console will be available on localhost at: http://localhost:9990/
You can SSH to the JBoss instance using:
ssh -J opc@${BASTION_IP} opc@${JBOSS_HOST}
or if you need to pass a private key identity, use:
ssh -o ProxyCommand="ssh -W %h:%p -i <private_key> opc@${BASTION_IP}" -i <private_key> opc@${JBOSS_HOST}
To SCP files to the JBoss instance (i.e. to deploy applications)
scp -o ProxyCommand="ssh -W %h:%p opc@${BASTION_IP}" <file-to-transfer.ext> opc@${JBOSS_HOST}:~/
This project is open source. Please submit your contributions by forking this repository and submitting a pull request! Oracle appreciates any contributions that are made by the open source community.
Initially, this project was created and distributed in GitHub Oracle QuickStart space. For that reason, we would like to thank all the involved contributors enlisted below:
- Emmanuel Leroy (https://github.com/streamnsight)
- Lukasz Feldman (https://github.com/lfeldman)
Copyright (c) 2024 Oracle and/or its affiliates.
Licensed under the Universal Permissive License (UPL), Version 1.0.
See LICENSE for more details.