Skip to content

Create Dockerfile to serve oadp-cli binaries#72

Merged
Joeavaikath merged 1 commit intomigtools:oadp-devfrom
Joeavaikath:binary-dockerfile
Oct 24, 2025
Merged

Create Dockerfile to serve oadp-cli binaries#72
Joeavaikath merged 1 commit intomigtools:oadp-devfrom
Joeavaikath:binary-dockerfile

Conversation

@Joeavaikath
Copy link
Copy Markdown
Contributor

@Joeavaikath Joeavaikath commented Oct 22, 2025

Why the changes were made

Creates a Dockerfile that cross-builds and serves the binaries on an image

This is the first step towards having a proper release image for these binaries that will be used by ConsoleCLIDownload to serve them

How to test the changes made

Run a podman build and run, see the server with the tarballs

Signed-off-by: Joseph <jvaikath@redhat.com>
@kaovilai
Copy link
Copy Markdown
Member

Does this serve just the tar.gz? Can you download ready to execute binary directly?

@Joeavaikath
Copy link
Copy Markdown
Contributor Author

They would have to decompress it first.
732 mb on cluster vs 320 mb
Space efficient?

@kaovilai
Copy link
Copy Markdown
Member

Sure that's fine. It would also be cool if the server itself when serving a URL is actively decompressing and serving the decompressed binary, but that might get too complicated for an initial code.

@kaovilai
Copy link
Copy Markdown
Member

I'm sure our customers are familiar with tar archive

@Joeavaikath Joeavaikath merged commit 634e10f into migtools:oadp-dev Oct 24, 2025
10 checks passed
Comment thread Dockerfile.download
rm -rf /root/.cache/go-build && \
rm -rf /go/pkg

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest

@kaovilai kaovilai mentioned this pull request Oct 26, 2025
@Joeavaikath Joeavaikath deleted the binary-dockerfile branch February 19, 2026 15:11
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.

Have a dockerfile with oadp-cli tarballs

3 participants