A service for managing uploads and fetches for image content.
Must have Go compiler, GNU Make, and protoc. Additional dependencies required for code generation will be installed via the make targets if they are not present in your $GOPATH. See the makefile for an exhaustive list of dependencies.
# Clone the repository
git clone git@github.com:Uplite/image-service.git
cd image-service
# Generate & Compile
make generate
make build
# Assuming you have a valid environment:
./bin/image-service-writer
# OR
./bin/image-service-reader
Assure that all required environment variables are present. See the example .env.example
file for required environment variables.
Generate the gRPC code via the make generate
target.
To compile, run the make build
or make
target. This will generate code and compile the programs in the cmd directory.
There are Dockerfiles for both the reader and the writer available inside of the build/package/ directory.
To test, run the make test
or COUNT=n make test
target. The default make test
will run with the race detector enabled and bust the test cache each run with a defualt -count=1
test flag, but receives an argument should you desire to pass one.