Skip to content

Commit

Permalink
Circle CI (#1)
Browse files Browse the repository at this point in the history
* Add Circle Config

* Touch to build

* Move to expected path

* Use Docker Command

* Do it all here then

* Env

* Add Readme

* Actual README
  • Loading branch information
mjallday authored and zdmytriv committed Jul 23, 2021
1 parent edab0ec commit c9e32ea
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 2

job-defaults: &job-defaults
working_directory: &working_directory
/go/src/github.com/lyft/ratelimit/

jobs:
build:
<<: *job-defaults
environment:
- USE_STATSD=false
- LOG_LEVEL=debug
- REDIS_SOCKET_TYPE=tcp
- REDIS_URL=localhost:6379
docker:
- image: circleci/golang:1.9
- image: redis:alpine
steps:
- checkout
- setup_remote_docker
- run:
name: Compile
command: |
make bootstrap
make compile
- run:
name: Build Docker Image and Run Tests
command: |
make docker
workflows:
version: 2
test_and_build:
jobs:
- build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

# Overview

[![CircleCI](https://circleci.com/gh/verygoodsecurity/ratelimit.svg?style=svg)](https://circleci.com/gh/verygoodsecurity/ratelimit)

The rate limit service is a Go/gRPC service designed to enable generic rate limit scenarios from different types of
applications. Applications request a rate limit decision based on a domain and a set of descriptors. The service
reads the configuration from disk via [runtime](https://github.com/lyft/goruntime), composes a cache key, and talks to the Redis cache. A
Expand Down

0 comments on commit c9e32ea

Please sign in to comment.