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
<plugin> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-maven2-plugin</artifactId> | |
<version>1.6.5</version> | |
<configuration> | |
<!-- Container configuration --> | |
<container> | |
<containerId>tomcat8x</containerId> | |
<timeout>3600000</timeout><!-- 60 min --> |
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 lv.org.substance.crypt | |
import java.security.spec.AlgorithmParameterSpec; | |
import java.security.spec.KeySpec; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.spec.PBEParameterSpec; |
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 com.red.bol.serializer; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.databind.JsonSerializer; | |
import com.fasterxml.jackson.databind.SerializerProvider; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.IOException; | |
import java.util.Map; |
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 com.red.bol.serializer; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.databind.DeserializationContext; | |
import com.fasterxml.jackson.databind.JsonDeserializer; | |
import org.apache.commons.lang3.StringUtils; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; |
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
stage('Dependency Check') { | |
steps { | |
echo 'Running dependency check' | |
withMaven(maven: 'maven 3.6.0', globalMavenSettingsConfig: 'sfcoGlobalSettingsV1', mavenSettingsConfig: 'sfcoSettingsV1') { | |
sh 'mvn -Dmaven.test.skip=true package -Psecurity' | |
} | |
} | |
post { | |
always { | |
dependencyCheckPublisher pattern: "**/dependency-check-report.xml" |
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
[http] | |
proxy = http://host:port | |
[user] | |
name = Name | |
email = mail | |
[alias] | |
# current branch, complete subject | |
l = log --graph --abbrev-commit --date=relative --pretty=format:'%C(yellow)%h%Creset%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' |
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
# Create a namespace for PostgreSQL | |
kubectl create namespace postgresql | |
#Install helm chart for postgreSQL | |
helm install postgresql stable/postgresql --namespace postgresql | |
# Get postgres host | |
kubectl get svc --namespace postgresql postgres-release-postgresql -o jsonpath="{.spec.clusterIP}" | |
# Get postgreSQL postgres's user 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
CREATE TABLE vault_kv_store ( | |
parent_path TEXT COLLATE "C" NOT NULL, | |
path TEXT COLLATE "C", | |
key TEXT COLLATE "C", | |
value BYTEA, | |
CONSTRAINT pkey PRIMARY KEY (path, key) | |
); | |
CREATE INDEX parent_path_idx ON vault_kv_store (parent_path); |
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
# Install pgAdmin helm chart | |
helm install pgadmin stable/pgadmin --namespace postgresql | |
# Expose pgAdmin service locally | |
kubectl port-forward -n postgresql svc/pgadmin 8085:80 |
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
# Create a namespace for Vault | |
kubectl create namespace vault | |
#Add helm official repo for Vault | |
helm repo add hashicorp https://helm.releases.hashicorp.com | |
# Install Vault helm chart | |
helm install vault-release vault --namespace vault -f values.yaml | |
# Expose Vault service locally |
OlderNewer