Skip to content

supermock/n2n-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supernode Docker Image (Image based on Debian)

About the project

This repository is just a project builder (https://github.com/ntop/n2n), any problem should be reported to the source repository unless it is about building it. I have no link with the owners of the code I just set up a constructor, which also makes a supernode container available.

Note: This build system was merged with the official n2n repository, but it was updated today 04/02/2020, so that you can build externally to the official n2n repository.

Running the supernode image

$ docker run --rm -d -p 5645:5645/udp -p 7654:7654/udp supermock/supernode:[TAGNAME]

Docker registry

Documentation

1. Build image and binaries

Use make command to build the images. Before starting the arm64v8 or arm32v7 platform build, you need to run this registry, so you can perform a cross-build. Just follow the documentation: https://github.com/multiarch/qemu-user-static/blob/master/README.md

$ N2N_COMMIT_HASH=[(optional)] N2N_VERSION=[sample 2.4, (required)] TARGET_ARCHITECTURE=[arm64v8, arm32v7, x86_64, (nothing to build all architectures)] make platforms

2. Push it

Use make push command to push the image, TARGET_ARCHITECTURE is necessary.

$ N2N_VERSION=[sample 2.4, (required)] TARGET_ARCHITECTURE=[arm64v8, arm32v7, x86_64] make push

3. Test it

Once the image is built, it's ready to run:

$ docker run --rm -d -p 5645:5645/udp -p 7654:7654/udp supermock/supernode:[TAGNAME]

Contributions

Just download the code make your change and send a pull request explaining the purpose if it is a bug or an improvement and etc... After this will be analyzed to be approved. Note: If it is a major change, open a issue explaining what will be done so you do not waste your precious time developing something that will not be used. Make yourself at home!

License

MIT

About

Constructs the n2n binaries and creates a container for the supernode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published