Adding LICENSE file
[genesis.git] / fuel-build / docker / ubuntu-builder / Dockerfile
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 # stefan.k.berg@ericsson.com
5 # jonas.bjurel@ericsson.com
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 FROM ubuntu:14.04
13 RUN apt-get update
14 RUN apt-get install -y make python-setuptools python-all dpkg-dev debhelper \
15     fuseiso git genisoimage bind9-host wget curl lintian tmux lxc iptables \
16     ca-certificates sudo apt-utils lsb-release
17
18 RUN echo "ALL ALL=NOPASSWD: ALL" > /etc/sudoers.d/open-sudo
19 RUN chmod 0440 /etc/sudoers.d/open-sudo
20
21 ADD ./setcontext /root/setcontext
22 RUN chmod +x /root/setcontext
23 ADD ./enable_dockerx2 /root/enable_dockerx2
24 RUN chmod +x /root/enable_dockerx2
25 VOLUME /var/lib/docker