a625e422804564bfcaab86da9a600b85e8900f60
[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 # environment variables
17 ARG BRANCH=master
18
19 ENV HOME /home/opnfv
20 ENV ANT_HOME ${HOME}/anteater
21 RUN mkdir -p ${ANT_HOME}
22
23 # Packaged dependencies
24 RUN yum -y install epel-release
25 RUN yum -y update
26 RUN yum -y install git python-devel python-pip
27 RUN yum clean all
28
29 # Commands to clone and install
30 RUN git clone https://gerrit.opnfv.org/gerrit/releng-anteater ${ANT_HOME}
31 WORKDIR ${ANT_HOME}
32 RUN /usr/bin/pip install -r ${ANT_HOME}/requirements.txt
33 RUN python ${ANT_HOME}/setup.py install