Skip to content

Add Dockerfile & ghcr container build workflow#94

Open
spwoodcock wants to merge 4 commits intoOpenDroneMap:masterfrom
spwoodcock:build/docker
Open

Add Dockerfile & ghcr container build workflow#94
spwoodcock wants to merge 4 commits intoOpenDroneMap:masterfrom
spwoodcock:build/docker

Conversation

@spwoodcock
Copy link
Copy Markdown
Member

  • I wanted to give Obj2Tiles a whirl to convert ODM .obj --> 3d tiles (to view in a browser).
  • In order to do so, and without installing dotnet on my machine, I decided to create a Dockerfile and build a container image.
  • I have tested the image locally and it works.
  • Also added a ghcr publishing workflow that will build a :master tagged image on each push, in addition to tagged :v1.4.0 tag when a new tag is pushed.

@HeDo88TH HeDo88TH self-assigned this May 7, 2026
@HeDo88TH HeDo88TH added the enhancement New feature or request label May 7, 2026
@HeDo88TH
Copy link
Copy Markdown
Collaborator

HeDo88TH commented May 7, 2026

Thanks for the PR, I will review it asap.
Btw we have got binary releases for every operating system/arch so you don't actually need to have dotnet installed to run obj2tiles 👍

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds containerization support for Obj2Tiles so the CLI can be run without installing .NET locally, and introduces a GitHub Actions workflow to build/push a multi-arch image to GHCR on pushes/tags.

Changes:

  • Add a multi-stage Dockerfile that publishes a self-contained (single-file, trimmed) Obj2Tiles binary and runs it in a minimal runtime image.
  • Add a GitHub Actions workflow to build and push linux/amd64 + linux/arm64 images to GHCR using Buildx with GHA caching.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
Dockerfile Builds and publishes the Obj2Tiles CLI into a container image.
.github/workflows/image.yml Builds/pushes a multi-arch GHCR image on pushes to master and on tags.

Comment thread Dockerfile Outdated
Comment thread .github/workflows/image.yml Outdated
Comment thread .github/workflows/image.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@spwoodcock
Copy link
Copy Markdown
Member Author

Thanks for the PR, I will review it asap. Btw we have got binary releases for every operating system/arch so you don't actually need to have dotnet installed to run obj2tiles 👍

Ah of course, thanks!

Still, I'm planning on running this in an automated way to generate 3d tiles, and would orchestrate the generation via container Jobs in Kubernetes. A container image would be super helpful 😄

Copilot actually suggested 3 reasonable things - fixing

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants