forked from aws/amazon-cloudwatch-agent-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integration tests for AWS Neuron (aws#416)
- Loading branch information
1 parent
8c00f9f
commit 766e41a
Showing
20 changed files
with
2,464 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# set the base image | ||
FROM public.ecr.aws/docker/library/ubuntu:20.04 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /root | ||
|
||
# Neuron SDK components version numbers | ||
ARG NEURONX_RUNTIME_LIB_VERSION=2.19.* | ||
ARG NEURONX_COLLECTIVES_LIB_VERSION=2.19.* | ||
ARG NEURONX_TOOLS_VERSION=2.17.* | ||
|
||
# Install any necessary dependencies or tools | ||
RUN apt-get update && apt-get install vim wget zip unzip sudo python3-pip -y | ||
|
||
# Import Neuron GPG public key | ||
RUN echo "deb https://apt.repos.neuron.amazonaws.com focal main" > /etc/apt/sources.list.d/neuron.list | ||
RUN wget -qO - https://apt.repos.neuron.amazonaws.com/GPG-PUB-KEY-AMAZON-AWS-NEURON.PUB | apt-key add - | ||
|
||
|
||
# Install Neuron Runtime and Neuron Tools | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
aws-neuronx-tools=$NEURONX_TOOLS_VERSION \ | ||
aws-neuronx-collectives=$NEURONX_COLLECTIVES_LIB_VERSION \ | ||
aws-neuronx-runtime-lib=$NEURONX_RUNTIME_LIB_VERSION \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/tmp* \ | ||
&& apt-get clean | ||
|
||
COPY dummy_neuron_monitor.py /opt/aws/neuron/bin/dummy_neuron_monitor.py | ||
RUN chmod 755 /opt/aws/neuron/bin/dummy_neuron_monitor.py | ||
RUN pip3 install prometheus_client boto3 requests |
890 changes: 890 additions & 0 deletions
890
docs/resources/dummy-neuron-monitor/dummy_neuron_monitor.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.