Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/getting_started/prepare_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ sudo usermod -aG docker $USER

**You will need to log out and lock back in** for user changes to take effect.

You can also setup this environment on CBL-Mariner
```bash
# Install required dependencies.
sudo dnf -y install git make tar wget curl rpm golang genisoimage python bison gawk glibc-devel binutils kernel-headers

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Andrew just updated our core docs as well: microsoft/azurelinux#5063

I'm thinking we may want to unify to a single source of truth (ie hyperlink back to the core repo for some of this).

```
You may want to install rpmlint, in this case you need to add the extended repo in /etc/yum.repos.d/ as mariner-extended.repo
```bash
[mariner-official-extended]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We publish this file via the mariner-repos-extended package (sudo tdnf -y install mariner-repos-extended).

Unless there is a need to edit the repo file that should work instead of manually adding the repo.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. Corrected.

name=CBL-Mariner Official Extended $releasever $basearch
baseurl=https://packages.microsoft.com/cbl-mariner/$releasever/prod/extended/$basearch
gpgkey=file:///etc/pki/rpm-gpg/MICROSOFT-RPM-GPG-KEY file:///etc/pki/rpm-gpg/MICROSOFT-METADATA-GPG-KEY
gpgcheck=1
repo_gpgcheck=1
enabled=1
skip_if_unavailable=True
sslverify=1
```

At the moment docker does not support Mariner.

## Clone CBL-Mariner and Build the Toolkit

To build the CBL-MarinerTutorials repository you will need the same toolkit and makefile from the CBL-Mariner repository. So, first clone CBL-Mariner, and then checkout the stable release of interest (e.g. 1.0-stable or 2.0-stable), then build the toolkit.
Expand Down