Files
fm-orchestrator/jenkins-check-Dockerfile
Matt Prahl b4082dc551 Rename module from rida to module_build_service
Rename routes from /rida/1/module-builds/ to /module-build-service/1/module-builds/
2016-10-24 10:30:23 -04:00

24 lines
761 B
Plaintext

# This is what jenkins uses to check, roughly
FROM fedora:24
# so we don't have to compile those when fetched from PyPI
RUN dnf install -y python python-virtualenv python-devel libffi-devel redhat-rpm-config openssl-devel gcc gcc-c++ koji git swig && \
dnf autoremove -y && dnf clean all && \
mkdir /opt/module_build_service/
WORKDIR /opt/module_build_service/
COPY ./requirements.txt /opt/module_build_service/
RUN pip install --user -r ./requirements.txt
# This isn't what we do in jenkins, blah ...
# RUN pip install --upgrade -r test-requirements.txt
RUN pip install --upgrade mock
# Need to force reinstall so nose gets the virtualenv modules.
RUN pip install nose --ignore-installed
COPY . /opt/module_build_service/
CMD ["nosetests", "."]