Hi All,
This is neto from Brazil
How are you?
Here you have instructions how to create a Docker Image with NetApp Perfstat 8.3 and all of the dependencies.
1 – Dockerfile file contents:
FROM centos:latest
MAINTAINER Rodrigo Nascimento and neto from Brazil - NetApp
COPY Perfstat*Linux.tar.gz /root
WORKDIR /root
RUN yum -y update && yum -y install glibc-devel compat-libstdc++-33.i686 libstdc++.i686 compat-libstdc++-33.i686 libstdc++.i686 libgcc.i686 gcc gcc-c++ glibc-devel.i686 openssl-libs.i686 libssh2.i686 && ln -s /usr/lib/libssl.so.10 /usr/lib/libssl.so.1.0.0 && ln -s /usr/lib/libcrypto.so.1.0.1e /usr/lib/libcrypto.so.1.0.0 && curl -L -o boost_1_57_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz && tar zxvf boost_1_57_0.tar.gz && tar xvf Perfstat8*Linux.tar.gz && mv /root/Perfstat*Linux /root/perfstat && rm -rf /root/boost_1_57_0.tar.gz /root/Perfstat*Linux.tar.gz /root/Dockerfile && cd /root/boost_1_57_0 && ./bootstrap.sh --show-libraries && cd /root/boost_1_57_0 && ./b2 address-model=32 -a; exit 0
RUN cd /root/boost_1_57_0 && rm -rf b2 boost-build.jam bootstrap.bat index.htm libs bin.v2 boostcpp.jam bootstrap.log index.html status bjam boost.css bootstrap.sh INSTALL more tools boost boost.png doc Jamroot rst.css && yum -y remove glibc-devel compat-libstdc++-33.i686 libstdc++.i686 compat-libstdc++-33.i686 libstdc++.i686 libgcc.i686 gcc gcc-c++ glibc-devel.i686 openssl-libs.i686 libssh2.i686 && yum -y install openssl-libs.i686 libssh2.i686 && ln -s /usr/lib/libssl.so.10 /usr/lib/libssl.so.1.0.0 && ln -s /usr/lib/libcrypto.so.1.0.1e /usr/lib/libcrypto.so.1.0.0
ENV LD_LIBRARY_PATH=/root/boost_1_57_0/stage/lib:/usr/lib64
ENTRYPOINT ["/root/perfstat/perfstat8"]
CMD ["/root/perfstat/perfstat8"]
2 – Building the Docker Image:
- Install Docker client and server – http://www.docker.com
- Create a Dockerfile file on your local folder (e.g. /Users/neto/perfstat)
- Use your NetApp credentials to download the NetApp Perfstat binary from support.netapp.com and copy it to a local folder (e.g. /Users/neto/perfstat/Perfstat8_20150514_2838689_Linux.tar.gz)
- Copy the “1 – Dockerfile file contents” to your Dockerfile file (e.g. /Users/neto/perfstat/Dockerfile)
- To build the image, please run:
docker build -t <image-name>:latest --rm=true .
For example:
docker build -t netofrombrazil/perfstat:latest --rm=true .
Please wait … (around 16 minutes to download and compile all needed packages for NetApp Perfstat 8.3)
3 – Running the Docker Container:
To run the container, please do:
docker run -ti -v /<local-folder>:/data netofrombrazil/perfstat perfstat8 -i 1,2 --verbose <cluster-IP> --mode="cluster-mode" -o /data/output
For example:
docker run -ti -v /Users/neto/perfstat:/data netofrombrazil/perfstat perfstat8 -i 1,2 --verbose 10.61.105.115 --mode="cluster-mode" -o /data/output

The <local-folder> is destination for all the NetApp Perfstat output files.
If you have any questions, please feel free to contact me at:[neto,n,netofrombrazil] at netapp dot com
All the best,
neto
NetApp – I love this company!