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

Add crossplatform docker builds #283

Merged
merged 2 commits into from
Apr 5, 2021
Merged

Conversation

Ullaakut
Copy link
Owner

@Ullaakut Ullaakut commented Apr 5, 2021

Goal of this PR

This PR adds crossplatform Docker builds to Cameradar, in order to make it possible to run it on more kinds of hardware, and especially single-board computers running on armv7 since there was demand for it.

It does so by adding a Magefile under tools/xplatform-docker-build, which has two targets:

  • mage build -- builds the following docker images
    • "linux/amd64": "ullaakut/cameradar:amd64"
    • "linux/386": "ullaakut/cameradar:386"
    • "linux/arm64": "ullaakut/cameradar:arm64"
    • "linux/arm/v7": "ullaakut/cameradar:armv7"
  • mage publish -- publishes those images on GitHub Packages and Docker Hub (can't be done by anyone else than a Cameradar maintainer)

How to test it

Run the mage build target. You will need to install mage on your machine if you do not already have it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant