I’m fairly new to Resin, so apologies if this is a solved problem I just haven’t found the answer to.
I have a directory structure like the following:
project_root ├── private_repo_1 ├── private_repo_2 ├── private_repo_n └── private_installation_repo ├── .dockerignore ├── Dockerfile └── entrypoint.sh
(The project is fairly large, so we want to keep the docker-related code tucked away in a separate repository.)
My Dockerfile needs access to the source code in the private repositories, but this seems to be a tricky problem. For one, I can’t simply
RUN git clone <repo> because of security issues with ssh keys. Similarly, I can’t copy code from my development machine (e.g.
COPY ../../project_root project_root) because of security issues with relative directories.
So, I’m trying to figure out a solution more elegant than some of the hacky solutions I’ve found. Does anyone know of good examples to follow?