Skip to content
Snippets Groups Projects
Commit 59f0b7a3 authored by Tiago Henrique Conte's avatar Tiago Henrique Conte
Browse files

Changed elasticsearch ping test

parent 5c91828a
Branches
No related tags found
No related merge requests found
...@@ -21,12 +21,13 @@ stages: ...@@ -21,12 +21,13 @@ stages:
- deploy - deploy
before_script: before_script:
- nc -vz elasticsearch 9200
- apt-get update -y - apt-get update -y
- apt-get install default-jre postgresql-client -y - apt-get install default-jre postgresql-client -y
- apt-get remove --purge --auto-remove redis-server -y - apt-get remove --purge --auto-remove redis-server -y
- apt-get install redis-server -y - apt-get install redis-server -y
- apt-get install nodejs -y - apt-get install nodejs -y
- apt-get install ncat -y
- ncat -vz elasticsearch 9200
# official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
- export PGPASSWORD=$POSTGRES_PASSWORD - export PGPASSWORD=$POSTGRES_PASSWORD
- psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;" - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment