File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 85
85
run : |
86
86
constat=`docker-compose ps 2>&1`
87
87
echo -e "Container Status Complete:\n$constat"
88
- elasticsearchport=`echo "$constat" | grep -i elasticsearch | grep -ioE ":[0-9]+\->" | grep -ioE "[0-9]+"`
88
+ elasticsearchport=`echo "$constat" | grep -i elasticsearch | grep -ioE ":[0-9]+\->" | grep -ioE "[0-9]+" | sed -n 1p `
89
89
constat=`echo "$constat" | sed -re 's/[[:space:]][[:space:]]+/|/g' | cut -d"|" -f1,3 | grep "|"`
90
90
echo -e "Container Status Up:\n$constat"
91
91
echo "ElasticSearch Port: '$elasticsearchport'"
99
99
- name : Run the Elastic Search Indexation
100
100
run : |
101
101
echo "ElasticSearch Version:"
102
- docker-compose exec -T api curl -v 'elasticsearch:9200'
102
+ curl "localhost:$ES_PORT" 2>&1
103
+ echo "ElasticSearch Port: '$ES_PORT'"
103
104
echo "Indexation: starting ..."
104
105
docker-compose exec -T api index-cpan.sh
105
106
echo "Indexation: Indices showing ..."
You can’t perform that action at this time.
0 commit comments