Skip to content

Commit

Permalink
Updated circle config and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Newton committed Apr 25, 2018
1 parent c0f3e5a commit 36f589b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- run:
name: External Dependancies
command: |
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/jstemmer/go-junit-report
go get -u github.com/mattn/goveralls
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- run:
name: Import libraries
command: dep ensure -v
command: dep ensure -v -vendor-only
- run:
name: Run Tests
command: |
Expand All @@ -36,7 +36,7 @@ jobs:
dockerfile:
working_directory: /generic-rw-s3
docker:
- image: docker:1.12.6-git
- image: docker:18.03
steps:
- checkout
- setup_docker_engine
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ RUN apk --no-cache --virtual .build-dependencies add git \
&& LDFLAGS="-X '"${BUILDINFO_PACKAGE}$VERSION"' -X '"${BUILDINFO_PACKAGE}$DATETIME"' -X '"${BUILDINFO_PACKAGE}$REPOSITORY"' -X '"${BUILDINFO_PACKAGE}$REVISION"' -X '"${BUILDINFO_PACKAGE}$BUILDER"'" \
&& echo "Build flags: $LDFLAGS" \
&& echo "Fetching dependencies..." \
&& go get -u github.com/golang/dep/cmd/dep \
&& $GOPATH/bin/dep ensure \
&& curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh \
&& $GOPATH/bin/dep ensure -vendor-only \
&& go build -ldflags="${LDFLAGS}" \
&& mv ${PROJECT} /${PROJECT} \
&& apk del .build-dependencies \
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Generic Reader/Writer for S3

[![Circle CI](https://circleci.com/gh/Financial-Times/generic-rw-s3.svg?style=shield)](https://circleci.com/gh/Financial-Times/generic-rw-s3)[![Go Report Card](https://goreportcard.com/badge/github.com/Financial-Times/generic-rw-s3)](https://goreportcard.com/report/github.com/Financial-Times/generic-rw-s3) [![Coverage Status](https://coveralls.io/repos/github/Financial-Times/generic-rw-s3/badge.svg)](https://coveralls.io/github/Financial-Times/generic-rw-s3)
[![Circle CI](https://circleci.com/gh/Financial-Times/generic-rw-s3.svg?style=shield)](https://circleci.com/gh/Financial-Times/generic-rw-s3)
[![Go Report Card](https://goreportcard.com/badge/github.com/Financial-Times/generic-rw-s3)](https://goreportcard.com/report/github.com/Financial-Times/generic-rw-s3)
[![Coverage Status](https://coveralls.io/repos/github/Financial-Times/generic-rw-s3/badge.svg)](https://coveralls.io/github/Financial-Times/generic-rw-s3)

## system-code: upp-generic-s3-rw
## Introduction
An API for reading/writing generic payloads up to S3. It can be setup to read those payloads off Kafka.

## Installation

1. go get github.com/kardianos/govendor
1. curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
2. go get github.com/Financial-Times/generic-rw-s3
3. cd $GOPATH/src/github.com/Financial-Times/generic-rw-s3
4. govendor sync
4. dep ensure -v -vendor-only
5. go install


## Running locally
Expand Down

0 comments on commit 36f589b

Please sign in to comment.