Git Product home page Git Product logo

cynet's Introduction

Summary

CYNet is a wrapper project around the manufacturer's driver for CYNet cameras(New YFOSC controller of 2.4m Telescope. YunNan OBS). Used by libccd as part of the LCO instrument stack.

Dependencies

Build

cynet is built using Maven and the Nar plugin. The useful products are:

  • rpm (architecture specific) that contains a shared object to be installed to /lco/libccd

Use the buildenv project to build for a target host

The buildenv project provides wrappers around jenkins build swarm nodes allowing a developer to test compilations or to build one-off projects such as an RPM for a target machine.

Steps:

  • check out buildenv
  • build your target environment
  • build artefact for target

So to build the soem rpm for centos7:

$ cd ~/
$ git clone [email protected]:LCOGT/buildenv.git
$ cd buildenv
$ ./makeenv c7
$ cd ~/workspace/cynet
$ ~/buildenv/buildenv c7
$ mvn clean install

Replace c7 with r8 for rocky 8.

Manual Build & Deploy

Parent Project

Many LCO projects share a common parent project to define global dependencies. The parent project is https://github.com/LCOGT/lcogt-pom and must be built first. Follow the Manual Build instructions in the project README.

Manual Build

mvn clean install

Manual Deploy

sudo yum localinstall target/cynet-*.rpm 

Deploy

The rpm must be added to the LCO yum repository, so it can be installed by puppet

  • Find buildcentos6-32 and buildcentos7-64 build logs in Jenkins, e.g. http://buildsba:8080/job/cynet/
  • View console log for both builds
  • Fine rpm generation line on last page, e.g. Writing target file: /home/eng/jenkins/workspace/cynet/label/buildcentos6-32/target/cynet-*.rpm
  • scp rpm file to fsfs:/data/repos/lcogt/6 and fsfs:/data/repos/lcogt/7 (as root)
  • run lcogt.bash script in fsfs:/data/repos to add to yum (as root)

Post deploy

The instrument agents in End-to-End tests use https://github.com/LCOGT/instrument-base-image to generate the base docker image. This will need to be rebuilt when a new version of cynet is generated.

Additional information

The cynet driver manual can be found here

cynet's People

Contributors

lunabbot avatar

Watchers

 avatar  avatar  avatar  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.