feat(docker): Add Hugo support packages 33/38533/2
authorPeter Mikus <[email protected]>
Tue, 21 Mar 2023 13:52:12 +0000 (13:52 +0000)
committerPeter Mikus <[email protected]>
Wed, 22 Mar 2023 14:38:17 +0000 (14:38 +0000)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: I1eb98bc0471ea04629f5c41c0880cfeee10c5ece

docker/scripts/lib_apt.sh
docker/scripts/lib_csit.sh

index f9b4937..eae97b4 100644 (file)
@@ -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
 #
index 525e748..9ac2a19 100644 (file)
@@ -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