Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- image labels:
10+
- `org.opencontainers.image.revision` (git commit hash via build arg)
11+
- `org.opencontainers.image.source` (repo url)
12+
- `org.opencontainers.image.title`
13+
814
### Changed
915
- docker-compose: use custom container name "ipfs" instead of auto-generated "\[PROJECT_NAME\]\_ipfs\_1"
1016
- docker-compose: read-only root filesystem

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ EXPOSE 5001/tcp
5151
# http gateway
5252
EXPOSE 8080/tcp
5353
CMD ["ipfs", "daemon"]
54+
55+
# https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
56+
ARG REVISION=
57+
LABEL org.opencontainers.image.title="go-ipfs" \
58+
org.opencontainers.image.source="https://github.com/fphammerle/docker-ipfs" \
59+
org.opencontainers.image.revision="$REVISION"

0 commit comments

Comments
 (0)