summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorPeter Mikus <peter.mikus@protonmail.ch>2023-03-21 13:52:12 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-03-22 14:38:17 +0000
commit1d7758a03eeaa6daa7b28680ca3ea30a6bd26692 (patch)
tree79b8096b37e4332d41072b844bc29c6eabb2a5d6 /docker
parentce96f2c945b4f57d643c15f2d7fde618e64b4d90 (diff)
feat(docker): Add Hugo support packages
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: I1eb98bc0471ea04629f5c41c0880cfeee10c5ece
Diffstat (limited to 'docker')
-rw-r--r--docker/scripts/lib_apt.sh19
-rw-r--r--docker/scripts/lib_csit.sh5
2 files changed, 16 insertions, 8 deletions
diff --git a/docker/scripts/lib_apt.sh b/docker/scripts/lib_apt.sh
index f9b49373..eae97b43 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 525e7487..9ac2a196 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