Skip to content

Use busybox in app container to enable easy copy#6

Merged
prasanna-anchorage merged 2 commits into
mainfrom
rno/busybox-in-package
Jun 25, 2025
Merged

Use busybox in app container to enable easy copy#6
prasanna-anchorage merged 2 commits into
mainfrom
rno/busybox-in-package

Conversation

@r-n-o
Copy link
Copy Markdown
Collaborator

@r-n-o r-n-o commented Jun 25, 2025

Convenience to enable init containers. I'm trying to write a kubernetes manifest which grabs the init binary from this image, and because there's no sh/utils I'd have to write a wrapper image to do this. Easy enough to include busybox here I think!

Here's what the init container looks like for the record:

initContainers:
  - name: pivot-extractor
    image: ghcr.io/anchorageoss/parser_app:$TAG@sha256:$SHA
    command: ["/bin/sh", "-c"]
    args:
      - cp /parser_app /pivot-binaries/visual_parser_app
    volumeMounts:
      - name: pivot-binaries
        mountPath: /pivot-binaries

How I tested this change

Newly built image works!

docker run -ti ghcr.io/anchorageoss/parser_app:latest@sha256:b9b21a09ebb6d9e4325e6c5e005305280afb8b990e4ab8cc1a636d974c34c382 -c "which cp"
/usr/bin/cp

@prasanna-anchorage prasanna-anchorage merged commit 6049a7f into main Jun 25, 2025
3 checks passed
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.

2 participants