Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add netcat openbsd image #331

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

tuananh
Copy link
Contributor

@tuananh tuananh commented Mar 8, 2023

currently, the scaffolding chart uses trillian which rely on toolbelt/nc image. that image is amd64 only which then make the scaffolding chart requires amd64 node.

https://github.com/sigstore/helm-charts/blob/a80c33c8ca6f3c37d9b1dcb4dab14ca625f77831/charts/trillian/values.yaml#L160

Fixes:
Related:

Pre-review Checklist

  • IMPORTANT: 'image-request' tag has been applied if this PR is adding any images, including new versions or variants

For new image PRs only

If you have an apko.yaml file in this PR you need to follow this checklist, otherwise feel free to remove.

  • Image is marked experimental or stable as appropriate

  • The last two minor versions are available

  • The latest tag points to the newest stable version

  • There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')

  • The image runs as nonroot and GID/UID are set to 65532

    • Alternatively the username and GID/UID may be a commonly used one from the ecosystem e.g: postgres
    • See above for exceptions to nonroot rule
  • ENTRYPOINT

    • For applications/servers/utilities call main program with no arguments e.g. [redis-server]
    • For base images leave empty
    • For dev variants set to entrypoint script that falls back to system
  • CMD:

    • For server applications give arguments to start in daemon mode (may be empty)
    • For utilities/tooling bring up help e.g. –help
    • For base images with a shell, call it e.g. [/bin/sh]
  • Consider where and how the image deviates from popular alternatives. Is there a good reason and is it documented?

  • Add annotations e.g:

      annotations:
        "org.opencontainers.image.authors": "Chainguard Team https://www.chainguard.dev/"
        "org.opencontainers.image.url": https://edu.chainguard.dev/chainguard/chainguard-images/reference/busybox/ #use the academy site here
        "org.opencontainers.image.source": https://github.com/chainguard-images/images/tree/main/images/bazel #use github here
    
  • Check if environment variables are needed e.g. to set data locations

  • Ensure the image responds to SIGTERM

    • docker kill $(docker run -d --rm cgr.dev/chainguard/nginx)
  • Documentation. Let's make this excellent. Include usage example.

  • Error logs write to stderr and normal logs to stdout. DO NOT write to file.

  • Include tests, at the very least a basic smoke test.

@tuananh tuananh requested a review from a team as a code owner March 8, 2023 14:09
@tuananh tuananh requested review from jonjohnsonjr and removed request for a team March 8, 2023 14:09
@tuananh
Copy link
Contributor Author

tuananh commented Mar 8, 2023

Not sure how to resolve this error in CI https://github.com/chainguard-images/images/actions/runs/4365182854/jobs/7633460985

@jdolitsky
Copy link
Contributor

@tuananh - you just need to rebase on top of main. You ran into #204

Signed-off-by: Tuan Anh Tran <me@tuananh.org>
@jdolitsky jdolitsky merged commit 012bfbd into chainguard-images:main Mar 13, 2023
developer-guy pushed a commit to Dentrax/images that referenced this pull request Feb 12, 2024
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
Co-authored-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
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