From 35086233fdfb4163c589fc258229a931bb02df1a Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Wed, 2 Nov 2016 18:09:35 +0800 Subject: Create make_repo directory and optimize the current repo making related script JIRA: COMPASS-496 Change-Id: I662d996382d38a3e9d0de6598dabe403b9d51665 Signed-off-by: Yifei Xue --- repo/jhenv_template/ubuntu/trusty/Dockerfile | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 repo/jhenv_template/ubuntu/trusty/Dockerfile (limited to 'repo/jhenv_template/ubuntu/trusty/Dockerfile') diff --git a/repo/jhenv_template/ubuntu/trusty/Dockerfile b/repo/jhenv_template/ubuntu/trusty/Dockerfile new file mode 100644 index 00000000..4eeccb6c --- /dev/null +++ b/repo/jhenv_template/ubuntu/trusty/Dockerfile @@ -0,0 +1,54 @@ +FROM ubuntu:14.04.3 +MAINTAINER Yifei Xue + +ADD ./cp_env.sh /cp_env.sh + +RUN apt-get update + +RUN apt-get install -y wget + +RUN apt-get install -y -d mkisofs bc curl ipmitool openvswitch-switch \ +git python-pip python-dev figlet \ +libxslt-dev libxml2-dev libvirt-dev \ +build-essential qemu-utils qemu-kvm libvirt-bin \ +virtinst libmysqld-dev \ +libssl-dev libffi-dev python-cffi + +RUN wget -P /var/cache/apt/archives/ http://launchpadlibrarian.net/225838998/libffi6_3.1~rc1+r3.0.13-12ubuntu0.1_amd64.deb + +RUN mkdir jh_deb + +RUN cp /var/cache/apt/archives/*.deb jh_deb/ + +RUN apt-get install -y reprepro + +RUN mkdir -p trusty-jh-ppa/conf + +RUN echo 'Codename: trusty\n\ +Components: main\n\ +Architectures: amd64\n'\ +>> trusty-jh-ppa/conf/distributions + +RUN reprepro -b trusty-jh-ppa includedeb trusty jh_deb/*.deb + +RUN tar -zcvf /jh-ppa-trusty.tar.gz ./trusty-jh-ppa + +RUN apt-get install -y python-pip + +RUN mkdir jh_pip + +RUN pip install --upgrade paramiko jinja2 PyYAML setuptools pycrypto pyasn1 \ +cryptography MarkupSafe idna six enum34 ipaddress cffi pycparser \ +virtualenv cheetah requests netaddr pbr oslo.config ansible -d jh_pip/ + +RUN tar -zcvf jh_pip.tar.gz jh_pip/ + +RUN mkdir jh_env_package + +RUN mv *.tar.gz jh_env_package/ + +RUN tar -zcvf jh_env_trusty.tar.gz jh_env_package/ + +RUN chmod +x /cp_env.sh + +CMD ["/cp_env.sh"] -- cgit 1.2.3-korg