Skip to content

Commit

Permalink
prepare 5.6.0 release (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly authored Aug 3, 2019
1 parent af85d0e commit 13db8f3
Show file tree
Hide file tree
Showing 76 changed files with 4,333 additions and 1,738 deletions.
17 changes: 15 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,22 @@ defaults:
COMMON_GO_PACKAGES: >
github.com/jstemmer/go-junit-report
github.com/kyoh86/richgo
DISABLE_LINT: 1 # golangci-lint is currently broken for this project (ch44169)

build_steps: &build_steps
working_directory: /go/src/gopkg.in/launchdarkly/ld-relay.v5
steps:
- checkout
- run: go get -u $COMMON_GO_PACKAGES
- run: go version && go env
- run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- run: dep ensure -dry-run
- run: make init
- run: make lint
- run:
name: lint
command: |
if [ "$DISABLE_LINT" != "1" ]; then
make lint
fi
- run:
name: Set up Code Climate test-reporter
command: |
Expand All @@ -49,6 +55,12 @@ defaults:
go tool cover -html=$CIRCLE_ARTIFACTS/coverage.txt -o $CIRCLE_ARTIFACTS/coverage.html
fi
when: always
- run:
name: lint
command: |
if [ -z "$DISABLE_LINT" ]; then
make lint
fi
- store_test_results:
path: /tmp/circle-reports
- store_artifacts:
Expand Down Expand Up @@ -79,6 +91,7 @@ jobs:
environment:
<<: *environment
DISABLE_COVERAGE: 1
DISABLE_LINT: 1

<<: *build_steps

Expand Down
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ linters:
disable:
- gocyclo
- gofmt
- goimports
- gosec # re-enable this when we're not using InsecureSkipVerify
- ineffassign
- lll
- maligned # don't really care about struct sizes
- unparam
fast: false

linter-settings:
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ dockers:
- latest
# If your Dockerfile copies files other than the binary itself,
# you should list them here as well.
extra_files:
- docker-entrypoint.sh
# extra_files:
# - filename
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ ARG SRC_DIR=/go/src/gopkg.in/launchdarkly/ld-relay.v5

COPY --from=builder ${SRC_DIR}/ldr /usr/bin/ldr

COPY docker-entrypoint.sh /usr/bin/

ENTRYPOINT ["docker-entrypoint.sh"]

USER 1000

EXPOSE 8030
CMD ["/usr/bin/ldr", "--config", "/ldr/ld-relay.conf"]
ENV PORT=8030
ENTRYPOINT ["/usr/bin/ldr", "--config", "/ldr/ld-relay.conf", "--allow-missing-file", "--from-env"]
7 changes: 2 additions & 5 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ RUN addgroup -g 1000 -S ldr-user && \
mkdir /ldr && \
chown 1000:1000 /ldr

COPY docker-entrypoint.sh /usr/bin/

ENTRYPOINT ["docker-entrypoint.sh"]

USER 1000

EXPOSE 8030
CMD ["/usr/bin/ldr", "--config", "/ldr/ld-relay.conf"]
ENV PORT=8030
ENTRYPOINT ["/usr/bin/ldr", "--config", "/ldr/ld-relay.conf", "--allow-missing-file", "--from-env"]
Loading

0 comments on commit 13db8f3

Please sign in to comment.