Skip to content

fix(Invoke): Fixed Windows Issue by shipping pre-built binaries for platforms #51

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

Merged
merged 16 commits into from
Jan 11, 2024

Conversation

Pive01
Copy link
Collaborator

@Pive01 Pive01 commented Jan 3, 2024

This PR moves away from the logic we used until now: spawning a container and invoking the cli within the container. Now we ship all the binaries with the extension itself and invoke the correct ones based on the host OS/architecture. This is made to circumvent an issue we currently have on Windows machines where the path for the LOCALSTACK_VOLUME_DIR env variable was being mixed with Windows and Unix pathing.

/cc @alexrashed

Closes #52

@Pive01 Pive01 requested a review from whummer January 3, 2024 15:37
Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

LGTM overall, kudos for tackling this @Pive01 ! 🚀 Nice approach with using the CLI binaries directly, rather than spawning the separate container.

My only concern is around checking in the CLI binaries to this repo - they are fairly large, and it would be preferable to not have them in the repo imo (as we'll likely need to update them frequently over time). Could we download them from the Github releases page, or alternatively put them into an S3 bucket and download them when building the image? (i.e., in Dockerfile)

@Pive01
Copy link
Collaborator Author

Pive01 commented Jan 5, 2024

Could we download them from the Github releases page

Yes, I've added a little script that download and extract them when you build the extension 👍

@Pive01 Pive01 merged commit 8d4770b into main Jan 11, 2024
@Pive01 Pive01 deleted the binaries-invokation branch January 11, 2024 09:39
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.

LocalStack was unable to run after update to 0.5.2
2 participants