Skip to content

Commit ac594ad

Browse files
show elastic search version
1 parent 4793941 commit ac594ad

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/indexing.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
elasticsearchport=`echo "$constat" | grep -i elasticsearch | grep -ioE ":[0-9]+\->" | grep -ioE "[0-9]+"`
8989
constat=`echo "$constat" | sed -re 's/[[:space:]][[:space:]]+/|/g' | cut -d"|" -f1,3 | grep "|"`
9090
echo -e "Container Status Up:\n$constat"
91-
echo "ElasticSearch Port:" $elasticsearchport
91+
echo "ElasticSearch Port: '$elasticsearchport'"
9292
echo "Component 'api' Logs:"
9393
docker-compose logs api
9494
confailed=`echo "$constat" | grep -i "exit" | wc -l`
@@ -98,6 +98,8 @@ jobs:
9898
# Test the Elastic Search Indexation
9999
- name: Run the Elastic Search Indexation
100100
run: |
101+
echo "ElasticSearch Version:"
102+
docker-compose exec -T api curl -v 'elasticsearch:9200'
101103
echo "Indexation: starting ..."
102104
docker-compose exec -T api index-cpan.sh
103105
echo "Indexation: Indices showing ..."

bin/index-cpan.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
echo "Mapping: deleting ..."
44

5-
deletelog=`./bin/run bin/metacpan mapping --delete 2>&1`
6-
irs=$?
5+
sdeletelog=`./bin/run bin/metacpan mapping --delete 2>&1`
6+
ideleters=$?
77

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'"
1010

11-
if [ $irs -ne 0 ]; then
11+
if [ $ideleters -ne 0 ]; then
1212
echo "Mapping: Delete failed!"
1313

14-
exit $irs
14+
exit $ideleters
1515
fi
1616

1717
echo "ElasticSearch 'elasticsearch:9200': Indices showing ..."

0 commit comments

Comments
 (0)