Update example repo config files for ODL Neon SR2
[integration/packaging.git] / packages / rpm / Dockerfile
1 FROM centos:7
2
3 # Schema: https://github.com/projectatomic/ContainerApplicationGenericLabels
4 LABEL name="Int/Pack deb-building container" \
5       version="0.1" \
6       vendor="OpenDaylight" \
7       summary="ODL Integration/Packaging container for building .debs" \
8       vcs-url="https://git.opendaylight.org/gerrit/p/integration/packaging.git"
9
10 # Install system-level requirements
11 RUN yum install -y epel-release && yum clean all
12 RUN yum install -y fedora-packager \
13     python-pip \
14     && yum clean all
15
16 # Create user to do the build, add them to mock group
17 RUN useradd builder
18 RUN usermod -a -G mock builder
19 USER builder
20
21 # Install requirements managed by pip
22 COPY requirements.txt /tmp/requirements.txt
23 RUN pip install --upgrade pip && pip install -r /tmp/requirements.txt
24
25 # ODL Karaf SSH port
26 EXPOSE 8101
27
28 RUN mkdir -p /build
29 ENTRYPOINT ["/build/build.py"]
30 CMD ["-h"]