# 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:
# 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
# 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
#
# 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:
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