StarlingUAS / ProjectStarling

BRL Flight Arena Infrastructure 2.0
Other
17 stars 3 forks source link

Better build system #12

Closed rob-clarke closed 3 years ago

rob-clarke commented 3 years ago

At the moment, we are using makefiles to automate building the docker images. The makefiles tag the images with a "local" name. To enable pushing to hub.docker.com, we should tag them with the full name:

starling-awesome-image -> uobflightabstarling/starling-awesome-image

We may also want to look at automatic version tagging once things get a bit more stable to avoid everything being on :latest

rob-clarke commented 3 years ago

An initial start at a build script. https://github.com/UoBFlightLab/ProjectStarling/tree/build-scripts

rob-clarke commented 3 years ago

May be of interest: https://www.henry.wang/2019/12/05/arm-dockerhub.html

rob-clarke commented 3 years ago

docker buildx bake appears to be the way forward. I've got a GitHub workflow working using it that pushes to DockerHub. The build script has also been updated to use bake for local image builds. However, I'm running into a bug at the moment with the local arm64 build of controller-base when using rosdep to install the dependencies of mavros_msgs:

subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.