#!/bin/bash
# ============LICENSE_START=======================================================
-# Copyright (C) 2021 The Nordix Foundation. All rights reserved.
+# Copyright (C) 2022 The Nordix Foundation. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
sudo apt upgrade -y
# install basic dependencies
+sudo apt update
sudo apt install -y make openjdk-11-jre-headless apt-transport-https ca-certificates curl gnupg jq software-properties-common build-essential
# If you have a issue with Let's Encrypt certificate when cloning repo due to DST Root CA X3 Expiration:
sudo update-ca-certificates --fresh --verbose
# set versions of various things for NSM for visibility and ease of maintenance
-DOCKER_CE_VERSION="5:20.10.17~3-0~ubuntu-bionic"
-DOCKER_CE_CLI_VERSION="5:20.10.17~3-0~ubuntu-bionic"
-CONTAINERD_IO_VERSION="1.6.6-1"
-GO_VERSION="1.19"
+DOCKER_CE_VERSION="5:20.10.21~3-0~ubuntu-jammy"
+DOCKER_CE_CLI_VERSION="5:20.10.21~3-0~ubuntu-jammy"
+CONTAINERD_IO_VERSION="1.6.9-1"
+GO_VERSION="1.19.3"
GO_LINT_VERSION="1.47.2"
FOSSA_CLI_VERSION="1.1.7"
KUBECTL_VERSION="v1.25.0"
YQ_VERSION="v4.21.1"
# install docker-ce, docker-ce-cli, containerd.io and mark them hold
-sudo apt remove -y docker docker-engine docker.io containerd runc
+sudo apt remove -y docker docker.io containerd runc
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
"region": "Kna1",
"domain_name": "CCP_Domain_34466",
"identity_endpoint": "https://kna1.citycloud.com:5000",
- "image_name": "nordix-nsm-build-ubuntu1804",
+ "image_name": "nordix-nsm-build-ubuntu2204",
"ssh_username": "ubuntu",
- "source_image_name": "Ubuntu 18.04 Bionic Beaver 20190724.1",
+ "source_image_name": "Ubuntu 22.04 Jammy Jellyfish 20220810",
"flavor": "2C-4GB",
+ "temporary_key_pair_type": "ed25519",
"networks": [
"f9bdffa1-bd17-43d8-9eb5-c4ff09947bfe"
],
"destination": "/home/ubuntu/authorized_keys.packer"
},
{
- "script": "configure-image-ubuntu1804.sh",
+ "script": "configure-image-ubuntu2204.sh",
"type": "shell"
}
]