From b0e4204b131d51eb8d0d424ab9d74902f99b3a6f Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Tue, 29 Oct 2019 08:46:40 +0100 Subject: Provide gcc on installer host when not present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue-ID: MULTICLOUD-900 Signed-off-by: Konrad Bańka Change-Id: Ibacec8deafa5f1fd9ded5822236db730fedddc82 --- kud/hosting_providers/vagrant/installer.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kud/hosting_providers') 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 -- cgit 1.2.3-korg