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
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
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
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
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
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
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
Use default 'DISTRO_NAME' variable for check which distro is use
for current image build
Change-Id: Ieba71733fbcd554a1c7416efb0c4b740939d06a8
Closes-bug: #1436807
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