Simplified instructions to reduce confusion. All steps are required for public to build Mariner
This commit is contained in:
parent
f810498be3
commit
3409c0e02c
|
@ -1,38 +1,26 @@
|
||||||
|
|
||||||
# Build Requirements
|
# Build Requirements
|
||||||
---
|
---
|
||||||
## Basic Build
|
|
||||||
### Requirements were validated on `Ubuntu 18.04`.
|
### Requirements were validated on `Ubuntu 18.04`.
|
||||||
Requirements for building images with a toolkit:
|
Requirements for building images with a toolkit:
|
||||||
```bash
|
```bash
|
||||||
sudo apt -y install make tar wget curl rpm qemu-utils
|
# Add a backports repo in order to install the latest version of Go.
|
||||||
```
|
|
||||||
|
|
||||||
Recommended but not required: `pigz` for faster compression operations.
|
|
||||||
|
|
||||||
---
|
|
||||||
## Rebuilding the Toolkit
|
|
||||||
Requirements for regenerating the toolkit (toolkits include pre-built Go binaries):
|
|
||||||
```bash
|
|
||||||
sudo add-apt-repository ppa:longsleep/golang-backports
|
sudo add-apt-repository ppa:longsleep/golang-backports
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt install golang-1.13-go
|
|
||||||
```
|
|
||||||
|
|
||||||
You may need to run the following to correctly link go:
|
# Install required dependencies.
|
||||||
```bash
|
sudo apt -y install make tar wget curl rpm qemu-utils golang-1.13-go
|
||||||
|
|
||||||
|
# Recommended but not required: `pigz` for faster compression operations.
|
||||||
|
sudo apt -y install pigz
|
||||||
|
|
||||||
|
# Fix go 1.13 link
|
||||||
sudo ln -vs /usr/lib/go-1.13/bin/go /usr/bin/go
|
sudo ln -vs /usr/lib/go-1.13/bin/go /usr/bin/go
|
||||||
```
|
|
||||||
|
|
||||||
|
# Install Docker.
|
||||||
|
|
||||||
---
|
|
||||||
## Bootstrapping the Toolchain
|
|
||||||
Requirements for bootstrapping the toolchain using a docker container
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
sudo sh get-docker.sh
|
sudo sh get-docker.sh
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
```
|
```
|
||||||
|
|
||||||
**You will need to log out and lock back in** for user changes to take effect.
|
**You will need to log out and lock back in** for user changes to take effect.
|
||||||
|
|
Loading…
Reference in New Issue