Skip to content

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
Contributor

@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
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 <bstrausser@locusrobotics.com>
Co-authored-by: David Ankin <daveankin@gmail.com>
Co-authored-by: Bálint Bartha <39852431+totallyzen@users.noreply.github.com>
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