Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinning Docker Compose version for Travis in order to avoid intermittent Docker errors #466

Merged
merged 7 commits into from
Oct 30, 2024

Conversation

caiosba
Copy link
Contributor

@caiosba caiosba commented Oct 30, 2024

Description

We've been facing different errors in Alegre Travis jobs related to Docker, for example:

The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.alegre: 'platform'
Unsupported config option for services.postgres: 'platform'
Unsupported config option for services.queue_worker: 'platform'

And:

Service 'postgres' failed to build: missing signature key

It doesn't happen consistently. Although the Travis file is configured for dist: jammy (which is the latest they support), looks like different versions of Docker are used in different jobs.

For now, my suggestion to fix this is by using a pinned version of the latest Docker Compose version. Once we move from Travis to GitHub Actions hopefully this can be more stable and use the latest versions of these packages.

(No ticket created for this).

How has this been tested?

The Travis job passed after these changes: https://app.travis-ci.com/github/meedan/alegre/builds/272951439

@caiosba caiosba requested review from dmou and removed request for computermacgyver October 30, 2024 15:05
@caiosba caiosba merged commit ad3194a into develop Oct 30, 2024
4 checks passed
@caiosba caiosba deleted the fix/NOJIRA-travis-docker-issue branch October 30, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants