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

VsCode task runner with 1 click FC Docker image builder and compiling script. #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

stuckatmarine
Copy link
Member

Readme in comp5-software\OnPod\FlightComputer\ with instructions.
Readme in comp5-software\OnPod\FlightComputer\SetupScriptPlusDockerfile\ with lower-level docker instructions if need be.

Features:

  • VsCode task runner added, clickable buttons in the bottom blue taskbar, configurable in .vscode/tasks.json.
  • Echo command present to test task runner.
  • Task command added to build the pi docker image, should be easily buildable for everybody with 1 click ~15mins first go, ~3 seconds once the big stuff is cached and not changed.
  • Task command added to compile a hello world program in the image and run it, with Hello Paradigm!! message for confirmation

Copy link
Member

@ShaneTWilliams ShaneTWilliams left a comment

Choose a reason for hiding this comment

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

Ready to go. Want to get someone else to go through it too?

@stuckatmarine
Copy link
Member Author

Ready to go. Want to get someone else to go through it too?

I'll leave it up for one of the windows or linux os guys to also confirm good, just to rule out an edge case.

@ShaneTWilliams
Copy link
Member

Ready to go. Want to get someone else to go through it too?

I'll leave it up for one of the windows or linux os guys to also confirm good, just to rule out an edge case.

Colton and Daniel tried on Sunday but they both ran into some issues that I don't think were related to your file. When they get that sorted out they'll let you know

@Jonathanttaylor
Copy link
Collaborator

I tried it on my mac it worked with no issues.

I also tried it on ubuntu:16.04 and got the error below.
standard_init_linux.go:211: exec user process caused "exec format error"

The only fix I could find for the error is doing the following:
sudo apt install qemu-user-static
add the line "Copy qemu-arm-static /usr/bin" after the "From raspbian/stretch:latest" step in the Dockerfile
Then either:
cp /usr/bin/qemu-arm-static .
docker build -t pi_fc:v1 .
Or
docker build -t pi_fc:v1 -f Dockerfile /usr/bin

The website where I found the fix: https://ownyourbits.com/2018/06/27/running-and-building-arm-docker-containers-in-x86/

After implementing this fix it worked the same as it did on my Mac

@stuckatmarine
Copy link
Member Author

@Jonathanttaylor If you have a clean way of fixing the linux issue and don't mind/ have time to implement it go ahead. I won't have a chance to look at it again for a couple weeks now.

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.

3 participants