Git Product home page Git Product logo

interlink-unicore-plugin's Introduction

UNICORE Interlink Plugin

This repository contains the code of UNICORE sidecar InterLink plugin. It enables compute task offloading to the UNICORE interfaced HPC resources. At the backend, the plugin receives a (pod creation) request from an Interlink instance, the plugin then creates a UNICORE job containing instructions to deploy a pod as an apptainer container on a HPC system.

The requester should fetch an access token using the script from the target UNICORE site before initiating any off-loading request. Before executing the script, please update the script by providing UNICORE site's base url and valid credentials (username and password). If the UNICORE site is deployed at Forschungszentrum Juelich, JuDoor credentials are required. The instructions to create a JuDoor account can be found under the following link.

The fetched access token should be copied into a new unicoreToken field of the yaml file.

metadata:
  annotations:
    unicoreToken: "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOi..."

Installation

Dependencies

  • It is recommended to use the latest version of Python. UNICORE plugin supports Python 3.8 and newer.
  • pyunicore - UNCORE python client library.
  • For a detailed list of dependencies, please refer to the Python's requirements file in this repository's main folder.

Quick start

Check out this git repo:

git clone https://github.com/interTwin-eu/interlink-unicore-plugin.git

Modify the config file properly and run the server by executing the following command:

cd interlink-unicore-plugin/src/
python3 handles.py --port <server_port> # default port is 8000

interlink-unicore-plugin's People

Contributors

amemon avatar spigad avatar

Watchers

 avatar Andrea Manzi avatar  avatar Diego Ciangottini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.