Build on jenkins nodes with label docker
[osm/UI.git] / Dockerfile
1 FROM ubuntu:16.04
2
3 RUN apt-get update && apt-get -y install python3 curl build-essential
4 RUN curl http://repos.riftio.com/public/xenial-riftware-public-key | apt-key add - && \
5         curl -o /etc/apt/sources.list.d/OSM.list http://buildtracker.riftio.com/repo_file/ub16/OSM/ && \
6         apt-get update && \
7         apt-get -y install rw.toolchain-rwbase \
8                 rw.toolchain-rwtoolchain \
9                 rw.core.mgmt-mgmt \
10                 rw.core.util-util \
11                 rw.core.rwvx-rwvx \
12                 rw.core.rwvx-rwdts \
13                 rw.automation.core-RWAUTO \
14                 rw.tools-container-tools \
15                 rw.tools-scripts \
16                 python-cinderclient \
17                 libxml2-dev \
18                 libxslt-dev
19
20 RUN /usr/rift/container_tools/mkcontainer --modes build --modes ext --repo OSM
21
22 RUN chmod 777 /usr/rift /usr/rift/usr/share
23
24 RUN rm -rf /tmp/npm-cache