Skip to content

Commit

Permalink
Merge pull request #3449 from arunans23/master
Browse files Browse the repository at this point in the history
Add datamapper samples and modify HelloWorld docker
  • Loading branch information
GDLMadushanka authored Jul 25, 2024
2 parents f3dc4f0 + f16a786 commit 487f2f6
Show file tree
Hide file tree
Showing 25 changed files with 1,701 additions and 2 deletions.
Binary file not shown.
Binary file modified samples/HelloDocker/deployment/docker/resources/wso2carbon.jks
Binary file not shown.
4 changes: 2 additions & 2 deletions samples/HelloDocker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
<goal>config-mapper-parser</goal>
</goals>
<configuration>
<miVersion>4.2.0</miVersion>
<miVersion>4.3.0</miVersion>
<executeCipherTool>${ciphertool.enable}</executeCipherTool>
<keystoreName>${keystore.name}</keystoreName>
<keystoreAlias>${keystore.alias}</keystoreAlias>
Expand Down Expand Up @@ -348,7 +348,7 @@
<keystore.password>wso2carbon</keystore.password>
<keystore.alias>wso2carbon</keystore.alias>
<ciphertool.enable>true</ciphertool.enable>
<dockerfile.base.image>wso2/wso2mi:4.2.0</dockerfile.base.image>
<dockerfile.base.image>wso2/wso2mi:4.3.0</dockerfile.base.image>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
Expand Down
111 changes: 111 additions & 0 deletions samples/JSONtoXMLMapping/deployment/deployment.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
[server]
hostname = "localhost"
hot_deployment = false
# offset = 10

[user_store]
type = "read_only_ldap"

[keystore.primary]
file_name = "repository/resources/security/wso2carbon.jks"
password = "wso2carbon"
alias = "wso2carbon"
key_password = "wso2carbon"

[truststore]
file_name = "repository/resources/security/client-truststore.jks"
password = "wso2carbon"
alias = "symmetric.key.value"
algorithm = "AES"

## Following are set of example configs. Please refer docs for complete set of configurations.

# [transport.http]
# socket_timeout = 180000 # timeout in milliseconds
# disable_connection_keepalive = false
# connection_timeout = 90000 # in milliseconds

# [transport.jms]
# sender_enable = true
# listener_enable = true

# [[transport.jms.sender]]
# name = "myQueueSender"
# parameter.initial_naming_factory = "org.apache.activemq.jndi.ActiveMQInitialContextFactory"
# parameter.provider_url = "tcp://localhost:61616"
# parameter.connection_factory_name = "QueueConnectionFactory"
# parameter.connection_factory_type = "queue"
# parameter.cache_level = "producer"


#[[transport.jms.listener]]
# name = "myQueueConnectionFactory"
# parameter.initial_naming_factory = "org.apache.activemq.jndi.ActiveMQInitialContextFactory"
# parameter.provider_url = "tcp://localhost:61616"
# parameter.connection_factory_name = "QueueConnectionFactory"
# parameter.connection_factory_type = "queue"

# [transport.jndi.connection_factories]
# 'connectionfactory.QueueConnectionFactory' = "amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5675'"
# 'connectionfactory.TopicConnectionFactory' = "amqp://admin:admin@clientID/carbon?brokerlist='tcp://localhost:5675'"

# [transport.jndi.queue]
# jndiNameOfQueue = "physicalNameOfQueue"

# [transport.jndi.topic]
# jndiNameOfTopic = "physicalNameOfTopic"

# [transport.rabbitmq]
# sender_enable = true
# listener_enable = true

# [[transport.rabbitmq.sender]]
# name = "AMQPConnectionFactory"
# parameter.hostname = "localhost"
# parameter.port = 5672
# parameter.username = "guest"
# parameter.password = "guest"

# [[transport.rabbitmq.listener]]
# name = "AMQPConnectionFactory"
# parameter.hostname = "localhost"
# parameter.port = 5672
# parameter.username = "guest"
# parameter.password = "guest"

# [system.parameter]
# 'key' = "value"

# [[datasource]]
# id = "WSO2CarbonDB" # "WSO2_COORDINATION_DB"
# url = "jdbc:mysql://localhost:3306/integratordb"
# username = "root"
# password = "root"
# driver = "com.mysql.jdbc.Driver"

# [management_api]
# protocols = "http"

# [[internal_apis.users]]
# user.name = "user-1"
# user.password = "pwd-1"

# [transaction_counter]
# enable = true
# data_source = "WSO2CarbonDB"
# update_interval = 2

# [mediation]
# synapse.global_timeout_interval = "120000" # interval in milliseconds

# [secrets]
# secret_key = "[secret value]"

# [[service_catalog]]
# apim_host = "https://localhost:9443"
# enable = true
# username = "admin"
# password = "admin"

# [dashboard_config]
# dashboard_url = "https://localhost:9743/dashboard/api/"
6 changes: 6 additions & 0 deletions samples/JSONtoXMLMapping/deployment/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
COPY CompositeApps/*.car ${WSO2_SERVER_HOME}/repository/deployment/server/carbonapps/
COPY resources/wso2carbon.jks ${WSO2_SERVER_HOME}/repository/resources/security/wso2carbon.jks
COPY resources/client-truststore.jks ${WSO2_SERVER_HOME}/repository/resources/security/client-truststore.jks
# COPY libs/*.jar ${WSO2_SERVER_HOME}/lib/
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 487f2f6

Please sign in to comment.