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 Oracle Cloud CLI to pulumi/pulumi image #196

Open
justinvp opened this issue May 25, 2024 · 0 comments
Open

Add Oracle Cloud CLI to pulumi/pulumi image #196

justinvp opened this issue May 25, 2024 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@justinvp
Copy link
Member

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Add the Oracle Cloud CLI to the pulumi/pulumi image. This was originally added in #182 (shipped in v3.116.0 and v3.116.1), but was reverted due to #193 in #195.

We were using the installer to install the oci binary to /usr/bin, but the installer was modifying /root/.bashrc to update PATH to have /usr/bin ahead of /usr/local/bin, which was causing errors when running Python pulumi programs with Pulumi Deployments.

A potential simple fix is to place the binary in /usr/local/bin rather than /usr/bin, but I'd like to see if we can avoid modifying /root/.bashrc. Doesn't look like there's an easy way to do that using the installation script. It may be best to install it manually via pip install oci-cliin a virtual environment, and copying the binary to/usr/local/bin` without using their installation script, so it doesn't try to install python or modify anything else in the image.

@justinvp justinvp added the kind/enhancement Improvements or new features label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

1 participant