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
# https://www.youtube.com/watch?v=0EZ_JOavLjM | |
#cassandra-demo-integration-tests/configure | |
export VCAP_APPLICATION=“” | |
export REQUIRED_SERVICE_INSTANCES=“p-cassandra:multi-tenant:int-test-cassandra” | |
. test_service_instances | |
./gradlew clean integrationTest | |
Script 2: |
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
# Implements Create, Debug, and Delete Lattice Instance usable from within a Python app | |
# | |
import os, jsonr | |
import requests | |
# Note these are only a few variables, closer inspection of this Gist will show that there is alot of possibility here based on your app container. | |
# needed to make requests | |
auth_header = {'Authorization':'Basic YmJlcnRrYTprYXJtYTE5NzY='} |
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
import json, os | |
import redis | |
from redis_collections import List | |
MAX = 50 | |
# Authenticate and create redis object (assuming PCF service) | |
creds = json.loads(os.environ['VCAP_SERVICES'])['p-redis'][0]['credentials'] | |
r = redis.StrictRedis(host=creds['host'], port=creds['port'], password=creds['password'], db=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
--- | |
timeout: 180 | |
instances: 1 | |
memory: 512M | |
env: | |
SPRING_PROFILES_DEFAULT: cloud | |
JAVA_OPTS: -Djava.security.egd=file:///dev/urandom | |
applications: | |
- name: quotes-${random-word} | |
path: springboottrades-quotes/build/libs/quotes-0.2.jar |