From 0142c227fca974fb65561d0aeb9b38c8683e22e6 Mon Sep 17 00:00:00 2001 From: lhinds Date: Wed, 17 May 2017 13:31:18 +0100 Subject: Initial code push of Anteater Likely far to much to cover in a commit msg. Main bulk is the Anteater code itself, alongside packaging requirements and build tools and Dockerfile. Unit tests are planned as a follow up, so pushing this for now so that efforts can get underway to integrate the tool with jjb. Questions on how it works, please reach me in IRC. Change-Id: I2cd3cae391f8bf2cdc91b39c56dfc4833a1c4913 Signed-off-by: lhinds --- docker/Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker/Dockerfile (limited to 'docker/Dockerfile') diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..bd756ff --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,30 @@ +############################################################################## +# Anteater Dockerfile +############################################################################## +# Copyright (c) 2017 Luke Hinds , Red Hat +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +FROM centos:latest +MAINTAINER Luke Hinds +LABEL version="0.1" description="Anteater - OPNFV Gerrit Security Gate Checks" + +ENV HOME /home/opnfv +ENV ANT_HOME ${HOME}/anteater +RUN mkdir -p ${ANT_HOME} + +# Packaged dependencies +RUN yum -y install epel-release +RUN yum -y update +RUN yum -y install git python-devel python-pip +RUN yum clean all + +# Commands to clone and install +RUN git clone https://gerrit.opnfv.org/gerrit/releng-anteater ${ANT_HOME} +WORKDIR ${ANT_HOME} +RUN /usr/bin/pip install -r ${ANT_HOME}/requirements.txt +RUN python ${ANT_HOME}/setup.py install -- cgit 1.2.3-korg