Add missing license files
[yardstick.git] / Dockerfile
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
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 ##############################################################################
9
10 FROM ubuntu:14.04
11 MAINTAINER Hans Feldt <hans.feldt@ericsson.com>
12
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
15
16 RUN apt-get update && apt-get install -y \
17     libffi-dev \
18     libssl-dev \
19     python \
20     python-dev \
21     python-setuptools && \
22     easy_install -U setuptools
23
24 COPY . /tmp/yardstick
25
26 RUN cd /tmp/yardstick && \
27     python setup.py install && \
28     apt-get -y remove \
29         binutils \
30         cpp \
31         gcc \
32         libffi-dev \
33         libssl-dev \
34         python3 \
35         python-dev && \
36     apt-get -y autoremove && \
37     apt-get clean && \
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 && \
42     rm -rf /tmp/* && \
43     rm -rf /var/lib/apt/lists/*
44
45 USER yardstick
46 CMD bash --login
47 ENV HOME /home/yardstick
48 WORKDIR /home/yardstick