Docker Image – NetApp Perfstat

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:

  1. Install Docker client and server – http://www.docker.com
  2. Create a Dockerfile file on your local folder (e.g. /Users/neto/perfstat)
  3. 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)
  4. Copy the “1 – Dockerfile file contents” to your Dockerfile file (e.g. /Users/neto/perfstat/Dockerfile)
  5. 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

Snip20151201_6

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!

This entry was posted in #NetAppInsight, Container, Docker, NetApp, netofrombrazil, Performance and tagged , , , , . Bookmark the permalink.

5 Responses to Docker Image – NetApp Perfstat

  1. But once you have all this output, what do you do with it afterward?

    Like

    • Hi Deanna,

      This is neto from Brazil

      How are you?

      If you have a support case and the NetApp Support Engineer requests a NetApp Perfstat… you have the procedure how to capture it 🙂

      Thanks for reading the blog.

      All the best,

      neto

      Like

  2. Eric Honcoop says:

    Hi Neto,

    Thanks for the neat little article! Keep em coming!
    How do you manage the authentication? The openssl thing is a pain-in-the-backside to get right on Windows, how does that work in docker?

    Kind regards from The Netherlands

    Like

  3. Andrew Sullivan says:

    Hi neto,

    Great work! Happy to see examples of our tools being containerized!

    It appears that we released a new version of perfstat8 in the last week or so which has boost statically compiled. This makes creating the container much easier. I created a Dockerfile here: https://github.com/acsulli/dockerfiles/blob/master/perfstat8/Dockerfile.

    Andrew

    Like

  4. Pingback: Perfstat in a Docker Container | GREENSTACK

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s