Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chiahan1123 committed Aug 10, 2017
0 parents commit 56e1894
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
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

10 changes: 10 additions & 0 deletions README.md
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/)
6 changes: 6 additions & 0 deletions coverageTools.sh
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

0 comments on commit 56e1894

Please sign in to comment.