Support CentOS 6 (18.3 only)

Project: http://git-wip-us.apache.org/repos/asf/couchdb-ci/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ci/commit/5c4edb2d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ci/tree/5c4edb2d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ci/diff/5c4edb2d

Branch: refs/heads/master
Commit: 5c4edb2d5d4a146216b07f9f4fbf326b3b64d9ab
Parents: 399a8e0
Author: Joan Touzet <woh...@apache.org>
Authored: Wed Mar 22 23:19:06 2017 -0700
Committer: Joan Touzet <woh...@apache.org>
Committed: Wed Mar 22 23:28:54 2017 -0700

----------------------------------------------------------------------
 ansible/centos-6-base.yml                       | 25 ++++++++++++++
 ansible/centos-6-erlang-18.3.yml                | 23 +++++++++++++
 ansible/centos-6-erlang-default.yml             | 21 ++++++++++++
 ansible/centos-7-base.yml                       |  2 ++
 ansible/centos-7-erlang-18.3.yml                |  4 ++-
 .../roles/dependencies-centos/tasks/main.yml    | 17 ++++++----
 ansible/roles/erlang-18.3-centos/tasks/main.yml | 23 -------------
 ansible/roles/erlang-esl-centos/tasks/main.yml  | 23 +++++++++++++
 bin/centos-6-base/create-container.sh           | 28 ++++++++++++++++
 bin/centos-6-base/enter-container.sh            | 20 ++++++++++++
 bin/centos-6-base/publish-container.sh          | 20 ++++++++++++
 bin/centos-6-erlang-18.3/create-container.sh    | 28 ++++++++++++++++
 bin/centos-6-erlang-18.3/enter-container.sh     | 20 ++++++++++++
 bin/centos-6-erlang-18.3/publish-container.sh   | 20 ++++++++++++
 .../run-build-in-container.sh                   | 24 ++++++++++++++
 bin/centos-6-erlang-default/create-container.sh | 28 ++++++++++++++++
 bin/centos-6-erlang-default/enter-container.sh  | 20 ++++++++++++
 .../publish-container.sh                        | 20 ++++++++++++
 .../run-build-in-container.sh                   | 24 ++++++++++++++
 dockerfiles/centos-6-base                       | 33 +++++++++++++++++++
 dockerfiles/centos-6-erlang-18.3                | 34 ++++++++++++++++++++
 dockerfiles/centos-6-erlang-default             | 34 ++++++++++++++++++++
 22 files changed, 460 insertions(+), 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/centos-6-base.yml
----------------------------------------------------------------------
diff --git a/ansible/centos-6-base.yml b/ansible/centos-6-base.yml
new file mode 100644
index 0000000..1fdaa03
--- /dev/null
+++ b/ansible/centos-6-base.yml
@@ -0,0 +1,25 @@
+# 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.
+
+- hosts: couchdb-ci-worker
+  vars:
+    autoconf_archive_package_name: 
"http://springdale.math.ias.edu/data/puias/computational/6/x86_64/autoconf-archive-2015.02.24-1.sdl6.noarch.rpm";
+  remote_user: root
+  roles:
+  - geerlingguy.repo-epel
+  - dependencies-centos
+  - common

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/centos-6-erlang-18.3.yml
----------------------------------------------------------------------
diff --git a/ansible/centos-6-erlang-18.3.yml b/ansible/centos-6-erlang-18.3.yml
new file mode 100644
index 0000000..eeb8777
--- /dev/null
+++ b/ansible/centos-6-erlang-18.3.yml
@@ -0,0 +1,23 @@
+# 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.
+
+- hosts: couchdb-ci-worker
+  vars:
+    erlang_package_name: 
"http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.3-1~centos~6_amd64.rpm";
+  remote_user: root
+  roles:
+  - erlang-esl-centos

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/centos-6-erlang-default.yml
----------------------------------------------------------------------
diff --git a/ansible/centos-6-erlang-default.yml 
b/ansible/centos-6-erlang-default.yml
new file mode 100644
index 0000000..07bf3e1
--- /dev/null
+++ b/ansible/centos-6-erlang-default.yml
@@ -0,0 +1,21 @@
+# 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.
+
+- hosts: couchdb-ci-worker
+  remote_user: root
+  roles:
+  - erlang-default-centos

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/centos-7-base.yml
----------------------------------------------------------------------
diff --git a/ansible/centos-7-base.yml b/ansible/centos-7-base.yml
index 1a78c82..9633ec4 100644
--- a/ansible/centos-7-base.yml
+++ b/ansible/centos-7-base.yml
@@ -16,6 +16,8 @@
 #   under the License.
 
 - hosts: couchdb-ci-worker
