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

Service command override stopped working with 1.0.0-rc1 #2054

Closed
5 tasks done
ateuber opened this issue Jul 28, 2023 · 8 comments · Fixed by #2056
Closed
5 tasks done

Service command override stopped working with 1.0.0-rc1 #2054

ateuber opened this issue Jul 28, 2023 · 8 comments · Fixed by #2056
Labels
bug Something isn't working documentation docu & docs
Milestone

Comments

@ateuber
Copy link

ateuber commented Jul 28, 2023

Component

agent

Describe the bug

We use the following services definition with a command statement as a workaround for a bug in Timescaledb:

services:
  database_timescale:
    image: timescale/timescaledb:latest-pg15
    command: postgres -c timescaledb.max_background_workers=0

If we don't start postgres with this max_background_workers setting, Woodpecker is unable to clone the test database.

This worked with Woodpecker 0.15.11 and stopped working with Woodpecker 1.0.0-rc1. Have there been any changes regarding this services command override?

System Info

Woodpecker 1.0.0-rc1

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
@ateuber ateuber added the bug Something isn't working label Jul 28, 2023
@6543

This comment was marked as resolved.

@6543
Copy link
Member

6543 commented Jul 28, 2023

ok if the v0.15 had this mentioned in the docs somewhere we have to handle it as breaking change and mention it in the cangelog and provide a migration path

@6543 6543 added this to the 1.0.0 milestone Jul 28, 2023
@6543
Copy link
Member

6543 commented Jul 28, 2023

likely a regression of #1032

@6543
Copy link
Member

6543 commented Jul 28, 2023

@ateuber we wont add it back for safety reasons.

but you can migrate any service by lookup how the entrypoint in the original image was and combine it into it's command form (e.g. commands: <entrypoint> <cmd> ). If the entrypoint already was a shell you just have to append an s as in your case.

services:
  database_timescale:
    image: timescale/timescaledb:latest-pg15
    commands: postgres -c timescaledb.max_background_workers=0

@enobrev
Copy link

enobrev commented Jul 28, 2023

@6543, There's a typo in your response

commans:

@ateuber
Copy link
Author

ateuber commented Jul 28, 2023

Thanks @6543, it is working with commands. That was an easy fix. 😆

@ateuber ateuber closed this as completed Jul 28, 2023
@6543
Copy link
Member

6543 commented Jul 28, 2023

well it just has to be mentioned at the migration docs -> #2056

6543 added a commit that referenced this issue Jul 29, 2023
close  #2054

as we missed at #1032 that it was mentioned at one point in the docs and
so it was a breaking change
6543 added a commit to 6543-forks/woodpecker that referenced this issue Jul 29, 2023
close  woodpecker-ci#2054

as we missed at woodpecker-ci#1032 that it was mentioned at one point in the docs and
so it was a breaking change
mzampetakis pushed a commit to mzampetakis/woodpecker that referenced this issue Jul 31, 2023
close  woodpecker-ci#2054

as we missed at woodpecker-ci#1032 that it was mentioned at one point in the docs and
so it was a breaking change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation docu & docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants