Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.73 KB

README.md

File metadata and controls

52 lines (41 loc) · 1.73 KB

imageproxy

Actions Status Golang Badge GRPC Badge

image proxy service

Docs

Getting Started

Start a Server

$ git config --global url."https://${GITHUB_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/"  # insert your github access token
$ make init
$ make run

# Use Docker
$ docker build --build-arg GH_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN} --tag imageproxy .  # insert your github access token
$ docker run --rm -p 18081:18081 -p 18082:18082 imageproxy

# Use Onebox
$ make deploy-to-local-k8s

Test & Lint

$ make test

$ make lint

APIs

Directory Structure

.
├── client.go # dependency service 들에 대한 client
├── cmd       # server를 실행시키기 위한 main.go
│   └── ...
├── config    # 설정 파일
│   └── ...
└── server
    ├── grpc_server.go  # main gRPC server
    ├── http_server.go  # HTTP <-> gRPC 변환해주는 grpc-gateway layer
    └── handler         # gRPC server handlers