Commit 873b05eb authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade configuración de despliegue

parent 0da90260
Loading
Loading
Loading
Loading

.dockerignore

0 → 100644
+2 −0
Original line number Diff line number Diff line
*
!scripts

.gitlab-ci.yml

0 → 100644
+15 −0
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

stages:
  - deploy

variables:
  PROJECT_PARENT_NAME: confluent

.deploy:
  variables:
    STACK: ${PROJECT_PARENT_NAME}
    SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}

deploy/.env

0 → 100644
+8 −0
Original line number Diff line number Diff line
ZK_PORT=2181
SR_PORT=8081
LOG_LEVEL=ERROR
SCHEMA_REGISTRY_KAFKASTORE_TIMEOUT_MS=30000
SCHEMA_REGISTRY_HOST_NAME=schema-registry
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_METHODS=GET,POST,PUT,DELETE,OPTIONS
SCHEMA_REGISTRY_ACCESS_CONTROL_ALLOW_ORIGIN=*
SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL=backward_transitive
+17 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  schema-registry:
    environment:
      SCHEMA_REGISTRY_HEAP_OPTS: -Xmx256m
    deploy:
      placement:
        constraints:
          - node.hostname == ${PLACEMENT_CONSTRAINTS_NODE_HOSTNAME:-hostname}
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-0.5}'
          memory: ${RESOURCES_LIMITS_MEMORY:-512M}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-410M}
+14 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  schema-registry:
    environment:
      SCHEMA_REGISTRY_HEAP_OPTS: -Xmx512m
    deploy:
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-0.5}'
          memory: ${RESOURCES_LIMITS_MEMORY:-1G}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-820M}
Loading