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

Add support for services to configure working directory #245

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

benhoyt
Copy link
Contributor

@benhoyt benhoyt commented Jun 26, 2023

Fixes #158 (in preparation for #159)

internals/overlord/servstate/manager_test.go Show resolved Hide resolved
internals/plan/plan.go Show resolved Hide resolved
Copy link
Contributor

@niemeyer niemeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Not merging waiting for the point you mention in @barrettj12's review.

@benhoyt benhoyt merged commit a807026 into canonical:master Jun 26, 2023
@benhoyt benhoyt deleted the service-working-dir branch June 26, 2023 22:21
@benhoyt benhoyt changed the title Add support for service's to configure working directory Add support for services to configure working directory Jun 30, 2023
jujubot added a commit to juju/juju that referenced this pull request Jul 12, 2023
#15909

Relevant changes for use of Pebble in Juju:

* fix: exec and checks inherit environment from daemon (canonical/pebble#234)
* Allow non-root to specify user/group to itself (canonical/pebble#239)
* Add support for services to configure working directory (canonical/pebble#245)
* Improve error messages with exec, especially if working dir missing (canonical/pebble#236)
* Add "service context" support for exec and health checks (canonical/pebble#246)

Full list of changes [here](canonical/pebble@5842ea6...00bcd1f).

Note that this updates the version of `canonical/x-go` as well as switching to Canonical fork of `go-flags`.
@benhoyt benhoyt mentioned this pull request Sep 1, 2023
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.

Add working-dir option to service definition
3 participants