Permalink
Browse files

cleanup

  • Loading branch information...
peter-edge committed Oct 9, 2015
1 parent 4b3ebf1 commit 03384153257aac71a643ef7646a986422aec584f
Showing with 4,551 additions and 4,494 deletions.
  1. +1 −0 .gitignore
  2. +46 −0 Makefile
  3. +5 −4 README.md
  4. +2 −4,490 cacerts.go
  5. +7 −0 circle.yml
  6. +4,490 −0 var.go
@@ -0,0 +1 @@
ca-certificates.crt
@@ -0,0 +1,46 @@
all: update test
update:
rm -f ca-certificates.crt
docker run -v $(shell pwd):/out golang:1.5.1 cp /etc/ssl/certs/ca-certificates.crt /out/ca-certificates.crt
rm -f var.go
echo 'package cacerts' >> var.go
echo >> var.go
echo 'var pemCerts = []byte(`' >> var.go
cat ca-certificates.crt >> var.go
rm -f ca-certificates.crt
echo '`)' >> var.go
gofmt -w var.go
build:
go build ./...
lint:
go get -v github.com/golang/lint/golint
golint ./...
vet:
go vet ./...
errcheck:
go get -v github.com/kisielk/errcheck
errcheck ./...
pretest: lint vet errcheck
test: pretest
go test ./...
clean:
go clean ./...
.PHONY: \
all \
update \
build \
lint \
vet \
errcheck \
pretest \
test \
clean
@@ -1,8 +1,9 @@
[![API Documentation](http://img.shields.io/badge/api-Godoc-blue.svg?style=flat-square)](https://godoc.org/github.com/peter-edge/go-cacerts)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/peter-edge/go-cacerts/blob/master/LICENSE)
[![CircleCI](https://circleci.com/gh/peter-edge/go-cacerts/tree/master.png)](https://circleci.com/gh/peter-edge/go-cacerts/tree/master)
[![API Documentation](http://img.shields.io/badge/api-Godoc-blue.svg?style=flat-square)](https://godoc.org/go.pedge.io/cacerts)
[![GitHub License](https://img.shields.io/github/license/peter-edge/go-cacerts.svg?style=flat-square)](https://github.com/peter-edge/go-cacerts/blob/master/LICENSE)
See the [Godoc](https://godoc.org/github.com/peter-edge/go-cacerts) for usage.
See the [Godoc](https://godoc.org/go.pedge.io/cacerts) for usage.
Contains CA certificates from the golang:1.4.2 docker image at /etc/ssl/certs/ca-certificates.crt.
Contains CA certificates from the golang:1.5.1 docker image at /etc/ssl/certs/ca-certificates.crt.
Useful for when docker images are created from the scratch image.
See https://medium.com/@kelseyhightower/optimizing-docker-images-for-static-binaries-b5696e26eb07 for details.
Oops, something went wrong.

0 comments on commit 0338415

Please sign in to comment.