| Mike Marchetti | 8743c4a | 2017-11-09 08:23:22 -0500 | [diff] [blame] | 1 | FROM ubuntu:16.04 |
| 2 | |
| 3 | RUN apt-get update && apt-get -y install python3 curl build-essential apt-transport-https sudo software-properties-common |
| 4 | RUN curl http://repos.riftio.com/public/xenial-riftware-public-key | apt-key add - |
| 5 | RUN curl -o /etc/apt/sources.list.d/rift.list http://buildtracker.riftio.com/repo_file/ub16/OSM3/ |
| 6 | |
| 7 | ARG RW_PLATFORM_RELEASE=5.2.0.3.73627 |
| 8 | RUN apt-get update && \ |
| 9 | apt-get -y install \ |
| 10 | rw.tools-container-tools=${RW_PLATFORM_RELEASE} \ |
| 11 | rw.tools-scripts=${RW_PLATFORM_RELEASE} |
| 12 | |
| 13 | RUN /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 |
| 18 | RUN rm -f /etc/apt/sources.list.d/rift.list && apt-get update |
| 19 | |
| 20 | ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian |
| 21 | ARG RELEASE=ReleaseTHREE-rc16 |
| 22 | ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg |
| 23 | ARG REPOSITORY=testing |
| 24 | |
| 25 | RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add - |
| 26 | RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} SO UI RO IM osmclient openvim" && apt update |
| 27 | |
| 28 | RUN 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 | |
| 37 | RUN apt-get install -y python3-pip python3-setuptools |
| 38 | RUN pip3 install juju |
| 39 | |
| 40 | RUN apt-get install -y rw.ui-skyquake |
| 41 | RUN apt-get install -y tcpdump telnet |
| 42 | |
| 43 | RUN chmod 777 /usr/rift /usr/rift/usr/share |
| 44 | |
| 45 | EXPOSE 22 80 2024 4567 8000 8008 8443 |
| 46 | |
| 47 | RUN apt-get -y install openssh-client |
| 48 | |
| 49 | RUN mkdir -p /var/log/rift |
| 50 | CMD /usr/rift/bin/start_launchpad |