Open
Description
Suppose a repository structure like this:
.
├── appendix.txt
├── base-notebook
│ └── binder
│ └── environment.yml
├── config.yaml
└── full-notebook
└── binder
├── environment.yml
where appendix.txt is:
USER root
RUN mkdir -p /etc/config/
ADD ./config.yaml /etc/config/
USER jovyan
From the root of this repository, I call repo2docker as:
repo2docker --user-name=jovyan --appendix="`cat appendix.txt`" ./full-notebook
This fails in the appendix step because the config.yaml
is not in Docker's build context.
Step 41/43 : ADD ./config.yaml /etc/config/
ADD failed: stat /var/lib/docker/tmp/docker-builder898774711/config.yaml: no such file or directory%
My questions:
- what is the root of the docker build in this case?
- Is it possible to tell repo2docker where the build root should be?
- The goal here is to have a common appendix/config for all the images to be built from this repo. Is there another way to share assets between images?