X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=build%2Fdocker%2FDockerfile;h=41a555f6ca13566d1bf57962974c46d6f0cd58b6;hb=06bb603c88f8e3eb39d3539e3b73811d4bb0e435;hp=9d1881c05773d07581e94ad912a62889282381f2;hpb=58ab9100f56b4252578c9c13cb8060d87285f1ba;p=fuel.git diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile index 9d1881c05..41a555f6c 100644 --- a/build/docker/Dockerfile +++ b/build/docker/Dockerfile @@ -13,20 +13,24 @@ FROM ubuntu:14.04 ENV http_proxy INSERT_HTTP_PROXY ENV https_proxy INSERT_HTTPS_PROXY ENV no_proxy INSERT_NO_PROXY +ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN apt-get install -y software-properties-common python-software-properties \ make python-setuptools python-all dpkg-dev debhelper \ fuseiso git genisoimage bind9-host wget curl lintian tmux lxc iptables \ - ca-certificates sudo apt-utils lsb-release dosfstools debmirror + ca-certificates sudo apt-utils lsb-release dosfstools debmirror p7zip-full RUN echo "ALL ALL=NOPASSWD: ALL" > /etc/sudoers.d/open-sudo RUN echo "Defaults env_keep += \"ftp_proxy http_proxy https_proxy no_proxy RSYNC_PROXY RSYNC_CONNECT_PROG npm_config_registry\"" > /etc/sudoers.d/keep-proxies # Keeping PWD is needed to build as root RUN echo "Defaults env_keep += \"PWD\"" > /etc/sudoers.d/keep-pwd +# Keeping variables for ISO build +RUN echo "Defaults env_keep += \"MIRROR_UBUNTU MIRROR_UBUNTU_ROOT MIRROR_MOS_UBUNTU MIRROR_MOS_UBUNTU_ROOT MIRROR_FUEL LATEST_TARGET_UBUNTU\"" > /etc/sudoers.d/keep-mos RUN chmod 0440 /etc/sudoers.d/open-sudo RUN chmod 0440 /etc/sudoers.d/keep-proxies RUN chmod 0440 /etc/sudoers.d/keep-pwd +RUN chmod 0440 /etc/sudoers.d/keep-mos RUN chmod 4755 /bin/fusermount ADD ./setcontext /root/setcontext