From 15fd1db27fea3b46fabfc6434578cd3a66fd255e Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Fri, 14 Oct 2016 15:26:19 +0100 Subject: [PATCH] add version layer information --- Dockerfile | 5 +++++ README.md | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5654890..34e3ef2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ FROM lsiobase/alpine MAINTAINER sparklyballs +# set version label +ARG BUILD_DATE +ARG VERSION +LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" + # environment settings ENV HOME="/config" diff --git a/README.md b/README.md index ecb5eb1..8ea4ace 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f * [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation! # linuxserver/syncthing -[![](https://images.microbadger.com/badges/image/linuxserver/syncthing.svg)](http://microbadger.com/images/linuxserver/syncthing "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/syncthing.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/syncthing.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-syncthing)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-syncthing/) +[![](https://images.microbadger.com/badges/version/linuxserver/syncthing.svg)](https://microbadger.com/images/linuxserver/syncthing "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/syncthing.svg)](http://microbadger.com/images/linuxserver/syncthing "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/syncthing.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/syncthing.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-syncthing)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-syncthing/) [hub]: https://hub.docker.com/r/linuxserver/syncthing/ Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet. @@ -67,8 +67,17 @@ You can find some of the best documentation available on the web at [docs.syncth * Shell access whilst the container is running: `docker exec -it syncthing /bin/bash` * To monitor the logs of the container in realtime: `docker logs -f syncthing` +* container version number + +`docker inspect -f '{{ index .Config.Labels "build_version" }}' syncthing` + +* image version number + +`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/syncthing` + ## Versions ++ **14-10-16:** Add version layer information. + **30.09.16:** Fix umask. + **09.09.16:** Add layer badges to README. + **28.08.16:** Add badges to README.