3 # Schema: https://github.com/projectatomic/ContainerApplicationGenericLabels
4 LABEL name="Int/Pack deb-building container" \
6 vendor="OpenDaylight" \
7 summary="ODL Integration/Packaging container for building .debs" \
8 vcs-url="https://git.opendaylight.org/gerrit/p/integration/packaging.git"
10 # Install system-level requirements
11 RUN yum install -y epel-release && yum clean all
12 RUN yum install -y fedora-packager \
16 # Create user to do the build, add them to mock group
18 RUN usermod -a -G mock builder
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
29 ENTRYPOINT ["/build/build.py"]