Skip to content

Instantly share code, notes, and snippets.

{
"name":"Cardinal test Consortium",
"slug":"CARDINAL",
"foafUrl":"https://raw.githubusercontent.com/openlibraryenvironment/mod-directory/master/seed_data/test/cardinal_local_management.json",
"url":"http://not.a.real.consortium/",
"type":"Consortium",
"members":[
{ "memberOrg":"us-east-1"},
{ "memberOrg":"us-west-1"}
],
@ihardy
ihardy / Folio.php
Created May 28, 2020 16:28
Folio-php-May-28
<?php
/**
* FOLIO REST API driver
*
* PHP version 7
*
* Copyright (C) Villanova University 2018.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
@ihardy
ihardy / okapi-install.json
Created March 16, 2020 19:27
reshare rs folio modules
[
{
"id": "mod-inventory-storage-18.2.3",
"action": "enable"
},
{
"id": "mod-circulation-storage-10.0.1",
"action": "enable"
},
{
[
{
"id": "mod-inventory-storage-17.0.0",
"action": "enable"
},
{
"id": "mod-users-15.6.2",
"action": "enable"
},
{
[
{
"id": "mod-calendar-1.6.0",
"action": "enable"
},
{
"id": "mod-inventory-storage-16.0.2",
"action": "enable"
},
{
[
{
"id": "mod-calendar-1.6.0",
"action": "enable"
}
]
[
{
"action": "enable",
"id": "mod-users-15.7.0-SNAPSHOT.90"
},
{
"action": "enable",
"id": "mod-permissions-5.9.0-SNAPSHOT.56"
},
{
[
{
"action": "enable",
"id": "folio_stripes-core-3.7.1000577"
},
{
"action": "enable",
"id": "folio_calendar-2.4.10005"
},
{
@ihardy
ihardy / okapi-notes.md
Last active June 25, 2019 16:37
okapi k8s deployment notes

Okapi k8s deployment notes

Approaching this by starting w/docker run commands and seeing what needs to be done in order to get to kubectl step in order to dpeloy okapi on k8s.

Example Docker commands to start up Okapi in dev mode

Init database:

docker run -d --rm \
 -e JAVA_OPTIONS="-Dport=8600 -Dstorage=postgres -Dpostgres_host=172.17.0.1 -Dpostgres_port=5432 -Dpostgres_user=okapi -Dpostgres_password=okapi25 -Dpostgres_database=okapi" \
@ihardy
ihardy / gettoken
Last active May 17, 2019 15:55
logs in, copy to /usr/local/bin/gettoken and chmod +x. Then $ export token=`gettoken -o snapshot` or `gettoken -o http://someokapiurl`
#!/usr/bin/python3
import argparse
import json
import urllib.request
REFERNCE_ENVS_SHORTCUTS = {
'snapshot' : 'https://folio-snapshot-okapi.aws.indexdata.com',
'snapshot-core' : 'https://folio-snapshot-core-okapi.aws.indexdata.com',
'snapshot-test' : 'https://folio-snapshot-test-okapi.aws.indexdata.com',