vexxhost / vexxhost/docker-openvswitch

`tini` binary sourced in Dockerfile is not architecture-specific

Open Beginner friendly
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
1
Avg merge
1m
Merged PRs (30d)
4

Description

tini is added directly to the Docker image at build time by URL reference: https://github.com/vexxhost/docker-openvswitch/blob/main/Dockerfile#L88

However, that URL is not architecture-specific, and seems to point to the amd64 release as a default. The result is that arm64-architecture container images are built and can be pulled and run on arm64 nodes, but the invocation of tini fails with:

openvswitch-vswitchd exec /tini: exec format error

There are amd64 and arm64 release variants available in the tini releases repo. Specifying $TARGETARCH as a component of the url (eg https://github.com/krallin/tini/releases/download/v0.19.0/tini-${TARGETARCH}) should suffice to build a working container image for both amd64 and arm64, along with any other architectures that this image is built for that are also built for by tini.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect Dockerfile line 88 and the surrounding image-build arguments first. Compare the current fixed tini URL with the architecture-specific release variants and verify builds for amd64 and arm64. Done means the resulting images can invoke /tini successfully on their corresponding architectures without an exec format error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.