Comments (4)
ANALYSIS
-
Regardless of the poetry-cookiecutter, when a passphrase is associated to a SSH key, it is the expected behaviour that the passphrase is required after each reboot of the machine. It is however possible to make the passphrase persist using the Keychain integration: passphrase persist by using the Keychain integration
-
In the poetry-cookiecutter framework, it is expected that until keys are added to the "mounted" SSH agent, the dev container environment doesn't know about any SSH keys. Indeed, in the docker-compose.yml file, currently only the SSH agent socket (SSH_AGENT_AUTH_SOCK) + known hosts file is mounted, not the full ~/.ssh directory.
RESOLUTION
There is no issue as such. To be able to communicate with Gitlab from within the dev container without having to do " ssh-add ~/.ssh/id_rsa" after each reboot, follow these steps:
- Add these lines to ~/.ssh/config:
Host *
UseKeychain yes - Reboot your laptop
- Open you project in VSCode, type "Remote container - Rebuild without cache"
from poetry-cookiecutter.
Perhaps it's worth reopening that issue until the "resolution" gets incorporated in the Readme's optional set-up steps for users of SSH Keys with passphrases?
from poetry-cookiecutter.
@tanguyNaets It's technically already in the README as one of the one-time setup steps (cf. line 21 for GitLab and line 39 for GitHub). But perhaps we should make it more clear in the README that this step is very much necessary for a good experience.
from poetry-cookiecutter.
Update: I created a PR to make the SSH configuration more explicit in the README.
from poetry-cookiecutter.
Related Issues (20)
- Consider adding nbQA to lint Jupyter notebooks (if selected)
- Add `black[jupyter]` to format notebooks if Jupyter is selected HOT 1
- Remove `absolufy-imports` once integrated in `ruff`
- Add `darglint` once integrated in `ruff`
- Add `E203` and `W503` to `ruff` ignores when available
- Remove macOS-specific section on Nerd Fonts from README
- Add `.ruff_cache/` to `.gitignore`
- Remove `py.typed` in simple mode
- package_url vs private_package_repository_url HOT 4
- Manifest Error HOT 7
- An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory? HOT 2
- Don't cap Python version HOT 2
- `--fixable` override in `.pre-commit-config.yaml` should add to, but instead overrides what is fixable HOT 2
- Fix git's `detected dubious ownership in repository` warning HOT 1
- Simplify and improve support for bind mount & volume mount workspaces HOT 1
- Do not use range-pinning in pyproject.toml HOT 2
- Refactor GitLab CI to use the Dev Container CLI
- Jupyter extension
- Add missing `use_exec` to serve the API HOT 2
- AGPL license HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry-cookiecutter.