File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
aws/logs_monitoring/tools Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,10 @@ RUN echo $dd_py_layer_zip
88
99# Install the layers (ADD with untar files)
1010ADD $dd_py_layer_zip /opt/
11- ADD $dd_tracer_layer_zip /opt/
11+ ADD $dd_tracer_layer_zip /opt/
12+
13+ # Copy the code into /var/task
14+ COPY *.py /var/task/
15+
16+ ENV DD_API_KEY "fake-api-key"
17+ ENV DD_SITE "datadog.com"
Original file line number Diff line number Diff line change 77
88set -e
99
10- # Move into the scripts directory
10+ # Move into the tools directory
1111DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
1212cd $DIR
1313
5252
5353 echo " Building Docker Image"
5454 echo " ${DIR} /layers/${dd_layer_name} .tar.gz"
55- docker build -t " datadog-log-forwarder:$python_version " . --no-cache \
56- --build-arg dd_py_layer_zip=" layers/${dd_layer_name} .tar.gz" \
57- --build-arg dd_tracer_layer_zip=" layers/${trace_forwarder_name} .tar.gz" \
55+ docker build --file " ${DIR} /Dockerfile " - t " datadog-log-forwarder:$python_version " . . --no-cache \
56+ --build-arg dd_py_layer_zip=" tools/ layers/${dd_layer_name} .tar.gz" \
57+ --build-arg dd_tracer_layer_zip=" tools/ layers/${trace_forwarder_name} .tar.gz" \
5858 --build-arg image=" lambci/lambda:${python_version} "
5959 i=$( expr $i + 1)
6060done
You can’t perform that action at this time.
0 commit comments