Commit 60ee893f authored by iamabhishek-dubey's avatar iamabhishek-dubey

Added Exporter image

parent bf69b7a6
......@@ -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
......
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
# Redis
<p align="left">
<img src="./img/redis.png">
</p>
# 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
```
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment