Skip to content
Snippets Groups Projects
Commit 479d51f0 authored by Markus Alexander Kuppe's avatar Markus Alexander Kuppe
Browse files

Install cloud specific packages during instance provisioning.

[Feature][Toolbox]
parent fd99ed32
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,8 @@ public class CloudDistributedTLCJob extends Job {
// see http://stackoverflow.com/a/19391042
+ "echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections && "
+ "echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections && "
+ params.getExtraRepositories()
+ " && "
// Update Ubuntu's package index. The public/remote
// package mirrors might have updated. Without
// update, we might try to install outdated packages
......@@ -251,7 +253,8 @@ public class CloudDistributedTLCJob extends Job {
// worker tla2tools.jar (strip spec) and
// unattended-upgrades makes sure the instance
// is up-to-date security-wise.
+ "apt-get install --no-install-recommends mdadm e2fsprogs screen zip unattended-upgrades oracle-java8-installer oracle-java8-set-default -y"
+ "apt-get install --no-install-recommends mdadm e2fsprogs screen zip unattended-upgrades oracle-java8-installer oracle-java8-set-default "
+ params.getExtraPackages() + " -y"
+ " && "
// Delegate file system tuning to cloud specific code.
+ params.getOSFilesystemTuning()
......
......@@ -139,4 +139,12 @@ public abstract class CloudTLCInstanceParameters {
public String getHostnameSetup() {
return "/bin/true"; // no-op, because concat with && ... && in CDTJ.
}
public String getExtraRepositories() {
return "/bin/true"; // no-op, because concat with && ... && in CDTJ.
}
public String getExtraPackages() {
return ""; // no-op, because concat with && ... && in CDTJ.
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment