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

chore(build): improve devcontainers setup with poetry #506

Merged

Conversation

bearrito
Copy link
Contributor

@bearrito bearrito commented Mar 26, 2024

  1. Replaces uses an image directly.
  2. Creates a custom image, still based off the original Image.
  3. Installs poetry inside the container. This saves the user about 20 seconds every container load.
  4. Installs pre-commit in the container. Saves more time.
  5. Enables pre-commit. From inside the container the user cannot commit without pre-commit running.
  6. Adds in git autocomplete to the container (see screenshot)
  7. Adds in poetry autocomplete to the container (see screenshot)
    devcontainer-completion

@alexanderankin alexanderankin changed the title feat: Feature/build image with poetry chore: Feature/build image with poetry Mar 30, 2024
@alexanderankin
Copy link
Member

i tested my new approach but i think it makes sense for you to see if it works for you, given that i dont use this all that much and may not be testing it the same way.

@bearrito
Copy link
Contributor Author

@alexanderankin No this is good, Much cleaner. I really just needed a way to get the completions in there.

Copy link
Collaborator

@totallyzen totallyzen left a comment

Choose a reason for hiding this comment

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

LGTM, thank you! ❤️

@totallyzen totallyzen changed the title chore: Feature/build image with poetry chore(build): improve devcontainers setup with poetry Mar 30, 2024
@totallyzen totallyzen merged commit 8fb4bcc into testcontainers:main Mar 30, 2024
8 checks passed
bearrito added a commit to bearrito/testcontainers-python that referenced this pull request Mar 30, 2024
…#506)

1. Replaces uses an image directly.
2. Creates a custom image, still based off the original Image.
3. Installs poetry inside the container. This saves the user about 20
seconds every container load.
4. Installs `pre-commit` in the container. Saves more time.
5. Enables `pre-commit`. From inside the container the user cannot
commit without `pre-commit` running.
6. Adds in git autocomplete to the container (see screenshot)
7. Adds in poetry autocomplete to the container (see screenshot)

![devcontainer-completion](https://github.com/testcontainers/testcontainers-python/assets/1908139/11446f78-4fbf-4d08-a997-043ae1632919)

---------

Co-authored-by: bstrausser <[email protected]>
Co-authored-by: David Ankin <[email protected]>
Co-authored-by: Bálint Bartha <[email protected]>
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.

3 participants