Commit 6eafe078 authored by Tulio Ruiz's avatar Tulio Ruiz
Browse files

[FIX] Pull the postgresql image again just in case the cleaner deleted it before the CI.

Some time the autoclean is excuted just before the CI have time to run the tests in which case an exception is shown, now we pull the image just before the postgresql container is created to avoid this.
A better message is shown just in case the postgresql image is now properly set.
parent 793bfad6
Pipeline #63400 passed with stage
in 35 seconds
......@@ -334,6 +334,14 @@ def start_instance(config):
def start_postgres(config):
try:
_logger.info('Pulling postgresql image %s', config['postgres_image'])
_cli.pull(config['postgres_image'])
except errors.ImageNotFound:
_logger.error(('Image %s not found.'
' Make sure variables are properly set and that the Psql version exists'),
config['postgres_image'])
raise
_logger.info('Starting container %s', config['postgres_container'])
container = _cli.create_container(image=config['postgres_image'],
name=config['postgres_container'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment