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

explicitly set working-dir for workload in charm.py #128

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ def _oidc_layer(self):
"command": "/home/authservice/oidc-authservice",
"environment": self.service_environment,
"startup": "enabled",
# working-dir is required to interchangeably support docker images and rocks.
# Rocks always set their entrypoint working-dir to "/" because pebble is the
# entrypoint, so we need to be explicit. This was not needed for running
# the upstream docker image because that image has a entrypoint working-dir
# of "/home/authservice", which is used if working-dir is not set here.
ca-scribner marked this conversation as resolved.
Show resolved Hide resolved
orfeas-k marked this conversation as resolved.
Show resolved Hide resolved
"working-dir": "/home/authservice",
}
},
}
Expand Down
Loading