+  vars:
+    autoconf_archive_package_name: "autoconf-archive"
   remote_user: root
   roles:
   - geerlingguy.repo-epel

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/centos-7-erlang-18.3.yml
----------------------------------------------------------------------
diff --git a/ansible/centos-7-erlang-18.3.yml b/ansible/centos-7-erlang-18.3.yml
index cffdc23..e45d70b 100644
--- a/ansible/centos-7-erlang-18.3.yml
+++ b/ansible/centos-7-erlang-18.3.yml
@@ -16,6 +16,8 @@
 #   under the License.
 
 - hosts: couchdb-ci-worker
+  vars:
+    erlang_package_name: 
"http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.3-1~centos~7_amd64.rpm";
   remote_user: root
   roles:
-  - erlang-18.3-centos
+  - erlang-esl-centos

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/roles/dependencies-centos/tasks/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/dependencies-centos/tasks/main.yml 
b/ansible/roles/dependencies-centos/tasks/main.yml
index e812142..f40221e 100644
--- a/ansible/roles/dependencies-centos/tasks/main.yml
+++ b/ansible/roles/dependencies-centos/tasks/main.yml
@@ -28,20 +28,23 @@
   yum: name={{item}} state=present
   with_items:
   - autoconf
-  - autoconf-archive
   - automake
   - curl-devel
   - libicu-devel
   - libtool
 
-- name: download nodejs 6.x repo setup script
-  get_url:
-    url: https://rpm.nodesource.com/setup_6.x
-    dest: /tmp/setup_6.x
-    mode: 0755
+# special case since autoconf-archive on CentOS 6 is not in EPEL
+- name: install autoconf-archive
+  yum:
+    name: "{{ autoconf_archive_package_name }}"
 
+- name: download nodejs 6.x repo setup script
+  command: "wget https://rpm.nodesource.com/setup_6.x";
+  args:
+    chdir: /tmp
+    
 - name: setup nodejs 6.x repo
