Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to build debug version #10

Open
ondrej-fabry opened this issue Feb 1, 2018 · 3 comments
Open

Option to build debug version #10

ondrej-fabry opened this issue Feb 1, 2018 · 3 comments

Comments

@ondrej-fabry
Copy link
Contributor

ondrej-fabry commented Feb 1, 2018

Currently you are building just release version of VPP. However it is often useful to run debug version of VPP. Could you add some option to build debug version as well?

The make target for building debug version is make build and to build .deb packages for debug version you need to run cd build-root && make PLATFORM=vpp TAG=vpp_debug install-deb.

@tiewei
Copy link
Contributor

tiewei commented Feb 1, 2018

could you provide more details about what needs to be done ? I couldn't find an example of this command used in vpp-agent or contiv-vpp.
https://github.com/ligato/vpp-agent/blob/pantheon-dev/docker/dev_vpp_agent/Dockerfile#L21-L41
https://github.com/contiv/vpp/blob/master/docker/ubuntu-based/dev/Dockerfile#L23-L40

@ondrej-fabry
Copy link
Contributor Author

ondrej-fabry commented Feb 5, 2018

We are not doing it this way at the moment. We were just planning to and since you started working on this we are considering using this as base image in the future.

At the moment we workaround this by executing VPP debug executable right from build-root:
vpp-agent: symlink, supervisord
contiv/vpp: supervisord

The reason why I'm suggesting to add some option to build .deb packages for debug version of VPP is that with this method we can use VPP in debug mode on some production images without compromising source code or whole VPP build.

@ondrej-fabry
Copy link
Contributor Author

ondrej-fabry commented Mar 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants