Skip to content

Commit

Permalink
Updated Ubuntu requirements doc with better Golang instructions. (mic…
Browse files Browse the repository at this point in the history
…rosoft#6348) (microsoft#6419)

* Updating Ubuntu requirements doc.

* Adding missed Go version update.

Co-authored-by: Pawel Winogrodzki <[email protected]>
  • Loading branch information
anphel31 and PawelWMS authored Oct 13, 2023
1 parent ae993d0 commit 3d3fcf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions toolkit/docs/building/prerequisites-ubuntu.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@

# Build Requirements on `Ubuntu`

## Requirements were validated on `Ubuntu 18.04`
## Requirements were validated on `Ubuntu 22.04`

This page lists host machine requirements for building with the CBL-Mariner toolkit. They cover building the toolchain, packages, and images on an Ubuntu 18.04 host.
This page lists host machine requirements for building with the CBL-Mariner toolkit. They cover building the toolchain, packages, and images on an Ubuntu 22.04 host.

```bash
# Add a backports repo in order to install the latest version of Go.
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update

# Install required dependencies.
Expand All @@ -18,7 +16,7 @@ sudo apt -y install \
gawk \
genisoimage \
git \
golang-1.19-go \
golang-1.20-go \
make \
parted \
pigz \
Expand All @@ -28,8 +26,9 @@ sudo apt -y install \
wget \
xfsprogs

# Fix go 1.19 link
sudo ln -vsf /usr/lib/go-1.19/bin/go /usr/bin/go
# Fix go 1.20 link
sudo ln -vsf /usr/lib/go-1.20/bin/go /usr/bin/go
sudo ln -vsf /usr/lib/go-1.20/bin/gofmt /usr/bin/gofmt

# Install and configure Docker.
curl -fsSL https://get.docker.com -o get-docker.sh
Expand Down
2 changes: 1 addition & 1 deletion toolkit/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/microsoft/CBL-Mariner/toolkit/tools

go 1.19
go 1.20

require (
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
Expand Down

0 comments on commit 3d3fcf7

Please sign in to comment.