blob: e333c17daa386d4077931505c7f18937cca51bd6 [file] [log] [blame]
Mike Marchetti8743c4a2017-11-09 08:23:22 -05001FROM ubuntu:16.04
2
3RUN apt-get update && apt-get -y install python3 curl build-essential apt-transport-https sudo software-properties-common
4RUN curl http://repos.riftio.com/public/xenial-riftware-public-key | apt-key add -
5RUN curl -o /etc/apt/sources.list.d/rift.list http://buildtracker.riftio.com/repo_file/ub16/OSM3/
6
7ARG RW_PLATFORM_RELEASE=5.2.0.3.73627
8RUN apt-get update && \
9 apt-get -y install \
10 rw.tools-container-tools=${RW_PLATFORM_RELEASE} \
11 rw.tools-scripts=${RW_PLATFORM_RELEASE}
12
13RUN /usr/rift/container_tools/mkcontainer --modes MANO-base,rw-platform,UI-base --repo OSM3 --rw-version ${RW_PLATFORM_RELEASE}
14#/usr/rift/container_tools/mkcontainer --modes UI-base --rw-version ${PLATFORM_VERSION}
15
16# now disable the RIFT OSM repo so that we'll get MANO from
17# the OSM repos
18RUN rm -f /etc/apt/sources.list.d/rift.list && apt-get update
19
20ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
21ARG RELEASE=ReleaseTHREE-rc16
22ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
23ARG REPOSITORY=testing
24
25RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
26RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} SO UI RO IM osmclient openvim" && apt update
27
28RUN apt-get install -y \
29 rw.core.mano-mano \
30 rw.core.mano-rwcal-plugin-aws \
31 rw.core.mano-rwcal-plugin-cloudsim \
32 rw.core.mano-rwcal-plugin-cloudsimproxy \
33 rw.core.mano-rwcal-plugin-openmano-vimconnector \
34 rw.core.mano-rwcal-plugin-openstack \
35 rw.core.mano-rwcal-plugin-mock
36
37RUN apt-get install -y python3-pip python3-setuptools
38RUN pip3 install juju
39
40RUN apt-get install -y rw.ui-skyquake
41RUN apt-get install -y tcpdump telnet
42
43RUN chmod 777 /usr/rift /usr/rift/usr/share
44
45EXPOSE 22 80 2024 4567 8000 8008 8443
46
47RUN apt-get -y install openssh-client
48
49RUN mkdir -p /var/log/rift
50CMD /usr/rift/bin/start_launchpad