From 1d7758a03eeaa6daa7b28680ca3ea30a6bd26692 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Tue, 21 Mar 2023 13:52:12 +0000 Subject: feat(docker): Add Hugo support packages Signed-off-by: Peter Mikus Change-Id: I1eb98bc0471ea04629f5c41c0880cfeee10c5ece --- docker/scripts/lib_apt.sh | 19 ++++++++++++++----- docker/scripts/lib_csit.sh | 5 ++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/docker/scripts/lib_apt.sh b/docker/scripts/lib_apt.sh index f9b49373d..eae97b43b 100644 --- a/docker/scripts/lib_apt.sh +++ b/docker/scripts/lib_apt.sh @@ -1,7 +1,7 @@ # lib_apt.sh - Docker build script apt library. # For import only. -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -104,7 +104,7 @@ ENV LANG="en_US.UTF-8" LANGUAGE="en_US" LC_ALL="en_US.UTF-8" # libpcap-dev for python pypcap install (CSIT) # sshpass for CSIT jobs # -# From .../csit/resources/tools/presentation/run_report_*.sh: +# From .../csit/resources/tools/presentation/run_report_*.sh: // TO BE REMOVED IN RLS2306 # libxml2 # libxml2-dev # libxslt-dev @@ -185,10 +185,19 @@ EOF # Install terraform for CSIT # -RUN wget https://releases.hashicorp.com/terraform/1.0.4/terraform_1.0.4_linux_$dpkg_arch.zip \\ - && unzip terraform_1.0.4_linux_$dpkg_arch.zip \\ +RUN wget https://releases.hashicorp.com/terraform/1.4.2/terraform_1.4.2_linux_$dpkg_arch.zip \\ + && unzip terraform_1.4.2_linux_$dpkg_arch.zip \\ && mv terraform /usr/bin \\ - && rm -f terraform_1.0.4_linux_$dpkg_arch.zip + && rm -f terraform_1.4.2_linux_$dpkg_arch.zip + +# Install Hugo and Go for CSIT +RUN wget https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_linux-$dpkg_arch.deb \\ + && dpkg -i hugo_extended_0.111.3_linux-$dpkg_arch.deb \\ + && rm -f hugo_extended_0.111.3_linux-$dpkg_arch.deb \\ + && wget https://go.dev/dl/go1.20.2.linux-$dpkg_arch.tar.gz \\ + && rm -rf /usr/local/go \\ + && tar -C /usr/local -xzf go1.20.2.linux-$dpkg_arch.tar.gz \\ + && rm -f go1.20.2.linux-$dpkg_arch.tar.gz # Install packages for all project branches # diff --git a/docker/scripts/lib_csit.sh b/docker/scripts/lib_csit.sh index 525e7487c..9ac2a1961 100644 --- a/docker/scripts/lib_csit.sh +++ b/docker/scripts/lib_csit.sh @@ -1,7 +1,7 @@ # lib_csit.sh - Docker build script CSIT library. # For import only. -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -34,8 +34,7 @@ csit_supported_executor_class() { csit_supported_os() { case "$1" in - # TODO: fix to be only ubuntu-22.04 once migration is complete. - ubuntu-2[02].04) return 0 ;; + ubuntu-22.04) return 0 ;; *) ;; esac return 1 -- cgit 1.2.3-korg