Giter Club home page Giter Club logo

sonic-example-extension's Introduction

Example SONiC Application Extension

This repository contains an example SONiC compatible Docker image - a SONiC Package.

Prerequisites

You need to have j2cli and docker installed.

Build SONiC SDK docker images using sonic-buildimage repository:

$ git clone https://github.com/azure/sonic-buildimage
$ cd sonic-buildimage
$ make init
$ make configure PLATFORM=generic
$ make target/sonic-sdk.gz target/sonic-sdk-buildenv.gz

Load into docker:

$ docker load < target/sonic-sdk.gz
$ docker load < target/sonic-sdk-buildenv.gz

Build

To build SONiC Package:

$ make

In case you want to override version pass it as parameter to make:

$ make VERSION=1.0.0

Publish via DockerHub

Login to your DockerHub user account using docker login command and push the image to your repository.

docker tag cpu-report:1.0.0 ${DOCKERHUB_USER}/cpu-report:1.0.0
docker push ${DOCKERHUB_USER}/cpu-report:1.0.0

Install on the switch

Add repository entry to the database:

admin@sonic:~$ sudo sonic-package-manager repository add cpu-report \
    ${DOCKERHUB_USER}/cpu-report \
    --description="SONiC CPU report feature" \
    --default-reference=1.0.0

Install the package:

admin@sonic:~$ sudo sonic-package-manager install cpu-report

sonic-example-extension's People

Contributors

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