Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
a2185875
Commit
a2185875
authored
4 years ago
by
Daniel Wiesenberg
Committed by
Daniel Wiesenberg
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change labels from label-schema to opencontainer.image
parent
624ff08a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+16
-12
16 additions, 12 deletions
Dockerfile
with
16 additions
and
12 deletions
Dockerfile
+
16
−
12
View file @
a2185875
...
...
@@ -47,21 +47,25 @@ RUN cargo build --release --color=always
# runtime image/container
FROM
alpine:3.12
ARG
BUILD_D
ATE
ARG
CRE
ATE
D
ARG
VERSION
ARG
GIT_REF=HEAD
# Labels inspired by this medium post:
# https://medium.com/@chamilad/lets-make-your-docker-image-better-than-90-of-existing-ones-8b1e5de950d
LABEL
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="Conduit" \
org.label-schema.version=${VERSION} \
org.label-schema.vendor="Conduit Authors" \
org.label-schema.description="A Matrix homeserver written in Rust" \
org.label-schema.url="https://conduit.rs/" \
org.label-schema.vcs-ref=$GIT_REF \
org.label-schema.vcs-url="https://git.koesters.xyz/timo/conduit.git" \
ord.label-schema.docker.build="docker build . -t conduit:latest --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml)"\
# Labels according to https://github.com/opencontainers/image-spec/blob/master/annotations.md
# including a custom label specifying the build command
LABEL
org.opencontainers.image.created=${CREATED} \
org.opencontainers.image.authors="Conduit Contributors, weasy@hotmail.de" \
org.opencontainers.image.title="Conduit" \
org.opencontainers.image.version=${VERSION} \
org.opencontainers.image.vendor="Conduit Contributors" \
org.opencontainers.image.description="A Matrix homeserver written in Rust" \
org.opencontainers.image.url="https://conduit.rs/" \
org.opencontainers.image.revision=$GIT_REF \
org.opencontainers.image.source="https://git.koesters.xyz/timo/conduit.git" \
org.opencontainers.image.documentation.="" \
org.opencontainers.image.licenses="AGPL-3.0" \
org.opencontainers.image.ref.name="" \
org.label-schema.docker.build="docker build . -t conduit:latest --build-arg CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml)"\
maintainer="weasy@hotmail.de"
# Change some Rocket.rs default configs. They can then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment