Windmill is an open-source low code builder to build all tools (endpoints, workflows, UIs) through the combination of code (in Typescript, Python, Go, Bash, SQL or any docker image) . It embeds all-in-one:
- an execution runtime to execute functions on a fleet of workers
- an orchestrator to compose functions into powerful flows
- an app builder to build application and data-intensive dashboards built with low-code or JS frameworks such a React.
More details
https://www.windmill.dev/docs/intro
This repository contains the artifacts to self host windmill application on Oracle Cloud Infrastructure.
It encompasses PostgreSQL cluster on Oracle Cloud Infrastructure Compute instances. In this architecture, the servers are configured in master and standby configuration and use streaming replication.
For details of the Application architecture, see Windmill Architecture
For details of the DB architecture, see PostgreSQL database
-
Permission to
manage
the following types of resources in your Oracle Cloud Infrastructure tenancy:vcns
,internet-gateways
,route-tables
,security-lists
,subnets
,container instances
,Bastion
, andinstances
. -
Quota to create the following resources: 1 VCN, 2 subnet, 1 Internet Gateway, 1 NAT, 2 route rules, and 3 compute instances (1 primary master PostgreSQL instance and 2 Standby instances of PostgreSQL) and 5 container instances
If you don't have the required permissions and quota, contact your tenancy administrator. See Policy Reference, Service Limits, Compartment Quotas.
The deployment of the Windmill application is completely automated with One Click option in GitHub, the automation is possible under the hood using
- GitHub Release
- GitHub Action
- Hosted Windmill Services
- OCI Resource Manager Private Template
- OCI Resource Manager Stacks Plan
- OCI Resource Manager Stacks Apply
- Got to [Releases]: https://github.com/paihari/terraform-oci-fullstack-windmill/releases/new
- Choose a incremental Tag, with Target: main
- Give a Title and Describle the release, Use Generate Release notes as compliment
- Leave the default options
- Click Publish Release
- Done
Git Hub Release Page OCI Private Template Page OCI Stack Page OCI Job Plan/Apply
OR
Download the latest terraform-oci-fullstack-windmill.zip
file. Login to Oracle Cloud Infrastructure to import the stack
> Home > Developer Services > Resource Manager > Stacks > Create Stack
Upload the terraform-oci-fullstack-windmill.zip
file that was downloaded earlier,
-
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.
-
To destroy, Navigate to Resource Manager >> Stacks >> Stack details and click Destroy
Now, you'll want a local copy of this repo. You can make that with the commands:
git clone https://github.com/paihari/terraform-oci-fullstack-windmill.git
cd terraform-oci-fullstack-windmill
ls
First off, you'll need to do some pre-deploy setup. That's all detailed here.
Secondly, create a terraform.tfvars
file and populate with the following information:
# Authentication
tenancy_ocid = "<tenancy_ocid>"
user_ocid = "<user_ocid>"
fingerprint = "<finger_print>"
private_key_path = "<pem_private_key_path>"
# Region
region = "<oci_region>"
# availability Domain
availability_domain= "<availability_domain>" # for example vWQc:EU-FRANKFURT-1-AD-1
# Compartment
compartment_ocid = "<compartment_ocid>"
# PostgreSQL Password
postgresql_password = "<postgresql_password>"
Run the following commands:
terraform init
terraform plan
terraform apply
When you no longer need the deployment, you can run this command to destroy the resources:
terraform destroy
Find the Public IP Address of the WindmillServer by Navigating to Developer Services >> Container Instances Navigate in the browser
http://PUBLIC-IP-ADDRESS-OF-WINDMILLSERVER:8000
Login using crdentials
admin@windmill.dev/changeme