Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

DO NOT USE: project uses ~/.ssh dir into docker container. #10

Open
clemens-tolboom opened this issue May 19, 2018 · 4 comments
Open

DO NOT USE: project uses ~/.ssh dir into docker container. #10

clemens-tolboom opened this issue May 19, 2018 · 4 comments
Assignees

Comments

@clemens-tolboom
Copy link

clemens-tolboom commented May 19, 2018

What happened

I had to as advised by OPS to revoke all my pub keys (60 servers) as the Docker container used my keys.

Why

The docker-composer.yml mount several directories of which ~/.ssh. I guess for good reasons to build the project within the container to minimize the hassle with environment settings.

- $HOME/.ssh:/drupal/.ssh

Awesome project

Don't get me wrong as sharing this project is great. I hope to contribute to it.

Resolution

  • It was (obviously) my bad not reading/understanding the docker-compose.yml file and understanding the makefile.
  • But the README.md should have a warning too.
  • Mounting a .ssh-taller instead of .ssh would at least trigger losts of people.
@lucasconstantino
Copy link

@clemens-tolboom as it is the case on other issues, I think this project uses a very opinionated building and container system which should probably get simplified to a minimum. This SSH logic is pretty much disposable.

@sebas5384 we must try and simplify these config.

@sebas5384
Copy link
Contributor

sebas5384 commented May 21, 2018

Hey @clemens-tolboom ! thanks for the heads-up! in this case the .ssh is only being used to facilitate the developers to ssh or make usage of their git inside the container, which is always local since we never build the image and sent it to anywhere.

Having said that, as @lucasconstantino mention we need to reduce the opinion of our docker stack, and I'll be taking a look at that this week 👍
For now we can just remove the mounting stuff.

@sebas5384 sebas5384 self-assigned this May 21, 2018
sebas5384 added a commit that referenced this issue May 21, 2018
@lucasconstantino
Copy link

@sebas5384 I guess we can close this issue now?

@clemens-tolboom
Copy link
Author

The commit in 93100e3 removes the issue but I guess will block the build process as it will hit the github pull limit https://developer.github.com/v3/rate_limit/ . I'm not sure although I hit it once with a composer project iirc. Not sure and not time to test (deadline)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants