aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorlhinds <lhinds@redhat.com>2017-05-17 13:31:18 +0100
committerlhinds <lhinds@redhat.com>2017-05-22 14:12:27 +0100
commit0142c227fca974fb65561d0aeb9b38c8683e22e6 (patch)
treef802b60e2ceab8b033212568d3adddc754faa7da /docker
parent9c00ca00dcad5624288de38e0a529f7f7b3915db (diff)
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 <lhinds@redhat.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile30
1 files changed, 30 insertions, 0 deletions
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 <lhinds@redhat.com>, 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 <lhinds@redhat.com>
+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