diff options
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 30 |
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 |