Dockerfiles icon indicating copy to clipboard operation
Dockerfiles copied to clipboard

Explain how to add ssh keys to container

Open damien-carcel opened this issue 7 years ago • 1 comments

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Affected image and tag all

When using akeneo/pim-enterprise-standard, one have to install akeneo/pim-enterprise-dev through composer, and so need to add her/his SSH key to the container.

  • [x] Investigate if Docker secrets are relevant here (could store the password?) => Not needed, see comment below
  • [x] Update the compose file template in akeneo/pim-enterprise-standard starting Akeneo 1.7
  • [ ] Document the usage here, and link it in the Akeneo documentation

damien-carcel avatar Nov 10 '17 15:11 damien-carcel

It is possible to use the host ssh agent with the SSH_AUTH_SOCK environment variable:

services:
  akeneo:
    environment:
      ...
      SSH_AUTH_SOCK: '/ssh-agent'
    volumes:
      ...
      - ${SSH_AUTH_SOCK}:/ssh-agent:ro

damien-carcel avatar May 04 '18 11:05 damien-carcel