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

Build cjdns deb packages for amd64 and armhf #8

Merged
merged 2 commits into from
Feb 1, 2018
Merged

Conversation

benhylau
Copy link
Owner

This builds amd64 and armhf deb packages for cjdns, partially addressing tomeshnet/mesh-orange#4. The armhf binary is built in a resin/armv7hf-debian:stretch-based docker container run with qemu ARM emulation.

Both cjdns and yggdrasil are bundled into mesh-orange images for now, until #3 feature is complete.

Memory consumption of both the vagrant and docker can probably use some tuning.

mkdir -p $(BUILD_DIR)/docker/build
cd $(BUILD_DIR)/docker; \
sudo docker build -t cjdns-armv7hf . # Build armv7hf docker container
sudo docker run --memory="2g" --memory-swap="4g" -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static -v $(BUILD_DIR)/docker/build:/tmp/cjdns cjdns-armv7hf # Build binary in emulated ARM docker
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the time the compilation just hangs, and the container's CPU % and MEM USAGE in docker stats drop to zero. Not sure if related to memory but adding these seem to be the only way to get things working at all so far. cjdns should not need this much resource to compile though.

@benhylau benhylau merged commit ddc9a55 into master Feb 1, 2018
@benhylau benhylau deleted the cjdns-deb branch February 1, 2018 00:27
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

Successfully merging this pull request may close these issues.

1 participant