You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ju...@apache.org on 2018/10/05 01:21:06 UTC

bigtop git commit: BIGTOP-3089: Update provision config files with changes in 1.3.0 release

Repository: bigtop
Updated Branches:
  refs/heads/master c9dd37b2b -> 1187b5f29


BIGTOP-3089: Update provision config files with changes in 1.3.0 release

v1.3.0 supports: centos-7, fedora-26, debian-9, ubuntu-16.04, opensuse-42.3
config files in provisioner/docker should be updated to sync with these changes
Now config files contain ARCH variable to automatically load arch-dependent
repo. And docker-hadoop.sh will load correct puppet image by detecting CPU
arch. This makes only one config file is needed for a certain distro acrossing
different architectures.

This closes #402

Change-Id: Ic5d66cb837e78908fcf19c2e55f819db28866a55
Signed-off-by: Jun He <ju...@linaro.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/1187b5f2
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/1187b5f2
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/1187b5f2

Branch: refs/heads/master
Commit: 1187b5f2968fabdef885010de1442b6fffe20a8e
Parents: c9dd37b
Author: Jun He <ju...@linaro.org>
Authored: Wed Oct 3 20:52:33 2018 +0800
Committer: Jun He <ju...@apache.org>
Committed: Fri Oct 5 01:19:58 2018 +0000

----------------------------------------------------------------------
 provisioner/docker/config_centos-6.yaml         | 24 --------------------
 provisioner/docker/config_centos-7-aarch64.yaml | 24 --------------------
 provisioner/docker/config_centos-7.yaml         |  2 +-
 provisioner/docker/config_debian-8-aarch64.yaml | 24 --------------------
 provisioner/docker/config_debian-8.yaml         | 24 --------------------
 provisioner/docker/config_debian-9.yaml         | 24 ++++++++++++++++++++
 provisioner/docker/config_fedora-26.yaml        | 24 ++++++++++++++++++++
 .../docker/config_ubuntu-16.04-aarch64.yaml     | 24 --------------------
 provisioner/docker/config_ubuntu-16.04.yaml     |  2 +-
 provisioner/docker/docker-hadoop.sh             | 10 +++++++-
 10 files changed, 59 insertions(+), 123 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_centos-6.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_centos-6.yaml b/provisioner/docker/config_centos-6.yaml
deleted file mode 100644
index fbd6a83..0000000
--- a/provisioner/docker/config_centos-6.yaml
+++ /dev/null
@@ -1,24 +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.
-
-docker:
-        memory_limit: "4g"
-        image: "bigtop/puppet:trunk-centos-6"
-
-repo: "http://repos.bigtop.apache.org/releases/1.2.1/centos/6/x86_64"
-distro: centos
-components: [hdfs, yarn, mapreduce]
-enable_local_repo: false
-smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_centos-7-aarch64.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_centos-7-aarch64.yaml b/provisioner/docker/config_centos-7-aarch64.yaml
deleted file mode 100644
index 09266f4..0000000
--- a/provisioner/docker/config_centos-7-aarch64.yaml
+++ /dev/null
@@ -1,24 +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.
-
-docker:
-        memory_limit: "4g"
-        image: "bigtop/puppet:trunk-centos-7-aarch64"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.2.0/centos/7/aarch64"
-distro: centos
-components: [hdfs, yarn, mapreduce]
-enable_local_repo: false
-smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_centos-7.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_centos-7.yaml b/provisioner/docker/config_centos-7.yaml
index 1af307c..49f86ae 100644
--- a/provisioner/docker/config_centos-7.yaml
+++ b/provisioner/docker/config_centos-7.yaml
@@ -17,7 +17,7 @@ docker:
         memory_limit: "4g"
         image: "bigtop/puppet:trunk-centos-7"
 
