You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ke...@apache.org on 2021/01/12 09:19:38 UTC

[skywalking-eyes] 01/01: Add documentation about how to use via docker image

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch doc/docker
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit 5f2d9e78fa8f6bde396c07388e51b5c1a4c9195c
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Jan 12 17:19:25 2021 +0800

    Add documentation about how to use via docker image
---
 Dockerfile | 2 ++
 README.md  | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index f7090f6..ef95f9a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,6 +16,8 @@
 # under the License.
 #
 
+# TODO: minimize the docker image size, now 524MB !!!
+
 FROM golang:1.14.3-alpine AS build
 
 WORKDIR /license-eye
diff --git a/README.md b/README.md
index f35bd38..33fa06c 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,13 @@ header:
 
 **NOTE**: The full configurations can be found in [the configuration section](#configurations).
 
+### Docker Image
+
+```shell
+$ docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header check
+$ docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
+```
+
 ### Compile from Source
 
 ```bash
@@ -119,7 +126,6 @@ ERROR failed to identify the licenses of following packages:
 gopkg.in/yaml.v3
 ```
 
-
 ## Configurations
 
 ```yaml