https://github.com/robotpy/raspbian-cross-docker
Docker image for cross-compiling on raspbian
https://github.com/robotpy/raspbian-cross-docker
docker-image
Last synced: over 1 year ago
JSON representation
Docker image for cross-compiling on raspbian
- Host: GitHub
- URL: https://github.com/robotpy/raspbian-cross-docker
- Owner: robotpy
- Created: 2021-01-02T01:11:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-21T07:52:38.000Z (over 3 years ago)
- Last Synced: 2025-01-16T07:16:14.555Z (over 1 year ago)
- Topics: docker-image
- Language: Dockerfile
- Size: 16.6 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
raspbian-cross-docker
=====================
A docker image to be used for cross-compiling packages for the Raspbian
platform.
Usage
=====
Note: these instructions should work on OSX and Linux
Build the container
-------------------
If you want to just download our docker image from docker hub, you can skip
this step. This step will take a *long* time.
$ make all
Use the container
-----------------
Run the docker image (note that we map the current directory to the `/v`
directory):
$ docker run --rm -it -v $(pwd):/v robotpy/raspbian-cross-ubuntu:2023.4-py39-arm32
$ docker run --rm -it -v $(pwd):/v robotpy/raspbian-cross-ubuntu:2023.4-py39-aarch64
Once you're in the container, source the virtual environment and you can now
cross-compile python packages!
# source /build/venv/bin/activate
(use pip as normal)
For example, to create a wheel for `pyyaml`, you could do:
(cross) root@container:/# pip wheel pyyaml
Author
======
Many thanks to @DirtyJerz for putting the initial version of this together!