diff options
author | Konrad Bańka <k.banka@samsung.com> | 2019-10-29 08:46:40 +0100 |
---|---|---|
committer | Konrad Bańka <k.banka@samsung.com> | 2019-10-29 08:46:40 +0100 |
commit | b0e4204b131d51eb8d0d424ab9d74902f99b3a6f (patch) | |
tree | 0c8f3543712c0989528af2e718d4f922683fa05e /kud | |
parent | acddbe2e281ebf80d31e7a03646ccfa0a9d6b25b (diff) |
Provide gcc on installer host when not present
Issue-ID: MULTICLOUD-900
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ibacec8deafa5f1fd9ded5822236db730fedddc82
Diffstat (limited to 'kud')
-rwxr-xr-x | kud/hosting_providers/vagrant/installer.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh index 5cc701db..e5138c24 100755 --- a/kud/hosting_providers/vagrant/installer.sh +++ b/kud/hosting_providers/vagrant/installer.sh @@ -21,6 +21,11 @@ function _install_go { version=$(grep "go_version" ${kud_playbooks}/kud-vars.yml | awk -F "'" '{print $2}') local tarball=go$version.linux-amd64.tar.gz + #gcc is required for go apps compilation + if ! which gcc; then + sudo apt-get install -y gcc + fi + if $(go version &>/dev/null); then return fi |