[Fuego] [PATCH] vuls: add script for installing go on docker

Bird, Timothy Tim.Bird at sony.com
Wed Jan 3 04:34:59 UTC 2018


Ack - applied and pushed.
 -- Tim

> -----Original Message-----
> From: fuego-bounces at lists.linuxfoundation.org [mailto:fuego-
> bounces at lists.linuxfoundation.org] On Behalf Of Daniel Sangorrin
> Sent: Monday, December 25, 2017 1:22 AM
> To: fuego at lists.linuxfoundation.org
> Subject: [Fuego] [PATCH] vuls: add script for installing go on docker
> 
> From: Tuyen Hoang Van <tuyen.hoangvan at toshiba-tsdv.com>
> 
> Vuls requires a version of "go" that is newer than the
> one provided by Fuego docker's debian. We first prepared
> a patch to the Fuego's Dockerfile, but we noticed
> that some proxies block URLs under "storage.googleapis.com".
> To avoid users having a bad first-time experience when
> installing Fuego we decided to provide it as an script instead.
> 
> As an alternative we can provide the Dockerfile patch
> and ask those users with proxies blocking such URLs to
> comment those lines and install go manually.
> 
> Reviewed-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
> ---
>  fuego-ro/scripts/fuego-vuls-docker-preparation | 31
> ++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 fuego-ro/scripts/fuego-vuls-docker-preparation
> 
> diff --git a/fuego-ro/scripts/fuego-vuls-docker-preparation b/fuego-
> ro/scripts/fuego-vuls-docker-preparation
> new file mode 100644
> index 0000000..838ed80
> --- /dev/null
> +++ b/fuego-ro/scripts/fuego-vuls-docker-preparation
> @@ -0,0 +1,31 @@
> +#!/bin/sh
> +#########################################################
> ######################
> +# This script installs some package for running the Vuls test
> +#########################################################
> ######################
> +
> +if [ $UID -ne 0 ]; then
> +    echo "please run the script under root user"
> +    exit 1
> +fi
> +
> +# Install sqlite
> +dpkg -l sqlite || apt-get -yV install sqlite
> +
> +GOROOT=/usr/local/go
> +if [ -x ${GOROOT}/bin/go ]; then
> +    echo "Go was already installed in the system"
> +    exit 0
> +fi
> +
> +#
> ==========================================================
> ====================
> +# install go
> +#
> ==========================================================
> ====================
> +GO_VERSION=1.8.3
> +GO_URL=https://storage.googleapis.com/golang/go${GO_VERSION}.linux-
> amd64.tar.gz
> +wget -nv ${GO_URL}
> +tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
> +rm -rf go${GO_VERSION}.linux-amd64.tar.gz
> +
> +mkdir -p /var/log/vuls
> +chown jenkins /var/log/vuls
> +chmod 700 /var/log/vuls
> --
> 2.7.4
> 
> 
> _______________________________________________
> Fuego mailing list
> Fuego at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego


More information about the Fuego mailing list