File tree Expand file tree Collapse file tree 4 files changed +6
-28
lines changed Expand file tree Collapse file tree 4 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ RUN adduser -u 9000 -D app
66
77WORKDIR /usr/src/app
88
9- COPY engine.json /engine.json
10- COPY codeclimate-golint.go /usr/src/app/codeclimate-golint.go
9+ COPY engine.json codeclimate-golint.go ./
1110
12- RUN apk add --no-cache --virtual .dev-deps musl-dev go git && \
11+ RUN apk add --no-cache --virtual .dev-deps musl-dev go git jq && \
1312 export GOPATH=/tmp/go GOBIN=/usr/local/bin && \
1413 go get -d -t -v . && \
1514 export LIBRARY_PATH=/usr/lib32:$LIBRARY_PATH && \
1615 go install codeclimate-golint.go && \
16+ export golint_version=$(cd "${GOPATH}/src/github.com/golang/lint/" && git rev-parse HEAD 2>/dev/null) && \
17+ cat engine.json | jq '.version = .version + "/" + env.golint_version' > /engine.json && \
1718 apk del .dev-deps && \
1819 rm -rf "$GOPATH"
1920
Original file line number Diff line number Diff line change 22
33IMAGE_NAME ?= codeclimate/codeclimate-golint
44
5- update :
6- docker run \
7- --rm --interactive \
8- -v $(PWD ) /engine.json:/engine.json \
9- -v $(PWD ) /bin/update:/usr/local/bin/update \
10- alpine:edge \
11- /usr/local/bin/update
12-
13- image : update
5+ image :
146 docker build --rm -t $(IMAGE_NAME ) .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 "languages" : [
99 " Go"
1010 ],
11- "version" : " 1.0.0/6aaf7c34af0f4c36a57e0c429bace4d706d8e931 " ,
11+ "version" : " 1.0.0" ,
1212 "spec_version" : " 0.3.1"
1313}
You can’t perform that action at this time.
0 commit comments