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

Revert "add oracle cloud cli to image (#182)" #195

Merged
merged 2 commits into from
May 24, 2024

Conversation

justinvp
Copy link
Member

This reverts commit ddce061.

Installing the Oracle CLI the way we're installing it is causing /root/.bashrc to be modified to include /usr/bin (the location where the oci binary is placed) at the front of PATH, before /usr/local/bin.

This ends up breaking python3 -m venv venv called from Pulumi Deployments because it ends up using the system Python at /usr/bin/python3 rather than the version of Python from this image that should be used at /usr/local/bin/python3 (due to the PATH change in .bashrc), and the system Python does not have venv available.

It may be possible to address this by installing the Oracle CLI binary in /usr/local/bin rather than /usr/bin, but I'd like to see if it's possible to install the Oracle CLI without updating .bashrc at all, so reverting this in the meantime.

Fixes #193

This reverts commit ddce061.

Installing the Oracle CLI the way we're installing it is causing
`/root/.bashrc` to be modified to include `/usr/bin` (the location
where the `oci` binary is placed) at the front of `PATH`,
_before_ `/usr/local/bin`.

This ends up breaking `python3 -m venv venv` called from Pulumi
Deployments because it ends up using the system Python at
`/usr/bin/python3` rather than the version of Python from this image
that should be used at `/usr/local/bin/python3` (due to the
`PATH` change in `.bashrc`), and the system Python does not have `venv`
available.

It may be possible to address this by installing the Oracle CLI binary
in `/usr/local/bin` rather than `/usr/bin`, but I'd like to see if it's
possible to install the Oracle CLI without updating `.bashrc` at all,
so reverting this in the meantime.
@justinvp justinvp requested a review from a team May 24, 2024 16:29
@justinvp justinvp merged commit 89a3c3d into main May 24, 2024
21 checks passed
@justinvp justinvp deleted the justin/revert-oracle-cli branch May 24, 2024 17:30
github-merge-queue bot pushed a commit to pulumi/pulumi that referenced this pull request May 24, 2024
To be merged after:
- #16261
- pulumi/pulumi-docker-containers#195

Tentative changelog...

### Features

- [engine] Guess ID references of dependant resources when generating
code for import operations
  [#16208](#16208)


### Bug Fixes

- [engine] Check property dependencies and deleted-with relationships
for target dependents
  [#16220](#16220)

- [engine] Propagate dependencies of untargeted resources correctly
during targeted updates
  [#16247](#16247)

- [backend/diy] Rewrite DeletedWith references when renaming stacks
  [#16216](#16216)

- [cli/state] Fix state renames involving DeletedWith

- [sdk/python] Use a separate type variable for static methods on Output
  [#16172](#16172)

- [sdk/python] Relax Output.all types to better match the implementation
  [#16172](#16172)

- [sdkgen/python] Generate __init__.py files for modules that only
contain enumerations
  [#16229](#16229)
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.

Error: The virtual environment was not created successfully because ensurepip is not available
2 participants