-repo: "http://repos.bigtop.apache.org/releases/1.2.1/centos/7/x86_64"
+repo: "http://repos.bigtop.apache.org/releases/1.3.0/centos/7/$basearch"
 distro: centos
 components: [hdfs, yarn, mapreduce]
 enable_local_repo: false

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_debian-8-aarch64.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_debian-8-aarch64.yaml b/provisioner/docker/config_debian-8-aarch64.yaml
deleted file mode 100644
index 3459391..0000000
--- a/provisioner/docker/config_debian-8-aarch64.yaml
+++ /dev/null
@@ -1,24 +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.
-
-docker:
-        memory_limit: "4g"
-        image: "bigtop/puppet:trunk-debian-8-aarch64"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.2.0/debian/8-aarch64/aarch64"
-distro: debian
-components: [hdfs, yarn, mapreduce]
-enable_local_repo: false
-smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_debian-8.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_debian-8.yaml b/provisioner/docker/config_debian-8.yaml
deleted file mode 100644
index 1dbecbe..0000000
--- a/provisioner/docker/config_debian-8.yaml
+++ /dev/null
@@ -1,24 +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.
-
-docker:
-        memory_limit: "4g"
-        image: "bigtop/puppet:trunk-debian-8"
-
-repo: "http://repos.bigtop.apache.org/releases/1.2.1/debian/8/x86_64"
-distro: debian
-components: [hdfs, yarn, mapreduce]
-enable_local_repo: false
-smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_debian-9.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_debian-9.yaml b/provisioner/docker/config_debian-9.yaml
new file mode 100644
index 0000000..1818f2d
--- /dev/null
+++ b/provisioner/docker/config_debian-9.yaml
@@ -0,0 +1,24 @@
+# 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:
+        memory_limit: "4g"
+        image: "bigtop/puppet:trunk-debian-9"
+
+repo: "http://repos.bigtop.apache.org/releases/1.3.0/debian/9/$(ARCH)"
+distro: debian
+components: [hdfs, yarn, mapreduce]
+enable_local_repo: false
+smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_fedora-26.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_fedora-26.yaml b/provisioner/docker/config_fedora-26.yaml
new file mode 100644
index 0000000..8881c14
--- /dev/null
+++ b/provisioner/docker/config_fedora-26.yaml
@@ -0,0 +1,24 @@
+# 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:
+        memory_limit: "4g"
+        image: "bigtop/puppet:trunk-fedora-26"
+
+repo: "http://repos.bigtop.apache.org/releases/1.3.0/fedora/26/$basearch"
+distro: centos
+components: [hdfs, yarn, mapreduce]
+enable_local_repo: false
+smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_ubuntu-16.04-aarch64.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_ubuntu-16.04-aarch64.yaml b/provisioner/docker/config_ubuntu-16.04-aarch64.yaml
deleted file mode 100644
index 0a89475..0000000
--- a/provisioner/docker/config_ubuntu-16.04-aarch64.yaml
+++ /dev/null
@@ -1,24 +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.
-
-docker:
-        memory_limit: "4g"
-        image:  "bigtop/puppet:trunk-ubuntu-16.04-aarch64"
-
-repo: "http://bigtop-repos.s3.amazonaws.com/releases/1.2.0/ubuntu/16.04/x86_64"
-distro: debian
-components: [hdfs, yarn, mapreduce]
-enable_local_repo: true
-smoke_test_components: [hdfs, yarn, mapreduce]

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/config_ubuntu-16.04.yaml
----------------------------------------------------------------------
diff --git a/provisioner/docker/config_ubuntu-16.04.yaml b/provisioner/docker/config_ubuntu-16.04.yaml
index ab3e04d..64cace9 100644
--- a/provisioner/docker/config_ubuntu-16.04.yaml
+++ b/provisioner/docker/config_ubuntu-16.04.yaml
@@ -17,7 +17,7 @@ docker:
         memory_limit: "4g"
         image:  "bigtop/puppet:trunk-ubuntu-16.04"
 
-repo: "http://repos.bigtop.apache.org/releases/1.2.1/ubuntu/16.04/x86_64"
+repo: "http://repos.bigtop.apache.org/releases/1.3.0/ubuntu/16.04/$(ARCH)"
 distro: debian
 components: [hdfs, yarn, mapreduce]
 enable_local_repo: false

http://git-wip-us.apache.org/repos/asf/bigtop/blob/1187b5f2/provisioner/docker/docker-hadoop.sh
----------------------------------------------------------------------
diff --git a/provisioner/docker/docker-hadoop.sh b/provisioner/docker/docker-hadoop.sh
index 203fc44..3300c93 100755
--- a/provisioner/docker/docker-hadoop.sh
+++ b/provisioner/docker/docker-hadoop.sh
@@ -43,7 +43,15 @@ create() {
     mkdir -p config/hieradata 2> /dev/null
     echo > ./config/hiera.yaml
     echo > ./config/hosts
-    export DOCKER_IMAGE=$(get-yaml-config docker image)
+    # set correct image name based on running architecture
+    image_name=$(get-yaml-config docker image)
+    running_arch=$(uname -m)
+    if [ "x86_64" == ${running_arch} ]; then
+        image_name=${image_name}
+    else
+        image_name=${image_name}-${running_arch}
+    fi
+    export DOCKER_IMAGE=${image_name}
     export MEM_LIMIT=$(get-yaml-config docker memory_limit)
 
     # Startup instances