redpanda-data / redpanda-data/connect

Dockerfile: copy redpanda-connect binary into /usr/sbin folder instead of root (/) for CI/CD usage

Open
#3,076 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bughancement needs investigation
Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

Trying to use the redpanda-connect official Docker image in a CI/CD pipeline in GitLab (for linting and unit-testing purposes), however since the redpanda-connect binary is not in a folder of $PATH I cannot execute it:

From within a shell of redpanda-connect container:

/ $ ls
bin               dev               home              lib64             redpanda-connect  sys               usr
connect.yaml      etc               lib               proc              root              tmp               var
/ $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/ $ which redpanda-connect
/ $ 

It would be greatly appreciated if the Dockerfile would be changed to copy the binary into /usr/sbin (or any other folder in $PATH (as well as modifying the entrypoint to ENTRYPOINT ["redpanda-connect"]).

I don't think this would introduce a breaking change?

Contributor guide

Open the contributing guide

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 the Dockerfile and the current container entrypoint, then build the official image to check where redpanda-connect is placed and how it is invoked. Done means the binary is available through the container's PATH and the requested entrypoint behavior works for CI/CD use.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile
Domain
ci-cd, devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.