Commit 2a094000 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Merge branch 'dev' into 'master'

Dev

See merge request redmic-project/confluent/kafka-exporter!2
parents 37ebe54d d70d942f
Loading
Loading
Loading
Loading
+8 −69
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

stages:
  - deploy

image: ${DOCKER_DEPLOY_IMAGE_NAME}:${DOCKER_DEPLOY_IMAGE_TAG}

services:
  - docker:dind

variables:
  DOCKER_DRIVER: overlay2
  STACK: confluent
  IMAGE_NAME: danielqsj/kafka-exporter
  IMAGE_TAG: latest

deploy-supporting-branch-develop:
  stage: deploy
  variables:
    SSH_REMOTE: ${DEV_SSH_REMOTE}
    SERVICES_TO_CHECK: ${STACK}_${CI_PROJECT_NAME}
    COMPOSE_FILE: docker-compose.tmpl.yml:docker-compose.dev.yml
  script:
    - >
      deploy.sh IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE} KAFKA_SERVER_0=${KAFKA_SERVER_0}
      KAFKA_SERVER_1=${KAFKA_SERVER_1} KAFKA_SERVER_2=${KAFKA_SERVER_2} KAFKA_VERSION=${KAFKA_VERSION}
  environment:
    name: dev
  only:
    - branches
  except:
    - master
  when: manual

deploy-stable-branch-develop:
  stage: deploy
  variables:
    SSH_REMOTE: ${DEV_SSH_REMOTE}
    SERVICES_TO_CHECK: ${STACK}_${CI_PROJECT_NAME}
    COMPOSE_FILE: docker-compose.tmpl.yml:docker-compose.dev.yml
  script:
    - >
      deploy.sh IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE} KAFKA_SERVER_0=${KAFKA_SERVER_0}
      KAFKA_SERVER_1=${KAFKA_SERVER_1} KAFKA_SERVER_2=${KAFKA_SERVER_2} KAFKA_VERSION=${KAFKA_VERSION}
  environment:
    name: dev
  only:
    - master
  when: manual

deploy-supporting-branch-production:
  stage: deploy
  variables:
    SSH_REMOTE: ${PRO_SSH_REMOTE}
    SERVICES_TO_CHECK: ${STACK}_${CI_PROJECT_NAME}
    COMPOSE_FILE: docker-compose.tmpl.yml:docker-compose.prod.yml
  script:
     - >
      deploy.sh IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE} KAFKA_SERVER_0=${KAFKA_SERVER_0}
      KAFKA_SERVER_1=${KAFKA_SERVER_1} KAFKA_SERVER_2=${KAFKA_SERVER_2} KAFKA_VERSION=${KAFKA_VERSION}
  environment:
    name: pro
  only:
    - branches
  except:
    - master
  when: manual

deploy-stable-branch-production:
  stage: deploy
  variables:
    SSH_REMOTE: ${PRO_SSH_REMOTE}
    SERVICES_TO_CHECK: ${STACK}_${CI_PROJECT_NAME}
    COMPOSE_FILE: docker-compose.tmpl.yml:docker-compose.prod.yml
.deploy:
  script:
    - >
      deploy.sh IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE} KAFKA_SERVER_0=${KAFKA_SERVER_0}
      deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} KAFKA_SERVER_0=${KAFKA_SERVER_0}
      KAFKA_SERVER_1=${KAFKA_SERVER_1} KAFKA_SERVER_2=${KAFKA_SERVER_2} KAFKA_VERSION=${KAFKA_VERSION}
  environment:
    name: pro
  only:
    - master
  when: manual

LICENSE

0 → 100644
+21 −0
Original line number Diff line number Diff line
MIT License

Copyright (c) 2019 REDMIC Project / Confluent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+4 −3
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ services:
      - kafka-net
      - metric-net
    healthcheck:
      test: wget --spider http://localhost:${PORT}
      test: wget --spider -q http://localhost:${PORT}
      interval: 30s
      timeout: 10s
      retries: 3
@@ -28,9 +28,10 @@ services:
      resources:
        limits:
          cpus: '0.5'
          memory: 256M
          memory: 64M
        reservations:
          memory: 205M
          cpus: '0.001'
          memory: 32M

networks:
  kafka-net: