File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM golang:1-alpine AS build-env
2
+
3
+ RUN apk add --no-cache --upgrade git openssh-client ca-certificates
4
+ RUN go get -u github.com/golang/dep/cmd/dep
5
+ WORKDIR /go/src/app
6
+
7
+ # Install
8
+ RUN go get -u github.com/google/addlicense
9
+
10
+ ENTRYPOINT ["addlicense" ]
Original file line number Diff line number Diff line change @@ -23,6 +23,24 @@ to any file that already has one.
23
23
The pattern argument can be provided multiple times, and may also refer
24
24
to single files.
25
25
26
+ ## Running in a Docker Container
27
+
28
+ - Clone the repository using ` git clone https://github.com/google/addlicense.git `
29
+ - Build your docker container
30
+ ``` bash
31
+ docker build -t google/addlicense .
32
+ ```
33
+
34
+ - Test the image
35
+ ``` bash
36
+ docker run -it google/addlicense -h
37
+ ```
38
+
39
+ - Usage example
40
+ ``` bash
41
+ docker run -v ${PWD} :/go/src/app/ -it google/addlicense -c " Google LLC" * .go
42
+ ```
43
+
26
44
## license
27
45
28
46
Apache 2.0
You can’t perform that action at this time.
0 commit comments