-
Notifications
You must be signed in to change notification settings - Fork 2
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
Docker-based cross-compilation #23
base: main
Are you sure you want to change the base?
Conversation
Hmm, what is the issue you're tackling? |
The ultimate goal I'm looking to solve is cross-compilation for the RPi (using docker). I was debugging some issues and noticed that a directory called So the good news is that the docker builds seem to work, in the sense that I can run the compiler in the docker environment! The bad news is that I don't know how to get the built artifacts into the dist directory. (Usually when I build a PEX binary it will land in |
cb95c7d
to
ddc034f
Compare
d50bea1
to
48b68cf
Compare
Something weird with the setup? Or does this require manually building the image locally first? |
Ok, this may take me a little bit to figure out. We use the docker environment specified in a docker image build rule, and I thought it would automatically build the environment—that doesn't seem to be the case. I can definitely locally build the docker file and then it runs, but I'll need to read up on docker environments to really understand what's going on. |
@@ -1,11 +1,12 @@ | |||
[GLOBAL] | |||
pants_version = "2.21.1" | |||
pants_version = "2.23.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This is for testing to see if the issues are fixed in the current stable; will move to a different PR before this is merged.
This PR adds an example showing cross compilation to a raspberry pi using a Docker environment.