VOL-2126 - update version information in dockerfile

Change-Id: I8ae4f097184286c2cc8c5a2bb0e4d86335a83090
diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go
index a8ef37e..9e4c414 100644
--- a/internal/pkg/config/config.go
+++ b/internal/pkg/config/config.go
@@ -40,6 +40,7 @@
 	default_CoreTopic        = "rwcore"
 	default_ProbeHost        = ""
 	default_ProbePort        = 8080
+	default_PrintVersion     = false
 )
 
 // AdapterFlags represents the set of configurations used by the read-write adaptercore service
@@ -60,6 +61,7 @@
 	Banner           bool
 	ProbeHost        string
 	ProbePort        int
+	PrintVersion     bool
 }
 
 func init() {
@@ -84,6 +86,7 @@
 		Banner:           default_Banner,
 		ProbeHost:        default_ProbeHost,
 		ProbePort:        default_ProbePort,
+		PrintVersion:     default_PrintVersion,
 	}
 	return &adapterFlags
 }
@@ -135,6 +138,9 @@
 	help = fmt.Sprintf("The port on which to listen to answer liveness and readiness probe queries over HTTP.")
 	flag.IntVar(&(so.ProbePort), "probe_port", default_ProbePort, help)
 
+	help = fmt.Sprintf("Print the version information and exit.")
+	flag.BoolVar(&so.PrintVersion, "version", default_PrintVersion, help)
+
 	flag.Parse()
 
 	containerName := getContainerInfo()