diff --git a/Dockerfile.exporter b/Dockerfile.exporter index bde7b7869f84c577eb228a40fe29211a4f062423..292a39ff8911cc74dd9d19035e747771c9d0dfa8 100644 --- a/Dockerfile.exporter +++ b/Dockerfile.exporter @@ -6,11 +6,11 @@ ARG REDIS_EXPORTER_VERSION="1.5.2" RUN apk add --no-cache curl ca-certificates && \ curl -fL -Lo /tmp/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz \ - ${EXPORTER_URL}/${REDIS_EXPORTER_VERSION}/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz && \ + ${EXPORTER_URL}/v${REDIS_EXPORTER_VERSION}/redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz && \ cd /tmp && tar -xvzf redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64.tar.gz && \ mv redis_exporter-v${REDIS_EXPORTER_VERSION}.linux-amd64 redis_exporter -FROM scratch:latest +FROM scratch MAINTAINER Opstree Solutions diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..ab57cc2d58c349320f44989d48c05f76f93f7e43 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +build-redis-image: + docker build -t opstree/redis:dev -f Dockerfile . + +build-redis-exporter-image: + docker build -t opstree/redis-exporter:dev -f Dockerfile.exporter . + +setup-standalone-server-compose: + docker-compose up -f docker-compose-standalone.yaml -d + +setup-cluster-compose: + docker-compose up -f docker-compose.yaml -d diff --git a/README.md b/README.md index 6a0157300430ea3aa5e057f187c1cc6aa81c8008..aa5dca247a3928bafc5041d111dba1ca048668d6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,51 @@ -# Redis +

+ +

+# Ot-Container-Kit (Redis) + +I am a repo which have a production based Redis and Redis Expoer docker image codebase. + +## Features + +This image provides you below features:- +- [X] Lightweight nature :- Images are quite low in terms of size which will improve your deployment process time. +- [X] Security Compliant :- Images are security compliant i.e. It doesn't hold any vulnerable package. +- [X] Best Practices :- We have tried to follow the best practices for writing the Docker images. + +## Pre-requisites + +Here are the list of pre-requisites which is required for development and setup purpose. + +- **Docker Engine** +- **Docker Compose** + +That's it + +## Building Image + +#### Redis Docker Image + +```shell +make build-redis-image +``` + +#### Redis Exporter Docker Image + +```shell +make build-redis-exporter-image +``` + +## Running Setup + +#### For standalone server + +```shell +make setup-standalone-server-compose +``` + +#### For cluster setup + +```shell +make setup-cluster-compose +``` diff --git a/img/redis.png b/img/redis.png new file mode 100644 index 0000000000000000000000000000000000000000..aa2013a4fc85b1992f0b4ab8aa210317193164f0 Binary files /dev/null and b/img/redis.png differ diff --git a/redisExpoter_config.properties b/redisExpoter_config.properties index a53c69dea01932c50389de3d7e48f6f9f31c4f58..e8efa94b386128b4b510329554bc3b58b3c6902a 100644 --- a/redisExpoter_config.properties +++ b/redisExpoter_config.properties @@ -1,7 +1,7 @@ image_name='redisexporter' image_registry='opstree' image_version='v1' -Dockerfile='Dockerfile' -registry_credential_id= dev_docker +Dockerfile='Dockerfile.exporter' +registry_credential_id = dev_docker image_repo_url= slack_channel='docker' \ No newline at end of file