Ocean
๐ Ocean ๐ is an innovative solution developed by Port to seamlessly integrate various third-party systems with our developer portal product, empowering engineers to effortlessly prioritize key features and streamline the integration process.
Install / Use
/learn @port-labs/OceanREADME
Ocean <img src="./assets/OceanSymbol.svg" alt="Ocean" width="100" height="100" align="right">
Ocean is an innovative solution developed by Port to seamlessly integrate various third-party systems with our developer portal product, empowering engineers to effortlessly prioritize key features and streamline the integration process.
Prerequisites
- Python 3.11
Installation
In order to install the Ocean Framework, run the following command:
pip install "port-ocean[cli]"
Or
poetry add "port-ocean[cli]"
Run Integration
-
source the integration venv
. .venv/bin/activate -
Run
ocean sail ./path/to/integration
Export Architecture
Real-Time updates Architecture
Integration Lifecycle
Folder Structure
The Ocean Integration Framework follows a specific folder structure within this mono repository. This structure ensures proper organization and easy identification of integration modules. The suggested folder structure is as follows:
port-ocean/
โโโ port_ocean (framework)/
โ โโโ ocean.py
โ โโโ core/
| โโโ ...
โโโ integrations/
โ โโโโ integration_name/
โ โโโโโ main.py
โ โโโโโ pyproject.toml
โ โโโโโ Dockerfile
โโโ ...
โโโ ...
- The
frameworkfolder contains the core logic for managing the integration lifecycle. - Each integration is represented by a separate folder inside the
integrationsdirectory. - Inside each integration folder, you'll find a
main.pyfile that implements the core functionality of the integration for the specific third-party system. - The
pyproject.tomlfile inside each integration folder lists the required dependencies for that integration.
Configuration
The Integration Framework utilizes a config.yaml file for its configuration. This file defines both the framework configuration and the integration configuration within it. Each integration is identified by its type and unique identifier, which are utilized during initialization to appropriately update Port.
Example config.yaml:
# This is an example configuration file for the integration service.
# Please copy this file to config.yaml file in the integration folder and edit it to your needs.
port:
clientId: PORT_CLIENT_ID # Can be loaded via environment variable: PORT_CLIENT_ID
clientSecret: PORT_CLIENT_SECRET # Can be loaded via environment variable: PORT_CLIENT_SECRET
baseUrl: https://api.getport.io/v1
# The event listener to use for the integration service.
eventListener:
type: KAFKA / WEBHOOK
integration:
# The name of the integration.
identifier: "my_integration"
# The type of the integration.
type: "PagerDuty"
config:
my_git_token: "random"
some_other_integration_config: "Very important information"
Contributing
The reason Ocean is open source is that we aim for the Port integration library to offer numerous useful out-of-the-box integrations. We have confidence that developers and DevOps professionals who rely on Port in their everyday work will be inclined to contribute and assist in making it a comprehensive tool.
In order to learn how you can contribute to Ocean, read our contributing guide
Local Development (Framework)
-
Clone the repository
-
Install dependencies:
make installOr (For installing integrations dependencies as well)
make install/all -
source the integration venv
. .venv/bin/activate
Local Development (Integration)
-
Clone the repository
-
For new integration run
make newand follow the instructions
-
Install dependencies
-
cd DESIRED_INTEGRATION_FOLDER && make install -
source the integration venv
. .venv/bin/activate -
Run the integration
make runOr
ocean sail
License
The Ocean Framework is open-source software licensed under the Apache 2.0 License. See the LICENSE file for more information.
Contact
For any questions or inquiries, please reach out to our team at support@getport.io
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot ๅฏๅชไฝๆถๅ่ฝๅใไฝฟ็จ <qqmedia> ๆ ็ญพ๏ผ็ณป็ปๆ นๆฎๆไปถๆฉๅฑๅ่ชๅจ่ฏๅซ็ฑปๅ๏ผๅพ็/่ฏญ้ณ/่ง้ข/ๆไปถ๏ผใ
