-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 56e1894
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM golang:1.8-alpine | ||
LABEL maintainer="Eric Chang <[email protected]>" | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
COPY coverageTools.sh /coverageTools.sh | ||
RUN /coverageTools.sh && \ | ||
rm /coverageTools.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# docker-jenkins-golang | ||
Docker image for Jenkins pipeline golang build. | ||
|
||
This Docker image is build from golang alpine image. Therefore, besides the already setup go environment, this image also includes the following tools: | ||
|
||
* Cobertura Coverage Tools: | ||
* [gocov](https://github.com/axw/gocov) | ||
* [gocov-xml](https://github.com/AlekSi/gocov-xml) | ||
|
||
Docker Hub: [docker-jenkins-golang](https://hub.docker.com/r/chiahan1123/docker-jenkins-golang/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
echo "Installing go coverage tools..." | ||
go get -u -v github.com/axw/gocov/gocov | ||
go get -u -v github.com/t-yuki/gocov-xml | ||
|