bd756ffe4ecea9c8afaafea2612cf8cb36605963
[releng-anteater.git] / docker / Dockerfile
1 ##############################################################################
2 # Anteater Dockerfile
3 ##############################################################################
4 # Copyright (c) 2017 Luke Hinds <lhinds@redhat.com>, Red Hat
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 FROM centos:latest
13 MAINTAINER Luke Hinds <lhinds@redhat.com>
14 LABEL version="0.1" description="Anteater - OPNFV Gerrit Security Gate Checks"
15
16 ENV HOME /home/opnfv
17 ENV ANT_HOME ${HOME}/anteater
18 RUN mkdir -p ${ANT_HOME}
19
20 # Packaged dependencies
21 RUN yum -y install epel-release
22 RUN yum -y update
23 RUN yum -y install git python-devel python-pip
24 RUN yum clean all
25
26 # Commands to clone and install
27 RUN git clone https://gerrit.opnfv.org/gerrit/releng-anteater ${ANT_HOME}
28 WORKDIR ${ANT_HOME}
29 RUN /usr/bin/pip install -r ${ANT_HOME}/requirements.txt
30 RUN python ${ANT_HOME}/setup.py install