Giter VIP home page Giter VIP logo

sonic-buildimage-new-docker-example-http's Introduction

sonic-buildimage-new-docker-example-http

Example to start Web server in Azure sonic-buildimage

docker-bigfoot - container for web server

make target/docker-bigfoot.gz



Inside SONIC target board:-
~# docker load -i /home/admin/docker-bigfoot.gz
2c995a2087c1: Loading layer [==================================================>]  105.6MB/105.6MB
5cf472718fca: Loading layer [==================================================>]  81.39MB/81.39MB
e993f69ad2a5: Loading layer [==================================================>]  100.9MB/100.9MB
3c9ea5d5c0da: Loading layer [==================================================>]  22.97MB/22.97MB
Loaded image: docker-bigfoot:latest



~# bigfoot-docker-service.sh start
Creating new bigfoot container with HWSKU db98cx8580_32cd

39b224f8bf05ecf28383d97af9dec3a5dadcad0487b9e75a5beac7098d508099
bigfoot

~# docker ps
CONTAINER ID        IMAGE                             COMMAND                  CREATED              STATUS              PORTS               NAMES
39b224f8bf05        docker-bigfoot:latest             "/usr/bin/docker_ini…"   About a minute ago   Up 48 seconds                           bigfoot

~# docker exec -it bigfoot bash
/# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 17:37 pts/0    00:00:00 /usr/bin/python /usr/bin/supervisord
root        11     1  0 17:37 pts/0    00:00:00 python /usr/bin/supervisor-proc-exit-listener
root        15     1  0 17:37 pts/0    00:00:00 /usr/sbin/rsyslogd -n
root        44     1  0 17:37 ?        00:00:00 /usr/sbin/apache2 -k start
www-data    47    44  0 17:37 ?        00:00:00 /usr/sbin/apache2 -k start
www-data    48    44  0 17:37 ?        00:00:00 /usr/sbin/apache2 -k start
www-data    49    44  0 17:37 ?        00:00:00 /usr/sbin/apache2 -k start
root       106     0  0 17:38 pts/1    00:00:00 bash
root       111   106  0 17:38 pts/1    00:00:00 ps -ef



# Testing:
# Get the SONIC counters from the web
http://<BoardIP>/
http://<BoardIP>/cgi-bin/bigfoot-counter
http://<BoardIP>/cgi-bin/bigfoot-counter-db

sonic-buildimage-new-docker-example-http's People

Contributors

antony-rheneus avatar

Watchers

 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.