Skip to content

Instantly share code, notes, and snippets.

@gui1207
gui1207 / mule-maven-plugin-full-example
Created November 1, 2022 10:51
Deploy CH2 - Full Example
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>YOUR_ORG_ID</groupId>
<artifactId>hello-cloudhub-v2</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>mule-application</packaging>
@gui1207
gui1207 / mule-maven-plugin
Last active October 26, 2022 16:22
Deploy CH2 - Shared Space
<cloudhub2Deployment>
<uri>https://anypoint.mulesoft.com</uri>
<provider>MC</provider>
<environment>{environment}</environment>
<target>{shared-space-name}</target>
<muleVersion>4.4.0</muleVersion>
<server>{server-credentials}</server>
<applicationName>{application-name}</applicationName>
<replicas>1</replicas>
<vCores>0.1</vCores>
@gui1207
gui1207 / mule-maven-plugin
Last active October 26, 2022 16:23
Deploy CH2 - Private Space - Public Endpoint - Custom Domain
<cloudhub2Deployment>
<uri>https://anypoint.mulesoft.com</uri>
<provider>MC</provider>
<environment>{environment}</environment>
<target>{private-space-name}</target>
<muleVersion>4.4.0</muleVersion>
<server>{server-credentials}</server>
<applicationName>{application-name}</applicationName>
<replicas>1</replicas>
<vCores>0.1</vCores>
@gui1207
gui1207 / mule-maven-plugin
Last active October 26, 2022 16:23
Deploy CH2 - Private Space - Public Endpoint
<cloudhub2Deployment>
<uri>https://anypoint.mulesoft.com</uri>
<provider>MC</provider>
<environment>{environment}</environment>
<target>{private-space-name}</target>
<muleVersion>4.4.0</muleVersion>
<server>{server-credentials}</server>
<applicationName>{application-name}</applicationName>
<replicas>1</replicas>
<vCores>0.1</vCores>
@gui1207
gui1207 / mule-maven-plugin
Last active October 26, 2022 16:23
Deploy CH2 - Private Space - No Public Endpoint
<cloudhub2Deployment>
<uri>https://anypoint.mulesoft.com</uri>
<provider>MC</provider>
<environment>{environment}</environment>
<target>{private-space-name}</target>
<muleVersion>4.4.0</muleVersion>
<server>{server-credentials}</server>
<applicationName>{application-name}</applicationName>
<replicas>1</replicas>
<vCores>0.1</vCores>
@gui1207
gui1207 / gist:b0770b75a753eef23bf9e05e1d6160df
Created October 3, 2022 11:35
feat/graphviz-engine-usage - log
guilherme@macbook mulefd % git switch feat/graphviz-engine-usage
Switched to branch 'feat/graphviz-engine-usage'
Your branch is up to date with 'origin/feat/graphviz-engine-usage'.
guilherme@macbook mulefd % ./gradlew build
> Task :generateBuildConfig
> Task :compileBuildConfig
> Task :compileJava
Note: /Users/guilherme/dev/workspace_java/mulefd/src/main/java/com/javastreets/mulefd/drawings/GraphDiagram.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
<plugin>
<!-- Plugin that provides API-first development using openapi-generator
to generate Spring-MVC endpoint stubs at compile time from an OpenAPI definition
file -->
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${openapi-generator-maven-plugin.version}</version>
<executions>
<execution>
<goals>
@gui1207
gui1207 / gist:a1ecc29113e9ce3d68bd23f642b5c149
Last active April 13, 2021 12:59
Router - Advertisement route
gcloud compute routers update MY_ROUTER_NAME \
--advertisement-mode CUSTOM \
--set-advertisement-groups ALL_SUBNETS \
--set-advertisement-ranges 199.36.153.4/30
gcloud compute routes create ROUTE_NAME \
--network=MY_VPC_NAME \
--destination-range=199.36.153.4/30 \
--next-hop-gateway=default-internet-gateway
INFO
event:ad41fb70-75e3-11ea-be77-0e6289a2d7d3 org.mule.extension.http.api.HttpResponseAttributes
{
Status Code=200
Reason Phrase=OK
Headers=[
content-encoding=gzip
x-xss-protection=1; mode=block
x-content-type-options=nosniff
content-type=application/json;charset=UTF-8