-
Notifications
You must be signed in to change notification settings - Fork 55
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
Easier support for debugging container pebble #49
Comments
@jameinel This is a good idea, and I do think a shortcut here would be helpful. Note that
However, it's not super-easy to discover when using Juju sidecar charms. I don't particularly like Possible alternatives:
Just for reference, here's the current incantation (which shows why this feature would be useful):
Thoughts @hpidcock? |
I agree that we should probably make this a little more convenient -- even just adding |
One other thing to mention here is that it would be great to be able to easily run a command via pebble with all the environment variables of a particular layer. Something like |
@mthaddon I think you'll be pleased to hear about #246 then. It adds the concept of "service context" to This is included in the Pebble version baked into Juju 3.2.2, and will be in Juju 3.1.6 (coming out in the next couple of weeks I think). |
@mthaddon Where do you think would be the best place to socialize these minor Pebble improvements so that you and other charmers see them? |
I think it would be nice to do something small here in 25.04, so adding that label. It's not too bad right now, but you have to remember the For reference, the ways I usually do this now are:
|
So we have support for "export PEBBLE=..." when you want to play with pebble as an application manager and interact with it. (you can set PEBBLE for both the client and the server and it will work).
However, if you want to
juju ssh
into a workload and debug against pebble, you actually have to use the undocumented PEBBLE_SOCKET environment variable.PEBBLE always appends
.pebble.socket
while in containers the actual path is,/charm/containers/$CONTAINERNAME/pebble.socket
Ideally it would be something like
pebble -c container get-plan
and 'juju ssh' could set an environment variable pointing at
/charm
or somesort.At a minimum, we need to officially document
PEBBLE_SOCKET
and how to interact with sidecars and their pebble.The text was updated successfully, but these errors were encountered: