File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 7171 - if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.3-fpm; fi;
7272 env :
7373 - TEST_SUITE=build-images
74+ - script :
75+ - if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.4-cli; fi;
76+ - if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/images.sh php 7.4-fpm; fi;
77+ env :
78+ - TEST_SUITE=build-images
7479 - stage : test
7580 php : ' 7.1'
7681 dist : xenial
Original file line number Diff line number Diff line change 1+ FROM docker.elastic.co/elasticsearch/elasticsearch:7.7.1
2+
3+ RUN echo "xpack.security.enabled: false" >> /usr/share/elasticsearch/config/elasticsearch.yml
4+ RUN echo "discovery.type: single-node" >> /usr/share/elasticsearch/config/elasticsearch.yml
5+ RUN bin/elasticsearch-plugin install -b analysis-icu && \
6+ bin/elasticsearch-plugin install -b analysis-phonetic
7+
8+ ADD docker-healthcheck.sh /docker-healthcheck.sh
9+
10+ HEALTHCHECK --retries=3 CMD ["bash" , "/docker-healthcheck.sh" ]
11+
12+ EXPOSE 9200 9300
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eo pipefail
3+
4+ if health=" $( curl -fsSL " http://${ES_HOST:- elasticsearch} :${ES_PORT:- 9200} /_cat/health?h=status" ) " ; then
5+ health=" $( echo " $health " | sed -r ' s/^[[:space:]]+|[[:space:]]+$//g' ) " # trim whitespace (otherwise we'll have "green ")
6+ if [ " $health " = ' green' ] || [ " $health " = ' yellow' ]; then
7+ exit 0
8+ fi
9+ echo >&2 " Unexpected health status: $health "
10+ fi
11+
12+ exit 1
You can’t perform that action at this time.
0 commit comments