Skip to content

Commit

Permalink
Merge pull request #82 from dwolfson/main
Browse files Browse the repository at this point in the history
Added docker compose deployment configuration
  • Loading branch information
dwolfson authored Aug 30, 2024
2 parents 78491f2 + 75707e1 commit 194f9b1
Show file tree
Hide file tree
Showing 119 changed files with 2,221 additions and 54 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The open metadata labs contain an interactive environment that allow you to
experiment with different capabilities of Egeria. As such we often refer to them as
**Hands-on Labs**. They are implemented using the Jupyter Notebooks stored in this repository.

The labs can be set up and configured using the Docker Compose script in the **coco-lab-docker-compose** directory or can be
deployed and configured manually. It is easiest to get started using the Docker Compose deployment; the README.md file in the
directory provides more details.

* [Overview of the Labs](https://egeria-project.org/education/open-metadata-labs/overview/)

----
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The asset management notebooks cover the function to manage a catalog of assets


----
* [Return to the Labs Overiew](..)
* [Return to the Labs Overiew](../..)


----
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
"#\n",
"\n",
"# These are the three main platforms used to run Egeria's OMAG Servers\n",
"corePlatformURL = os.environ.get('corePlatformURL', 'https://localhost:9443')\n",
"corePlatformURL = os.environ.get('corePlatformURL', 'https://host.docker.internal:7443')\n",
"corePlatformName = \"Core Platform\"\n",
"\n",
"dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://localhost:9444')\n",
"dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://host.docker.internal:7444')\n",
"dataLakePlatformName = \"Data Lake Platform\"\n",
"\n",
"devPlatformURL = os.environ.get('devPlatformURL', 'https://localhost:9445')\n",
"devPlatformURL = os.environ.get('devPlatformURL', 'https://host.docker.internal:7445')\n",
"devPlatformName = \"Dev Platform\"\n",
"\n",
"\n",
Expand Down Expand Up @@ -306,6 +306,12 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
"def postAndPrintResult(url, json=None, headers=None):\n",
Expand Down Expand Up @@ -339,10 +345,7 @@
" except requests.exceptions.RequestException as e:\n",
" print (\" ...... FAILED - http request threw an exception: \", e)\n",
" return None\n"
],
"metadata": {
"collapsed": false
}
]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -434,6 +437,12 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
"\n",
Expand Down Expand Up @@ -485,14 +494,17 @@
" except Exception as error:\n",
" print(\"Exception: %s\" % error)\n",
" print(\"Platform \" + serverName + \" (\" + adminPlatformURL + \") is returning an error\")\n"
],
"metadata": {
"collapsed": false
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
"#\n",
Expand Down Expand Up @@ -536,14 +548,17 @@
" }\n",
" }\n",
" return body"
],
"metadata": {
"collapsed": false
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
"#\n",
Expand Down Expand Up @@ -658,14 +673,17 @@
"\n",
" else:\n",
" configureBuiltinMetadataRepository(adminPlatformURL, adminUserId, serverName, repositoryType)\n"
],
"metadata": {
"collapsed": false
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
"\n",
Expand Down Expand Up @@ -822,10 +840,7 @@
" }\n",
" url = adminCommandURLRoot + engineServerName + '/engine-services/' + engineServiceURLMarker\n",
" issuePost(url, requestBody)"
],
"metadata": {
"collapsed": false
}
]
},
{
"cell_type": "code",
Expand All @@ -851,11 +866,14 @@
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
}
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1847,24 +1865,6 @@
" propertyIndent = \" \"\n",
" if printSchema:\n",
" printSchemaTypeDetail(propertyIndent, assetResponse.get('schemaType'), serverName, serverPlatformName, serverPlatformURL, serviceURLMarker, userId, printOrigin)\n",
" certificationCount = assetResponse.get('certificationCount')\n",
" commentCount = assetResponse.get('commentCount')\n",
" if commentCount > 0:\n",
" printComments(propertyIndent, serverName, serverPlatformName, serverPlatformURL, serviceURLMarker, userId, assetGUID, printOrigin)\n",
" connectionCount = assetResponse.get('connectionCount')\n",
" externalIdentifierCount = assetResponse.get('externalIdentifierCount')\n",
" externalReferencesCount = assetResponse.get('externalReferencesCount')\n",
" informalTagCount = assetResponse.get('informalTagCount')\n",
" licenseCount = assetResponse.get('licenseCount')\n",
" likeCount = assetResponse.get('likeCount')\n",
" keywordCount = assetResponse.get('keywordCount')\n",
" knownLocationsCount = assetResponse.get('knownLocationsCount')\n",
" noteLogsCount = assetResponse.get('noteLogsCount')\n",
" ratingsCount = assetResponse.get('ratingsCount')\n",
" relatedAssetCount = assetResponse.get('relatedAssetCount')\n",
" if relatedAssetCount > 0:\n",
" printRelatedAssets(propertyIndent, serverName, serverPlatformName, serverPlatformURL, serviceURLMarker, userId, assetGUID)\n",
" relatedMediaReferenceCount = assetResponse.get('relatedMediaReferenceCount')\n",
" \n",
" \n",
"def printCommentList(responseObjects):\n",
Expand Down Expand Up @@ -5199,7 +5199,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
Expand All @@ -5223,7 +5226,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -5237,7 +5240,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 194f9b1

Please sign in to comment.