metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ceste...@apache.org
Subject incubator-metron git commit: METRON-306: Create Docker container for RPM creation (dlyle65535 via cestella) closes apache/incubator-metron#190
Date Wed, 20 Jul 2016 13:19:32 GMT
Repository: incubator-metron
Updated Branches:
  refs/heads/master 5ffcef8d4 -> 13c5a4cd1


METRON-306: Create Docker container for RPM creation (dlyle65535 via cestella) closes apache/incubator-metron#190


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/13c5a4cd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/13c5a4cd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/13c5a4cd

Branch: refs/heads/master
Commit: 13c5a4cd10ceb80a27eaffa359f08c4058ed5f09
Parents: 5ffcef8
Author: dlyle65535 <dlyle65535@gmail.com>
Authored: Wed Jul 20 09:19:16 2016 -0400
Committer: cstella <cestella@gmail.com>
Committed: Wed Jul 20 09:19:16 2016 -0400

----------------------------------------------------------------------
 .../contrib/ansible-docker/Dockerfile           | 49 --------------------
 .../contrib/ansible-docker/README.md            | 17 -------
 .../contrib/ansible-docker/ansible.cfg          | 28 -----------
 .../packaging/docker/ansible-docker/Dockerfile  | 49 ++++++++++++++++++++
 .../packaging/docker/ansible-docker/README.md   | 17 +++++++
 .../packaging/docker/ansible-docker/ansible.cfg | 28 +++++++++++
 .../packaging/docker/rpm-docker/Dockerfile      | 29 ++++++++++++
 .../packaging/docker/rpm-docker/README.md       |  8 ++++
 8 files changed, 131 insertions(+), 94 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/contrib/ansible-docker/Dockerfile
