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

chore(docker): add OCI annotations as labels to the Docker images #718

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ COPY dist/kubectl /app/
COPY static /app/static
COPY config $HOME/.docker/

LABEL io.portainer.agent true
LABEL io.portainer.agent true \
org.opencontainers.image.title="Portainer Agent" \
org.opencontainers.image.description="The Portainer agent" \
org.opencontainers.image.source="https://github.com/portainer/agent" \
org.opencontainers.image.vendor="Portainer.io"

ENTRYPOINT ["./agent"]
6 changes: 5 additions & 1 deletion build/linux/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ COPY dist/kubectl /app/
COPY static /app/static
COPY config $HOME/.docker/

LABEL io.portainer.agent true
LABEL io.portainer.agent true \
org.opencontainers.image.title="Portainer Agent" \
org.opencontainers.image.description="The Portainer agent" \
org.opencontainers.image.source="https://github.com/portainer/agent" \
org.opencontainers.image.vendor="Portainer.io"

ENTRYPOINT ["./agent"]