Change labels from label-schema to opencontainer.image
This commit is contained in:
		
							parent
							
								
									624ff08a07
								
							
						
					
					
						commit
						a21858758c
					
				
					 1 changed files with 16 additions and 12 deletions
				
			
		
							
								
								
									
										28
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								Dockerfile
									
									
									
									
									
								
							|  | @ -47,21 +47,25 @@ RUN cargo build --release --color=always | ||||||
| # runtime image/container | # runtime image/container | ||||||
| FROM alpine:3.12 | FROM alpine:3.12 | ||||||
| 
 | 
 | ||||||
| ARG BUILD_DATE | ARG CREATED | ||||||
| ARG VERSION | ARG VERSION | ||||||
| ARG GIT_REF=HEAD | ARG GIT_REF=HEAD | ||||||
| 
 | 
 | ||||||
| # Labels inspired by this medium post: | # Labels according to https://github.com/opencontainers/image-spec/blob/master/annotations.md | ||||||
| # https://medium.com/@chamilad/lets-make-your-docker-image-better-than-90-of-existing-ones-8b1e5de950d | # including a custom label specifying the build command | ||||||
| LABEL org.label-schema.build-date=${BUILD_DATE} \ | LABEL org.opencontainers.image.created=${CREATED} \ | ||||||
|       org.label-schema.name="Conduit" \ |       org.opencontainers.image.authors="Conduit Contributors, weasy@hotmail.de" \ | ||||||
|       org.label-schema.version=${VERSION} \ |       org.opencontainers.image.title="Conduit" \ | ||||||
|       org.label-schema.vendor="Conduit Authors" \ |       org.opencontainers.image.version=${VERSION} \ | ||||||
|       org.label-schema.description="A Matrix homeserver written in Rust" \ |       org.opencontainers.image.vendor="Conduit Contributors" \ | ||||||
|       org.label-schema.url="https://conduit.rs/" \ |       org.opencontainers.image.description="A Matrix homeserver written in Rust" \ | ||||||
|       org.label-schema.vcs-ref=$GIT_REF \ |       org.opencontainers.image.url="https://conduit.rs/" \ | ||||||
|       org.label-schema.vcs-url="https://git.koesters.xyz/timo/conduit.git" \ |       org.opencontainers.image.revision=$GIT_REF \ | ||||||
|       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)"\ |       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" |       maintainer="weasy@hotmail.de" | ||||||
| 
 | 
 | ||||||
| # Change some Rocket.rs default configs. They can then | # Change some Rocket.rs default configs. They can then | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue