Maybe a bit more information on what I am trying to do will help.
I am taking the standard datadog agent image, adding a few files to it so their agent runs my code, and install any necessary packages.
The docker file for this looks like this:
FROM datadog/docker-dd-agent
# file generated by pipreqs
ADD requirements.txt /tmp
# place check code and config to the necessary locations
ADD sla_monitor/rt-check.py /etc/dd-agent/checks.d
ADD sla_monitor/batch-check.py /etc/dd-agent/checks.d
ADD sla_monitor/kpi-check.py /etc/dd-agent/checks.d
ADD sla_monitor/conf/rt-check.yaml /etc/dd-agent/conf.d
ADD sla_monitor/conf/batch-check.yaml /etc/dd-agent/conf.d
ADD sla_monitor/conf/kpi-check.yaml /etc/dd-agent/conf.d
# install python libararies necessary for check.
RUN pip install -r /tmp/requirements.txt
So, not only am I struggling on putting files in two different locations, I also need to run pip install on the server to get all the packages in place for my added functionality.
On Tuesday, March 27, 2018 at 9:06:45 AM UTC-7, Charlie White wrote:I'm building a simple docker container with rules_docker. I need to move some python files to one directory, and the corresponding configuration files to another. I have added a "files" option to my container_image, and I have specified a directory. But, that will place all files in the same directory. How do I split them into two different directories?
thanks
.