From 5e23b76186d788db568ddc5134b0050efb1c33b2 Mon Sep 17 00:00:00 2001 From: Nikita Bykov <49442273+nikita-bykov@users.noreply.github.com> Date: Wed, 22 Jul 2020 09:42:50 +0300 Subject: [PATCH] Add swig support (#1265) * added swig support * removed apt-get update * updated swig.sh Co-authored-by: Nikita Bykov --- images/linux/scripts/installers/swig.sh | 18 ++++++++++++++++++ images/linux/ubuntu1604.json | 3 ++- images/linux/ubuntu1804.json | 3 ++- images/linux/ubuntu2004.json | 3 ++- 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 images/linux/scripts/installers/swig.sh diff --git a/images/linux/scripts/installers/swig.sh b/images/linux/scripts/installers/swig.sh new file mode 100644 index 000000000..2d9164741 --- /dev/null +++ b/images/linux/scripts/installers/swig.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Source the helpers for use with the script +source $HELPER_SCRIPTS/document.sh + +# Install Swig +sudo apt-get install -y swig + +# Run tests to determine that the software installed as expected +echo "Testing to make sure that script performed as expected, and basic scenarios work" +if ! command -v swig; then + echo "Swig was not installed" + exit 1 +fi + +# Document what was added to the image +echo "Lastly, documenting what we added to the metadata file" +DocumentInstalledItem "Swig $(swig -version | sed -n 2p | cut -d ' ' -f 3)" diff --git a/images/linux/ubuntu1604.json b/images/linux/ubuntu1604.json index 500a6be71..2475f03d7 100644 --- a/images/linux/ubuntu1604.json +++ b/images/linux/ubuntu1604.json @@ -197,7 +197,8 @@ "{{template_dir}}/scripts/installers/vercel.sh", "{{template_dir}}/scripts/installers/dpkg-config.sh", "{{template_dir}}/scripts/installers/mongodb.sh", - "{{template_dir}}/scripts/installers/rndgenerator.sh" + "{{template_dir}}/scripts/installers/rndgenerator.sh", + "{{template_dir}}/scripts/installers/swig.sh" ], "environment_vars": [ "METADATA_FILE={{user `metadata_file`}}", diff --git a/images/linux/ubuntu1804.json b/images/linux/ubuntu1804.json index 5367e2a0f..7314664dd 100644 --- a/images/linux/ubuntu1804.json +++ b/images/linux/ubuntu1804.json @@ -201,7 +201,8 @@ "{{template_dir}}/scripts/installers/vercel.sh", "{{template_dir}}/scripts/installers/dpkg-config.sh", "{{template_dir}}/scripts/installers/mongodb.sh", - "{{template_dir}}/scripts/installers/rndgenerator.sh" + "{{template_dir}}/scripts/installers/rndgenerator.sh", + "{{template_dir}}/scripts/installers/swig.sh" ], "environment_vars": [ "METADATA_FILE={{user `metadata_file`}}", diff --git a/images/linux/ubuntu2004.json b/images/linux/ubuntu2004.json index 5c1c1a3c1..1ec55d1ef 100644 --- a/images/linux/ubuntu2004.json +++ b/images/linux/ubuntu2004.json @@ -202,7 +202,8 @@ "{{template_dir}}/scripts/installers/vcpkg.sh", "{{template_dir}}/scripts/installers/vercel.sh", "{{template_dir}}/scripts/installers/dpkg-config.sh", - "{{template_dir}}/scripts/installers/rndgenerator.sh" + "{{template_dir}}/scripts/installers/rndgenerator.sh", + "{{template_dir}}/scripts/installers/swig.sh" ], "environment_vars": [ "METADATA_FILE={{user `metadata_file`}}",