summaryrefslogtreecommitdiffstats
path: root/repo/jhenv_template/ubuntu/xenial/Dockerfile
blob: 6b9b517a6e020ccfed58ae9189a6dafd3dea81a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:16.04
MAINTAINER Yifei Xue <xueyifei@huawei.com>

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 xenial-jh-ppa/conf

RUN echo 'Codename: xenial\n\
Components: main\n\
Architectures: amd64\n'\
>> xenial-jh-ppa/conf/distributions

RUN reprepro -b xenial-jh-ppa includedeb xenial jh_deb/*.deb

RUN tar -zcvf /jh-ppa-xenial.tar.gz ./xenial-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_xenial.tar.gz jh_env_package/

RUN chmod +x /cp_env.sh

CMD ["/cp_env.sh"]