Sign inSign up

grandfleet/elasticsearch-bb-pipelines

By grandfleet

•Updated over 6 years ago

A simple elasticsearch example with bitbucket pipelines

Image
0

599

grandfleet/elasticsearch-bb-pipelines repository overview

⁠elasticsearch-bb-pipelines

Inspired by https://github.com/X1ting/elasticsearch-bitbucket-pipelines⁠ with an updated version of elasticsearch

Elasticsearch image for Bitbucket Pipelines Bitbucket pipelines does not allow you to use dot notation in variables. So I created my own elastic search docker image to include the discovery type.

⁠Version

Elasticsearch 7.5.1

##Hub https://hub.docker.com/repository/docker/grandfleet/elasticsearch-bb-pipelines⁠

Example

image: python:3.8.1
definitions:
  steps:
    - step: &run-tests
        name: Run tests
        script:
          - sleep 30 # Waiting elasticsearch. In your real pipeline you can not use it.
          - curl -XGET localhost:9250/_cat/health
          - python -m unititest # would be different for other programming languages
        services:
          - elasticsearch
  services:
    elasticsearch:
      image: xiting/elasticsearch-bitbucket-pipeline
      variables:
        ES_JAVA_OPTS: '-Xms512m -Xmx512m'
    docker:
      memory: 2048

pipelines:
  pull-requests:
    '**':
      - step: *run-tests

Tag summary

Content type

Image

Digest

Size

379.1 MB

Last updated

over 6 years ago

docker pull grandfleet/elasticsearch-bb-pipelines