mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Dockerfile: Update with support for additional instruments
Ensure support is present in the Docker image for instruemnts that require trace-cmd, monsoon or iio-capture.
This commit is contained in:
parent
7a085e586a
commit
491dcd5b5b
@ -46,8 +46,38 @@ ARG DEVLIB_REF=v1.2
|
|||||||
ARG WA_REF=v3.2
|
ARG WA_REF=v3.2
|
||||||
ARG ANDROID_SDK_URL=https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
ARG ANDROID_SDK_URL=https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apt-get install -y python3 python3-pip git wget zip openjdk-8-jre-headless vim emacs nano curl sshpass ssh usbutils locales
|
apache2-utils \
|
||||||
|
bison \
|
||||||
|
cmake \
|
||||||
|
curl \
|
||||||
|
emacs \
|
||||||
|
flex \
|
||||||
|
git \
|
||||||
|
libcdk5-dev \
|
||||||
|
libiio-dev \
|
||||||
|
libxml2 \
|
||||||
|
libxml2-dev \
|
||||||
|
locales \
|
||||||
|
nano \
|
||||||
|
openjdk-8-jre-headless \
|
||||||
|
python3 \
|
||||||
|
python3-pip \
|
||||||
|
ssh \
|
||||||
|
sshpass \
|
||||||
|
sudo \
|
||||||
|
trace-cmd \
|
||||||
|
usbutils \
|
||||||
|
vim \
|
||||||
|
wget \
|
||||||
|
zip
|
||||||
|
|
||||||
|
# Clone and download iio-capture
|
||||||
|
RUN git clone -v https://github.com/BayLibre/iio-capture.git /tmp/iio-capture && \
|
||||||
|
cd /tmp/iio-capture && \
|
||||||
|
make && \
|
||||||
|
make install
|
||||||
|
|
||||||
RUN pip3 install pandas
|
RUN pip3 install pandas
|
||||||
|
|
||||||
# Ensure we're using utf-8 as our default encoding
|
# Ensure we're using utf-8 as our default encoding
|
||||||
@ -57,8 +87,16 @@ ENV LANGUAGE en_US:en
|
|||||||
ENV LC_ALL en_US.UTF-8
|
ENV LC_ALL en_US.UTF-8
|
||||||
|
|
||||||
# Let's get the two repos we need, and install them
|
# Let's get the two repos we need, and install them
|
||||||
RUN git clone -v https://github.com/ARM-software/devlib.git /tmp/devlib && cd /tmp/devlib && git checkout $DEVLIB_REF && python3 setup.py install && pip3 install .[full]
|
RUN git clone -v https://github.com/ARM-software/devlib.git /tmp/devlib && \
|
||||||
RUN git clone -v https://github.com/ARM-software/workload-automation.git /tmp/wa && cd /tmp/wa && git checkout $WA_REF && python3 setup.py install && pip3 install .[all]
|
cd /tmp/devlib && \
|
||||||
|
git checkout $DEVLIB_REF && \
|
||||||
|
python3 setup.py install && \
|
||||||
|
pip3 install .[full]
|
||||||
|
RUN git clone -v https://github.com/ARM-software/workload-automation.git /tmp/wa && \
|
||||||
|
cd /tmp/wa && \
|
||||||
|
git checkout $WA_REF && \
|
||||||
|
python3 setup.py install && \
|
||||||
|
pip3 install .[all]
|
||||||
|
|
||||||
# Clean-up
|
# Clean-up
|
||||||
RUN rm -R /tmp/devlib /tmp/wa
|
RUN rm -R /tmp/devlib /tmp/wa
|
||||||
@ -72,7 +110,13 @@ RUN mkdir -p /home/wa/.android
|
|||||||
RUN mkdir -p /home/wa/AndroidSDK && cd /home/wa/AndroidSDK && wget $ANDROID_SDK_URL -O sdk.zip && unzip sdk.zip
|
RUN mkdir -p /home/wa/AndroidSDK && cd /home/wa/AndroidSDK && wget $ANDROID_SDK_URL -O sdk.zip && unzip sdk.zip
|
||||||
RUN cd /home/wa/AndroidSDK/tools/bin && yes | ./sdkmanager --licenses && ./sdkmanager platform-tools && ./sdkmanager 'build-tools;27.0.3'
|
RUN cd /home/wa/AndroidSDK/tools/bin && yes | ./sdkmanager --licenses && ./sdkmanager platform-tools && ./sdkmanager 'build-tools;27.0.3'
|
||||||
|
|
||||||
|
# Download Monsoon
|
||||||
|
RUN mkdir -p /home/wa/monsoon
|
||||||
|
RUN curl https://android.googlesource.com/platform/cts/+/master/tools/utils/monsoon.py\?format\=TEXT | base64 --decode > /home/wa/monsoon/monsoon.py
|
||||||
|
RUN chmod +x /home/wa/monsoon/monsoon.py
|
||||||
|
|
||||||
# Update the path
|
# Update the path
|
||||||
|
RUN echo 'export PATH=/home/wa/monsoon:${PATH}' >> /home/wa/.bashrc
|
||||||
RUN echo 'export PATH=/home/wa/AndroidSDK/platform-tools:${PATH}' >> /home/wa/.bashrc
|
RUN echo 'export PATH=/home/wa/AndroidSDK/platform-tools:${PATH}' >> /home/wa/.bashrc
|
||||||
RUN echo 'export PATH=/home/wa/AndroidSDK/build-tools:${PATH}' >> /home/wa/.bashrc
|
RUN echo 'export PATH=/home/wa/AndroidSDK/build-tools:${PATH}' >> /home/wa/.bashrc
|
||||||
RUN echo 'export ANDROID_HOME=/home/wa/AndroidSDK' >> /home/wa/.bashrc
|
RUN echo 'export ANDROID_HOME=/home/wa/AndroidSDK' >> /home/wa/.bashrc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user