1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 MAINTAINER Hans Feldt <hans.feldt@ericsson.com>
13 # TODO: Is there some easy way to get the fastest/closest mirror?
14 #RUN sed -i 's/archive.ubuntu.com/ftp.acc.umu.se/g' /etc/apt/sources.list
16 RUN apt-get update && apt-get install -y \
21 python-setuptools && \
22 easy_install -U setuptools
26 RUN cd /tmp/yardstick && \
27 python setup.py install && \
36 apt-get -y autoremove && \
38 useradd -u 65500 -m yardstick && \
39 cp -a samples /home/yardstick && \
40 chown -R yardstick /home/yardstick/samples && \
41 chgrp -R yardstick /home/yardstick/samples && \
43 rm -rf /var/lib/apt/lists/*
47 ENV HOME /home/yardstick
48 WORKDIR /home/yardstick