Loading .gitlab-ci.yml +7 −5 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ include: - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/deployment.yml' - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/deployment-custom-image.yml' stages: - package Loading @@ -12,13 +15,12 @@ stages: - deploy variables: PROJECT_PARENT_NAME: log FLUENTD_VERSION: '1.3' ES_PLUGIN_VERSION: '3.5.0' DOCKER_BUILD_ARGS: --build-arg FLUENTD_VERSION=${FLUENTD_VERSION} --build-arg ES_PLUGIN_VERSION=${ES_PLUGIN_VERSION} STACK: log .deploy: script: - > deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} ES_HOSTS=${ES_HOSTS} ES_USER=${ES_USER} ES_PASS=${ES_PASS} variables: STACK: ${PROJECT_PARENT_NAME} SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME} deploy/docker-compose.tmpl.yml +9 −9 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ version: '3.5' services: fluentd: image: ${IMAGE_NAME}:${IMAGE_TAG:-latest} image: ${IMAGE_NAME:-registry.gitlab.com/redmic-project/log/fluentd}:${IMAGE_TAG:-latest} environment: LOG_LEVEL: ES_HOSTS: Loading @@ -18,26 +18,26 @@ services: driver: json-file deploy: mode: replicated replicas: 1 replicas: ${REPLICAS:-1} restart_policy: delay: 10s window: 1m delay: ${RESTART_DELAY:-10s} resources: limits: cpus: '1' memory: 256M cpus: '${RESOURCES_LIMITS_CPUS:-1}' memory: ${RESOURCES_LIMITS_MEMORY:-256M} reservations: cpus: '0.1' memory: 128M cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.1}' memory: ${RESOURCES_RESERVATIONS_MEMORY:-128M} networks: log-net: name: ${LOG_NET_NAME:-log-net} driver: overlay driver: ${LOG_NET_DRIVER:-overlay} attachable: ${LOG_NET_ATTACHABLE:-true} elastic-net: name: ${ELASTIC_NET_NAME:-elastic6-net} driver: ${ELASTIC_NET_DRIVER:-overlay} external: true configs: Loading Loading
.gitlab-ci.yml +7 −5 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ include: - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/deployment.yml' - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/deployment-custom-image.yml' stages: - package Loading @@ -12,13 +15,12 @@ stages: - deploy variables: PROJECT_PARENT_NAME: log FLUENTD_VERSION: '1.3' ES_PLUGIN_VERSION: '3.5.0' DOCKER_BUILD_ARGS: --build-arg FLUENTD_VERSION=${FLUENTD_VERSION} --build-arg ES_PLUGIN_VERSION=${ES_PLUGIN_VERSION} STACK: log .deploy: script: - > deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} ES_HOSTS=${ES_HOSTS} ES_USER=${ES_USER} ES_PASS=${ES_PASS} variables: STACK: ${PROJECT_PARENT_NAME} SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}
deploy/docker-compose.tmpl.yml +9 −9 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ version: '3.5' services: fluentd: image: ${IMAGE_NAME}:${IMAGE_TAG:-latest} image: ${IMAGE_NAME:-registry.gitlab.com/redmic-project/log/fluentd}:${IMAGE_TAG:-latest} environment: LOG_LEVEL: ES_HOSTS: Loading @@ -18,26 +18,26 @@ services: driver: json-file deploy: mode: replicated replicas: 1 replicas: ${REPLICAS:-1} restart_policy: delay: 10s window: 1m delay: ${RESTART_DELAY:-10s} resources: limits: cpus: '1' memory: 256M cpus: '${RESOURCES_LIMITS_CPUS:-1}' memory: ${RESOURCES_LIMITS_MEMORY:-256M} reservations: cpus: '0.1' memory: 128M cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.1}' memory: ${RESOURCES_RESERVATIONS_MEMORY:-128M} networks: log-net: name: ${LOG_NET_NAME:-log-net} driver: overlay driver: ${LOG_NET_DRIVER:-overlay} attachable: ${LOG_NET_ATTACHABLE:-true} elastic-net: name: ${ELASTIC_NET_NAME:-elastic6-net} driver: ${ELASTIC_NET_DRIVER:-overlay} external: true configs: Loading