File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 88
88
elasticsearchport=`echo "$constat" | grep -i elasticsearch | grep -ioE ":[0-9]+\->" | grep -ioE "[0-9]+"`
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
- echo "ElasticSearch Port:" $elasticsearchport
91
+ echo "ElasticSearch Port: ' $elasticsearchport'"
92
92
echo "Component 'api' Logs:"
93
93
docker-compose logs api
94
94
confailed=`echo "$constat" | grep -i "exit" | wc -l`
98
98
# Test the Elastic Search Indexation
99
99
- name : Run the Elastic Search Indexation
100
100
run : |
101
+ echo "ElasticSearch Version:"
102
+ docker-compose exec -T api curl -v 'elasticsearch:9200'
101
103
echo "Indexation: starting ..."
102
104
docker-compose exec -T api index-cpan.sh
103
105
echo "Indexation: Indices showing ..."
Original file line number Diff line number Diff line change 2
2
3
3
echo " Mapping: deleting ..."
4
4
5
- deletelog =` ./bin/run bin/metacpan mapping --delete 2>&1 `
6
- irs =$?
5
+ sdeletelog =` ./bin/run bin/metacpan mapping --delete 2>&1 `
6
+ ideleters =$?
7
7
8
- echo " Mapping: Delete finished with [$irs ]"
9
- echo " Mapping: Delete Log:\n'$deletelog '"
8
+ echo " Mapping: Delete finished with [$ideleters ]"
9
+ echo " Mapping: Delete Log:\n'$sdeletelog '"
10
10
11
- if [ $irs -ne 0 ]; then
11
+ if [ $ideleters -ne 0 ]; then
12
12
echo " Mapping: Delete failed!"
13
13
14
- exit $irs
14
+ exit $ideleters
15
15
fi
16
16
17
17
echo " ElasticSearch 'elasticsearch:9200': Indices showing ..."
You can’t perform that action at this time.
0 commit comments