-  command: /tmp/setup_6.x
+  command: /bin/bash /tmp/setup_6.x
 
 - name: install nodejs and npm
   yum:

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/roles/erlang-18.3-centos/tasks/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/erlang-18.3-centos/tasks/main.yml 
b/ansible/roles/erlang-18.3-centos/tasks/main.yml
deleted file mode 100644
index 2bf0555..0000000
--- a/ansible/roles/erlang-18.3-centos/tasks/main.yml
+++ /dev/null
@@ -1,23 +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.
-
-- name: download and install Erlang 18.3
-  yum:
-    name: 
"http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.3-1~centos~7_amd64.rpm";
-
-- name: clean up yum cache
-  command: yum clean all

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/ansible/roles/erlang-esl-centos/tasks/main.yml
----------------------------------------------------------------------
diff --git a/ansible/roles/erlang-esl-centos/tasks/main.yml 
b/ansible/roles/erlang-esl-centos/tasks/main.yml
new file mode 100644
index 0000000..a4a5e19
--- /dev/null
+++ b/ansible/roles/erlang-esl-centos/tasks/main.yml
@@ -0,0 +1,23 @@
+# 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.
+
+- name: download and install Erlang 18.3
+  yum:
+    name: "{{ erlang_package_name }}"
+
+- name: clean up yum cache
+  command: yum clean all

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-base/create-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-base/create-container.sh 
b/bin/centos-6-base/create-container.sh
new file mode 100755
index 0000000..8819ed6
--- /dev/null
+++ b/bin/centos-6-base/create-container.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+
+# The Docker containers need the root directory of this repository as their
+# build context (because they need the Ansible files).
+pushd `dirname $0`/../.. > /dev/null
+
+docker build -f dockerfiles/centos-6-base -t couchdbdev/centos-6-base .
+
+popd > /dev/null

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-base/enter-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-base/enter-container.sh 
b/bin/centos-6-base/enter-container.sh
new file mode 100755
index 0000000..31263f0
--- /dev/null
+++ b/bin/centos-6-base/enter-container.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# 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.
+
+docker run -it couchdbdev/centos-6-base bash

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-base/publish-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-base/publish-container.sh 
b/bin/centos-6-base/publish-container.sh
new file mode 100755
index 0000000..5268ee3
--- /dev/null
+++ b/bin/centos-6-base/publish-container.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# 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.
+
+docker push couchdbdev/centos-6-base

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-18.3/create-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-18.3/create-container.sh 
b/bin/centos-6-erlang-18.3/create-container.sh
new file mode 100755
index 0000000..f537030
--- /dev/null
+++ b/bin/centos-6-erlang-18.3/create-container.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+
+# The Docker containers need the root directory of this repository as their
+# build context (because they need the Ansible files).
+pushd `dirname $0`/../.. > /dev/null
+
+docker build -f dockerfiles/centos-6-erlang-18.3 -t 
couchdbdev/centos-6-erlang-18.3 .
+
+popd > /dev/null

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-18.3/enter-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-18.3/enter-container.sh 
b/bin/centos-6-erlang-18.3/enter-container.sh
new file mode 100755
index 0000000..69890f2
--- /dev/null
+++ b/bin/centos-6-erlang-18.3/enter-container.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# 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.
+
+docker run -it couchdbdev/centos-6-erlang-18.3 bash

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-18.3/publish-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-18.3/publish-container.sh 
b/bin/centos-6-erlang-18.3/publish-container.sh
new file mode 100755
index 0000000..4bfedb6
--- /dev/null
+++ b/bin/centos-6-erlang-18.3/publish-container.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# 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.
+
+docker push couchdbdev/centos-6-erlang-18.3

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-18.3/run-build-in-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-18.3/run-build-in-container.sh 
b/bin/centos-6-erlang-18.3/run-build-in-container.sh
new file mode 100755
index 0000000..33620fb
--- /dev/null
+++ b/bin/centos-6-erlang-18.3/run-build-in-container.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+pushd $( dirname "$0" )/../..
+pwd
+OS=centos-6 ERLANG=18.3 jenkins/build.sh
+popd

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-default/create-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-default/create-container.sh 
b/bin/centos-6-erlang-default/create-container.sh
new file mode 100755
index 0000000..f33b7ac
--- /dev/null
+++ b/bin/centos-6-erlang-default/create-container.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+
+# The Docker containers need the root directory of this repository as their
+# build context (because they need the Ansible files).
+pushd `dirname $0`/../.. > /dev/null
+
+docker build -f dockerfiles/centos-6-erlang-default -t 
couchdbdev/centos-6-erlang-default .
+
+popd > /dev/null

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-default/enter-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-default/enter-container.sh 
b/bin/centos-6-erlang-default/enter-container.sh
new file mode 100755
index 0000000..5cea955
--- /dev/null
+++ b/bin/centos-6-erlang-default/enter-container.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# 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.
+
+docker run -it couchdbdev/centos-6-erlang-default bash

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-default/publish-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-default/publish-container.sh 
b/bin/centos-6-erlang-default/publish-container.sh
new file mode 100755
index 0000000..b14c28b
--- /dev/null
+++ b/bin/centos-6-erlang-default/publish-container.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# 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.
+
+docker push couchdbdev/centos-6-erlang-default

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/bin/centos-6-erlang-default/run-build-in-container.sh
----------------------------------------------------------------------
diff --git a/bin/centos-6-erlang-default/run-build-in-container.sh 
b/bin/centos-6-erlang-default/run-build-in-container.sh
new file mode 100755
index 0000000..840fd62
--- /dev/null
+++ b/bin/centos-6-erlang-default/run-build-in-container.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+pushd $( dirname "$0" )/../..
+pwd
+OS=centos-6 ERLANG=default jenkins/build.sh
+popd

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/dockerfiles/centos-6-base
----------------------------------------------------------------------
diff --git a/dockerfiles/centos-6-base b/dockerfiles/centos-6-base
new file mode 100644
index 0000000..4f2b4c0
--- /dev/null
+++ b/dockerfiles/centos-6-base
@@ -0,0 +1,33 @@
+# 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
+
+# NOTE: All docker files need to be run from ../../, that is
+# docker build -f /docker/<container>/Dockerfile
+
+# Base Image: Plain Vanilla CentOS with Ansible installed
+FROM williamyeh/ansible:centos6-onbuild
+
+# Add ansible directory and cd to it
+ADD ./ansible /ansible
+WORKDIR /ansible
+
+# Install Ansible roles
+RUN ansible-galaxy install geerlingguy.repo-epel
+
+# Run Ansible to provision CentOS base container
+RUN ansible-playbook centos-6-base.yml \
+  --connection=local \
+  --inventory-file=./inventory/couchdb-ci-worker

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/dockerfiles/centos-6-erlang-18.3
----------------------------------------------------------------------
diff --git a/dockerfiles/centos-6-erlang-18.3 b/dockerfiles/centos-6-erlang-18.3
new file mode 100644
index 0000000..2164a69
--- /dev/null
+++ b/dockerfiles/centos-6-erlang-18.3
@@ -0,0 +1,34 @@
+# 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
+
+# NOTE: All docker files need to be run from ../../, that is
+# docker build -f /docker/<container>/Dockerfile
+
+FROM couchdbdev/centos-6-base:latest
+
+# Re-add ansible directory to pick up latest changes
+# This avoids having to cascade rebuild all images when changing
+# a role that only affects a child container
+ADD ./ansible /ansible
+
+# Run Ansible to provision container with Erlang 18.3
+RUN ansible-playbook centos-6-erlang-18.3.yml \
+  --connection=local \
+  --inventory-file=./inventory/couchdb-ci-worker
+
+USER couchdb
+
+CMD ["/home/couchdb/build-ci.sh"]

http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/5c4edb2d/dockerfiles/centos-6-erlang-default
----------------------------------------------------------------------
diff --git a/dockerfiles/centos-6-erlang-default 
b/dockerfiles/centos-6-erlang-default
new file mode 100644
index 0000000..e85df9c
--- /dev/null
+++ b/dockerfiles/centos-6-erlang-default
@@ -0,0 +1,34 @@
+# 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
+
+# NOTE: All docker files need to be run from ../../, that is
+# docker build -f /docker/<container>/Dockerfile
+
+FROM couchdbdev/centos-6-base:latest
+
+# Re-add ansible directory to pick up latest changes
+# This avoids having to cascade rebuild all images when changing
+# a role that only affects a child container
+ADD ./ansible /ansible
+
+# Run Ansible to provision container with CentOS' default Erlang
+RUN ansible-playbook centos-6-erlang-default.yml \
+  --connection=local \
+  --inventory-file=./inventory/couchdb-ci-worker
+
+USER couchdb
+
+CMD ["/home/couchdb/build-ci.sh"]

Reply via email to