Coder Social home page Coder Social logo

libshipyard's Introduction

Shipyard task deployment library

This C library is used by tasks that are to be orchestrated with the Shipyard system. For more information about Shipyard, please see the server's repository.

Usage

Although it's a normal C library, it is not meant to be used like one. At least not fully. The library is packaged as a Docker image which tasks' images need to use as their base. An example Dockerfile could be as follows:

FROM varrrro/shipyard-server:latest

COPY . .

RUN gcc * -L$LIB_DIR -l$LIB_NAME -I$SRC_DIR -o task

CMD [ "./task" ]

Then, in the task's code, the developer just needs to include the library and call the set_sched function before the task's main logic. This functions obtains the scheduling parameters from environment variables and uses them to set the SCHED_DEADLINE policy. These environment variables are given to the container by the server when the task is deployed on a node.

libshipyard's People

Contributors

vvazrod avatar

Watchers

James Cloos avatar  avatar

libshipyard's Issues

Make library available as a container

Using Docker Hub, this library can be made available to all users that have to use it as base image for their real-time tasks.

  • Write Dockerfile
  • Link to Docker Hub

Provide scheduling attributes' getter and setter

This library needs to make public at least two functions that allow users to get or set a process scheduling attributes.

  • Getter function
  • Setter function
  • Build the static library with Makefile

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.