This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd | |
http://camel.apache.org/schema/spring | |
http://camel.apache.org/schema/spring/camel-spring.xsd"> | |
<camelContext xmlns="http://camel.apache.org/schema/spring"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KeyStoreParameters kspKeys = new KeyStoreParameters(); | |
kspKeys.setResource(context.keyStorePath); | |
kspKeys.setPassword(context.keyStorePassword); | |
KeyManagersParameters kmp = new KeyManagersParameters(); | |
kmp.setKeyStore(kspKeys); | |
kmp.setKeyPassword(context.keyPassword); | |
KeyStoreParameters kspTrust = new KeyStoreParameters(); | |
kspTrust.setResource(context.trustStorePath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
# Redirect from HTTP to HTTPS, by inspecting the HTTP port | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package beans; | |
import java.util.ArrayList; | |
import org.apache.camel.RoutingSlip; | |
public class CustomRoutingSlipBean { | |
@RoutingSlip | |
public ArrayList<String> slip(String body) { | |
ArrayList<String> recipients = new ArrayList<String>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Template", | |
"apiVersion": "v1", | |
"metadata": { | |
"annotations": { | |
"iconClass": "icon-tomcat", | |
"description": "Application template for JWS applications built using S2I with an external Oracle database.", | |
"tags": "tomcat,tomcat8,mysql,java,database,jboss,xpaas", | |
"version": "1.2.0" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pass this file to openshift using `oc process -f openshift-nexus-proxy.yaml | oc create -f -` | |
# | |
apiVersion: v1 | |
kind: Template | |
metadata: | |
creationTimestamp: null | |
name: nexus-service | |
objects: | |
- apiVersion: v1 | |
kind: Endpoints |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FIRST! | |
# Make sure Jasypt is installed first in the Karaf container before continuing | |
# features:install jasypt-encryption | |
# Update these vars as per the environment | |
MASTER_PASS=masterpass | |
KEYSTORE_PASS=password | |
TRUSTSTORE_PASS=password | |
# ------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Useful if you are running a local Maven mirror (e.g. Nexus) for dependencies | |
# Speeds up builds in OpenShift | |
# Of particular interest if you're developing with JBoss Middleware images | |
# | |
# Uses `ipconfig` to get the IP address of your host machine | |
# Updates a BuildConfig element to set the env var MAVEN_MIRROR_URL | |
# | |
# Requires: | |
# - jq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e # fail on unhandled error | |
set -u # fail on undefined variable | |
#set -x # debug | |
alias command_exists="type >/dev/null 2>&1" | |
if command_exists curl; then |
OlderNewer