hook-s3c / docker-tor-static-armel

Builds an ARM static binary (armel)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-tor-static-armel

Builds a tor static binary for ARM (armel)

This was painful to set up, you will find a lot of broken instructions, stackoverflows and forum posts from years back with questions and no solutions.

This is self-contained (in a container), so to build the binary simply run;

# get the source
git clone https://github.com/hook-s3c/docker-tor-static-armel

# build the image
docker build --tag tor-static:armel .

# copy the binary out of the image 
docker run --rm --entrypoint "/bin/bash" -v $(pwd)/output:/output tor-static:armel -c "cp /tor-0.3.3.10/install/bin/tor /output/tor"

  • The binary should appear in the output folder.
  • The only dependency is having Docker installed on your system.
  • If you have multiple cores, try docker build --cpuset-cpus=0,1,2 --tag tor-static:armel . instead.

You're welcome.

Shout out to the original author who did a half-assed job and never published or tested the source to their Docker Hub container, you made my evening hell.

Resources

prebuilt static binaries already out there, some with sources (YMMV / use at your own risk);

A couple of awesome tutorials for the uninitiated (like me);

About

Builds an ARM static binary (armel)


Languages

Language:Dockerfile 100.0%