Skip to content

feat(docker): add build arg VERNEMQ_TARBALL_URL for custom binary distro#426

Open
niecore wants to merge 1 commit into
vernemq:masterfrom
niecore:docker-build-tarball-url-arg
Open

feat(docker): add build arg VERNEMQ_TARBALL_URL for custom binary distro#426
niecore wants to merge 1 commit into
vernemq:masterfrom
niecore:docker-build-tarball-url-arg

Conversation

@niecore

@niecore niecore commented Jul 16, 2026

Copy link
Copy Markdown

To be EULA compliant a own VerneMQ build has to be used. This feature was introduced in #83 but later removed in #172. This PR adds docker build arguments VERNEMQ_TARBALL_URL that allow users to configure an own binary package.

In addition the curl download has been replaced with the docker native ADD command which resolves urls, and caches the downloaded binary. This even allows to use local builds without using an http download by setting VERNEMQ_TARBALL_URL to an local file.

The architecture of the download is evaluated by dockers TARGETARCH argument. This can be used to build for multiple plattforms i.e. by setting --platform linux/amd64,linux/arm64 as build arguments.

To be EULA compliant a own VerneMQ build has to be used. This feature
was introduced in vernemq#83
but later removed in vernemq#172.
This PR adds docker build arguments `VERNEMQ_TARBALL_URL`
that allow users to configure an own binary package.

In addition the curl download has been replaced with the docker
native `ADD` command which resolves urls, and caches the downloaded
binary. This even allows to use local builds without using an http
download by setting `VERNEMQ_TARBALL_URL` to an local file.

The architecture of the download is evaluated by dockers `TARGETARCH`
argument. This can be used to build for multiple plattforms i.e. by
setting `--platform linux/amd64,linux/arm64` as build arguments.
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.

1 participant