Skip to content

Instantly share code, notes, and snippets.

@pobalopalous
pobalopalous / ords_auth.js
Last active April 10, 2024 21:25
ORDS k6 artefacts
import http from 'k6/http';
import encoding from 'k6/encoding';
/**
* Authenticate using OAuth Client Credentials against ORDS
* @function
* @param {string} scheme - http or https
* @param {string} server - hostname and port of the server
* @param {string} clientId - Generated by ORDS
* @param {string} clientSecret - Generated by ORDS
@pobalopalous
pobalopalous / add-team.json
Created April 5, 2024 20:35
JSON File for Duality View batchload
[
{"teamId" : 303,
"name" : "McLaren",
"points" : 0,
"driver" : [
{"driverId" : 107, "name" : "Lando Norris", "points" : 0},
{"driverId" : 108, "name" : "Oscar Piastri", "points" : 0}
]
},
{"teamId" : 304,
@pobalopalous
pobalopalous / ORDS_Latest_Dockerfile
Last active March 6, 2023 15:48
A dockfile to create an ORDS image using the latest from oracle.com/rest
#
# Defines a docker image, based on the Oracle JDK image, to run Oracle REST Data Services. During the image building
# process the most recent version of ORDS will be automatically downloaded and extracted.
#
# Volumes for configuration and lib/ext are defined.
#
# docker run -p 8080:8080 -v ords-config:/opt/ords-config/ -v ords-lib-ext:/opt/ords/latest/lib/ext ords-latest/oraclejdk
#
# See https://peterobrien.blog/ for more information and examples.
#