upgrade to ubuntu 20.04

This commit is contained in:
Rui Lopes 2021-02-28 12:40:59 +00:00
parent 82ba20a916
commit 1c9ca495c8
7 changed files with 11 additions and 9 deletions

View File

@ -26,9 +26,9 @@ This will:
# Usage
Build and install the [Ubuntu Base Box](https://github.com/rgl/ubuntu-vagrant).
Build and install the [Ubuntu 20.04 Base Box](https://github.com/rgl/ubuntu-vagrant).
Build and install the [Windows Base Box](https://github.com/rgl/windows-2016-vagrant).
Build and install the [Windows 2019 Base Box](https://github.com/rgl/windows-vagrant).
Add the following entry to your `/etc/hosts` file:

2
Vagrantfile vendored
View File

@ -21,7 +21,7 @@ Vagrant.configure(2) do |config|
end
config.vm.define :nexus do |config|
config.vm.box = 'ubuntu-18.04-amd64'
config.vm.box = 'ubuntu-20.04-amd64'
config.vm.hostname = nexus_domain
config.vm.network 'private_network', ip: nexus_ip
config.vm.provider :libvirt do |lv, config|

View File

@ -1,4 +1,4 @@
hello-world (1.0.0) bionic; urgency=low
hello-world (1.0.0) focal; urgency=low
* Hello World.

View File

@ -2,7 +2,7 @@
set -eux
# NB execute apt-cache madison docker-ce to known the available versions.
docker_version="${1:-5:19.03.8~3-0~ubuntu-bionic}"; shift || true
docker_version="${1:-5:20.10.4~3-0~ubuntu-focal}"; shift || true
registry_proxy_domain="${1:-$(hostname --fqdn)}"; shift || true
# NB as-of docker 19.03.8, there is still no way to specify a registry mirror credentials,
# as such, we cannot use our docker-group registry, instead we must use the docker-proxy

View File

@ -6,7 +6,7 @@ echo 'export DOTNET_CLI_TELEMETRY_OPTOUT=1' >/etc/profile.d/opt-out-dotnet-cli-t
source /etc/profile.d/opt-out-dotnet-cli-telemetry.sh
# install the dotnet core sdk.
# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1804
# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
wget -qO packages-microsoft-prod.deb "https://packages.microsoft.com/config/ubuntu/$(lsb_release -s -r)/packages-microsoft-prod.deb"
dpkg -i packages-microsoft-prod.deb
apt-get install -y apt-transport-https

View File

@ -36,7 +36,7 @@ repository.createRawHosted("adhoc-package", "default", false, WritePolicy.ALLOW_
// create a apt repository backed by the default blob store.
// see https://help.sonatype.com/repomanager3/formats/apt-repositories
pgpPrivateKey = new File('/vagrant/shared/apt-hosted-private.key').getText('UTF-8')
repository.createAptHosted("apt-hosted", "bionic", pgpPrivateKey, "abracadabra", "default", WritePolicy.ALLOW_ONCE, true)
repository.createAptHosted("apt-hosted", "focal", pgpPrivateKey, "abracadabra", "default", WritePolicy.ALLOW_ONCE, true)
// create a npm repository backed by the default blob store.

View File

@ -3,7 +3,9 @@ set -eux
nexus_domain=$(hostname --fqdn)
cd /vagrant/hello-world-debian-package
rm -rf tmp/hello-world-debian-package
cp -r /vagrant/hello-world-debian-package tmp
cd tmp/hello-world-debian-package
#
# test the apt repository.
@ -30,7 +32,7 @@ curl \
apt-key add /vagrant/shared/apt-hosted-public.key
# install the hello-world package.
echo "deb [arch=amd64] https://$nexus_domain/repository/apt-hosted bionic main" >/etc/apt/sources.list.d/nexus-apt-hosted.list
echo "deb [arch=amd64] https://$nexus_domain/repository/apt-hosted focal main" >/etc/apt/sources.list.d/nexus-apt-hosted.list
apt-get update
apt-get install -y hello-world
apt-cache show hello-world