----------------------------------------------------------------------
diff --git a/metron-deployment/contrib/ansible-docker/Dockerfile b/metron-deployment/contrib/ansible-docker/Dockerfile
deleted file mode 100644
index 1037bca..0000000
--- a/metron-deployment/contrib/ansible-docker/Dockerfile
+++ /dev/null
@@ -1,49 +0,0 @@
-#
-#  Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-FROM centos:6.6
-MAINTAINER Apache Metron
-
-RUN yum install -y tar
-RUN yum install -y wget
-RUN yum groupinstall -y "Development tools"
-RUN yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel libffi-devel
-RUN wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz -O /usr/src/Python-2.7.10.tgz
-WORKDIR /usr/src
-RUN tar xvf Python-2.7.10.tgz
-WORKDIR /usr/src/Python-2.7.10
-RUN ./configure
-RUN make altinstall
-WORKDIR /usr/src
-RUN wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz
-O /usr/src/setuptools-11.3.tar.gz
-RUN tar xvf setuptools-11.3.tar.gz
-WORKDIR /usr/src/setuptools-11.3
-RUN python2.7 setup.py install
-RUN easy_install-2.7 pip
-RUN pip2.7 install ansible==2.0.0.2
-RUN pip2.7 install boto
-COPY ansible.cfg /root
-ENV ANSIBLE_CONFIG /root/ansible.cfg
-RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
-RUN yum install -y which
-RUN yum install -y nss
-WORKDIR /usr/src
-RUN wget http://apache.cs.utah.edu/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
-RUN tar xzvf apache-maven-3.2.5-bin.tar.gz
-RUN mv apache-maven-3.2.5 /opt/maven
-RUN ln -s /opt/maven/bin/mvn /usr/bin/mvn
-WORKDIR /root
-

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/contrib/ansible-docker/README.md
----------------------------------------------------------------------
diff --git a/metron-deployment/contrib/ansible-docker/README.md b/metron-deployment/contrib/ansible-docker/README.md
deleted file mode 100644
index f1b5ea6..0000000
--- a/metron-deployment/contrib/ansible-docker/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# Overview
-The Metron ansible-docker container is provided in an effort reduce the installation burden
of deploying Metron in a live envirionment.
-It is provisioned with software required to sucessfully run the deployment scripts.
-
-## Building the Container
-1. Install Docker [https://www.docker.com/products/overview]
-2. Navigate to <project-directory>/metron-deployment/contrib/ansible-docker
-3. Build the container `docker build -t ansible-docker:2.0.0.2 .`
-
-## Using the Container
-Full instruction are found on the wiki [https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=65144361].
-
-tl;dr
-
-1. docker run -it -v <project-directory>:/root/incubator-metron ansible-docker:2.0.0.2
bash
-2. cd /root/incubator-metron
-3. mvn clean package -DskipTests

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/contrib/ansible-docker/ansible.cfg
----------------------------------------------------------------------
diff --git a/metron-deployment/contrib/ansible-docker/ansible.cfg b/metron-deployment/contrib/ansible-docker/ansible.cfg
deleted file mode 100644
index 22335a3..0000000
--- a/metron-deployment/contrib/ansible-docker/ansible.cfg
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-#  Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-[defaults]
-host_key_checking = False
-library = ../extra_modules
-roles_path = ../roles
-pipelining = True
-remote_user = centos
-forks = 20
-log_path = ./ansible.log
-
-# fix for "ssh throws 'unix domain socket too long' " problem
-[ssh_connection]
-control_path = ~/.ssh/ansible-ssh-%%h-%%r

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/packaging/docker/ansible-docker/Dockerfile
----------------------------------------------------------------------
diff --git a/metron-deployment/packaging/docker/ansible-docker/Dockerfile b/metron-deployment/packaging/docker/ansible-docker/Dockerfile
new file mode 100644
index 0000000..1037bca
--- /dev/null
+++ b/metron-deployment/packaging/docker/ansible-docker/Dockerfile
@@ -0,0 +1,49 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+FROM centos:6.6
+MAINTAINER Apache Metron
+
+RUN yum install -y tar
+RUN yum install -y wget
+RUN yum groupinstall -y "Development tools"
+RUN yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel libffi-devel
+RUN wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz -O /usr/src/Python-2.7.10.tgz
+WORKDIR /usr/src
+RUN tar xvf Python-2.7.10.tgz
+WORKDIR /usr/src/Python-2.7.10
+RUN ./configure
+RUN make altinstall
+WORKDIR /usr/src
+RUN wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz
-O /usr/src/setuptools-11.3.tar.gz
+RUN tar xvf setuptools-11.3.tar.gz
+WORKDIR /usr/src/setuptools-11.3
+RUN python2.7 setup.py install
+RUN easy_install-2.7 pip
+RUN pip2.7 install ansible==2.0.0.2
+RUN pip2.7 install boto
+COPY ansible.cfg /root
+ENV ANSIBLE_CONFIG /root/ansible.cfg
+RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
+RUN yum install -y which
+RUN yum install -y nss
+WORKDIR /usr/src
+RUN wget http://apache.cs.utah.edu/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
+RUN tar xzvf apache-maven-3.2.5-bin.tar.gz
+RUN mv apache-maven-3.2.5 /opt/maven
+RUN ln -s /opt/maven/bin/mvn /usr/bin/mvn
+WORKDIR /root
+

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/packaging/docker/ansible-docker/README.md
----------------------------------------------------------------------
diff --git a/metron-deployment/packaging/docker/ansible-docker/README.md b/metron-deployment/packaging/docker/ansible-docker/README.md
new file mode 100644
index 0000000..e00445e
--- /dev/null
+++ b/metron-deployment/packaging/docker/ansible-docker/README.md
@@ -0,0 +1,17 @@
+# Overview
+The Metron ansible-docker container is provided in an effort reduce the installation burden
of deploying Metron in a live envirionment.
+It is provisioned with software required to sucessfully run the deployment scripts.
+
+## Building the Container
+1. Install Docker [https://www.docker.com/products/overview]
+2. Navigate to <project-directory>/metron-deployment/packaging/docker/ansible-docker
+3. Build the container `docker build -t ansible-docker:2.0.0.2 .`
+
+## Using the Container
+Full instructions are found on the wiki [https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=65144361].
+
+tl;dr
+
+1. docker run -it -v <project-directory>:/root/incubator-metron ansible-docker:2.0.0.2
bash
+2. cd /root/incubator-metron
+3. mvn clean package -DskipTests

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/packaging/docker/ansible-docker/ansible.cfg
----------------------------------------------------------------------
diff --git a/metron-deployment/packaging/docker/ansible-docker/ansible.cfg b/metron-deployment/packaging/docker/ansible-docker/ansible.cfg
new file mode 100644
index 0000000..22335a3
--- /dev/null
+++ b/metron-deployment/packaging/docker/ansible-docker/ansible.cfg
@@ -0,0 +1,28 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+[defaults]
+host_key_checking = False
+library = ../extra_modules
+roles_path = ../roles
+pipelining = True
+remote_user = centos
+forks = 20
+log_path = ./ansible.log
+
+# fix for "ssh throws 'unix domain socket too long' " problem
+[ssh_connection]
+control_path = ~/.ssh/ansible-ssh-%%h-%%r

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/packaging/docker/rpm-docker/Dockerfile
----------------------------------------------------------------------
diff --git a/metron-deployment/packaging/docker/rpm-docker/Dockerfile b/metron-deployment/packaging/docker/rpm-docker/Dockerfile
new file mode 100644
index 0000000..2fd2565
--- /dev/null
+++ b/metron-deployment/packaging/docker/rpm-docker/Dockerfile
@@ -0,0 +1,29 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+
+FROM centos:centos6
+
+RUN yum install -y tar
+RUN yum install -y wget
+RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
+WORKDIR /usr/src
+RUN wget http://apache.cs.utah.edu/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
+RUN tar xzvf apache-maven-3.2.5-bin.tar.gz
+RUN mv apache-maven-3.2.5 /opt/maven
+RUN ln -s /opt/maven/bin/mvn /usr/bin/mvn
+RUN yum -y install asciidoc rpm-build rpm2cpio tar unzip xmlto zip rpmlint && yum
clean all
+WORKDIR /root

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/13c5a4cd/metron-deployment/packaging/docker/rpm-docker/README.md
----------------------------------------------------------------------
diff --git a/metron-deployment/packaging/docker/rpm-docker/README.md b/metron-deployment/packaging/docker/rpm-docker/README.md
new file mode 100644
index 0000000..5ab7a82
--- /dev/null
+++ b/metron-deployment/packaging/docker/rpm-docker/README.md
@@ -0,0 +1,8 @@
+# Overview
+The Metron ansible-docker container is provided in an effort reduce the installation burden
of deploying Metron in a live envirionment.
+It is provisioned with software required to sucessfully run the deployment scripts.
+
+## Building the Container
+1. Install Docker [https://www.docker.com/products/overview]
+2. Navigate to <project-directory>/metron-deployment/packaging/rpm-docker
+3. Build the container `docker build -t rpm-docker .`


Mime
View raw message