Commit Graph

14 Commits

Author SHA1 Message Date
Luigi Toscano 5d05a3db2f Remove CentOS6/RHEL6 support
Deprecated in Pike, and removed from diskimage-builder for a while.

Story: 2001996
Task: 19626
Change-Id: I9b4eab56fcbfcb2e97805fba805eafeeafa5d540
2018-05-15 18:22:50 +02:00
Luigi Toscano 30717f2516 Fix (again) the detection of scala version (now https)
The www.scala-lang.org switched to https and the curl call did not
account for this scenario, so it failed.
Switch the address to https and as extra measure add also the -L
argument, which forces curl to follow the redirects.

Switch also the download URL to https.

Story: 2001964
Task: 15089
Change-Id: I82d3dd0bd000284fb5404483bf3ee34a6fbb147b
2018-05-04 17:55:50 +02:00
Luigi Toscano 83c3011f69 mapr: fix the discovery of the version of Scala
The structure of the page changed slightly between July 8th
and now (thanks Internet Archive).
Adapt the extraction code. including a more robust regex.

Also update the download location (lightbend.com instead of
typesafe.com, even if the latter is still a redirect).

Finally, expose a new variable which allows users to
force a specific version of Scala, disabling the autodetection.
This is useful to workaround possible future similar breakages
without changing the code.

Closes-Bug: #1704337

Change-Id: Ib105d08816d6833f05301e59f64163de5f070109
2017-07-14 18:12:37 +02:00
Luigi Toscano 591bfed8f0 Fix: DIB_RELEASE is not defined on CentOS
Otherwise an "unbound variable" error is thrown.

Change-Id: I1e29cce101e44fc82e27b5e7986101847be0da8d
2017-02-27 11:22:34 +01:00
Luigi Toscano bdd0c5c61d Force scala 2.11.6 for Ubuntu Trusty
The newer deb from scala-project.org (2.12.0, and probably the future ones)
depends on openjdk-8 which is only available on xenial.

Closes-Bug: #1644799
Change-Id: I3300bdc37f8da5b803ed2f311e39fe305b15d269
2016-11-25 15:48:12 +01:00
Telles Nobrega 3446f21130 Adding rhel7 to elements checks
Up to now we only check for fedora, centos, centos7 and rhel. Rhel7 is
being added to allow the use of rhel7 images

Change-Id: Id0dfa9aab51ec7bb2fe4838c2aa0650f3f026128
2016-09-20 17:28:02 -03:00
Telles Nobrega feff7a5b87 Adding ability to create CentOS7 images with MapR
This patch enables the creation of CentOS7 images with MapR plugin.

Change-Id: I915ca1f0f5e890e9b32b64d0d9e31061b7fe5f2c
2016-08-26 14:18:18 -03:00
Artem Osadchyi c34c1aa69f Added ability to specify exact package versions for MapR
List of improvements:
1. Ecosystem repo is downloaded from repo instead of giant tar archive
2. Mapping of MapR packages moved from python script to separate json file
3. Versions of packages to keep are specified exactly instead of "several last versions"
4. Versions of packages to keep are specified in separate json files for each MapR version
5. Code for repo creating moved to separate script
6. curl and tar invocations merged together
7. Resources aren't copied to image
8. Removed unreachable code
9. Hive 0.12 was removed from remote repo so now it's removed from package list

Change-Id: I93ad9be3b02d5a2f6f0e4c13303ecce7ba32c84b
Implements: blueprint mapr-versions
2015-08-13 12:08:39 +03:00
Sergey Kolekonov 45b298a581 Add quotes to unsafe if conditions in mapr element
In some cases unsafe if conditions can produce errors. Quotes should be used
to avoid problems with empty variables

Change-Id: Ia977bfa570ff9c3703a1a2dd370e1be0bf1b7a85
Closes-bug: #1463144
2015-06-08 22:19:33 +03:00
Pino Toscano 2fb2422da8 Make almost all the element scripts as e/u/pipefail
Following the latest dib-lint reporting, make sure almost all the
scripts are enabling -e, -u, and pipefail.  This eases the discovery of
failing commands, and the usage of unset variables.

There are few exceptions with flags not set:

* elements/hadoop-hdp/install.d/40-install-hdp, set -e
  when installing HDP 2.0, it tries to install tez, which does not seem
  to exist in Hortonworks' repositories

* elements/ssh/install.d/33-ssh, set -e
  the version of augtool (part of augeas 0.10) in older Ubuntu versions
  (like Precise, needed by the cloudera plugin) exits with wrong return
  values in autosave mode

* elements/storm/install.d/60-storm, set -e
  It tries to change the permission of /etc/supervisord.conf, which does
  not seem to exist

Change-Id: Ic1314639dfc6a66c48ca87b6820707a2b0cb1dbd
Partial-Bug: #1435306
2015-04-07 12:46:39 +02:00
Artem Osadchyi 12167c7dbb Add MapR 4.0.2 support
Added ability to build prepared images for MapR 4.0.2

Change-Id: Iceadfc00bd61d5ad3215392ecb618e2661f11693
Closes-Bug: #1439179
2015-04-01 23:39:37 +03:00
Denis Egorenko db50f5ba97 Check distro name from DISTRO_NAME
Use default 'DISTRO_NAME' variable for check which distro is use
for current image build

Change-Id: Ieba71733fbcd554a1c7416efb0c4b740939d06a8
Closes-bug: #1436807
2015-03-27 17:09:35 +04:00
Pino Toscano 55a21cd746 Adopt DIB_DEBUG_TRACE for tracing in elements
Mimic commit 36b59c001c1643217449646b371df46d2cb11b91 in
diskimage-builder, by adopting the usage of $DIB_DEBUG_TRACE to check
whether enable tracing in scripts.

Unlike with the diskimage-builder commit, the default is to not enable
tracing even in the few scripts that used to unconditionally "set -x".

Enabling tracing can be done by either:
- passing -x to disk-image-create
- exporting DIB_DEBUG_TRACE=N, with N=0/1

Change-Id: I56ccd6753df31f7ddda641640cdb1985b2d9e856
Partial-Bug: #1435306
2015-03-23 20:12:41 +01:00
Artem Osadchiy 61823d408c Image Elements for MapR
Change-Id: I87fde2f5d5b430b935c3261d31b86a7b68ac3244
Implements: blueprint mapr-image-elements
2014-11-28 14:57:34 +02:00