Skip to content

Jacks Context

Tom Mitchell edited this page Jun 1, 2017 · 13 revisions

How to create a Jacks context

Install geni-lib

Follow the geni-lib installation guide for your platform.

Create geni-lib context

Follow the geni-lib guide for importing a context from a bundle

Install jacks-context

Clone the jacks-context repository using git. You will need to install git if it isn't already installed.

git clone https://github.com/Jacks-GENI/jacks-context.git

Generate Jacks context

The script portal.sh runs make-portal-config followed by jacks-context.py.

make-portal-config uses portal-template.json as input, and adds information to it from two sources:

  1. A GENI Service Registry, typically from ch.geni.net (https://ch.geni.net:8444/SR)
  2. The ExoGENI Image Repository (http://geni.renci.org:15080/registry/)

This results in the file portal-config.json. jacks-context.py uses this file as input to produce a context file, jacks-context.json, appropriate for the GENI portal.

A basic run of portal.sh looks like this:

./portal.sh

Expected Output

The output should look like this:

$ ./portal.sh
[clemson-og] Fetched Advertisement
[gpo-og] Fetched Advertisement
[eg-rci] Fetched Advertisement
[ig-sox] Fetched Advertisement
[eg-wvn] Fetched Advertisement
[ig-nps] Fetched Advertisement

<Lots more Fetched Advertisement messages>

[pg-utah] Fetched Advertisement
[pg-wall2] Fetched Advertisement
Processing 46 advertisements
Processing complete