Skip to content

Commit

Permalink
fix even more warnings generated by myst
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Jan 15, 2024
1 parent 6b1086d commit d556517
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Installation of required packages
<h2> Installation of required packages </h2>

Update the package database and upgrade the packages to avoid version mismatches then install required packages as follows:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Checking the Docker Installation
# Checking the Docker Installation

After that, you can run Docker Hello World without root. To test it use the following command:

Expand Down Expand Up @@ -35,7 +35,7 @@ https://docs.docker.com/get-started/
## Troubleshooting Docker permission issues (Linux only)

If you get Docker permission error when running any Docker images, then likely,
you forgot to follow the steps to make Docker available without root or you need to *restart your Operating System*.
you forgot to follow the steps to make Docker available without root or you need to _restart your Operating System_.

```
OpenLane> docker run hello-world
Expand Down Expand Up @@ -70,13 +70,13 @@ sourcing an activate script in its bin directory.

## Download and Install OpenLane

* Download OpenLane using PIP:
- Download OpenLane using PIP:

```sh
python3 -m pip install openlane
```

* Run a smoke test for OpenLane:
- Run a smoke test for OpenLane:

```sh
python3 -m openlane --dockerized --smoke-test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Making Docker available without root (Linux only)
# Making Docker available without root (Linux only)

:::{warning}
The steps below might become outdated. It is recommended to follow the link to the official Docker documentation here: [instructions here](https://docs.docker.com/engine/install/linux-postinstall/).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ For more examples and ideas, visit:
https://docs.docker.com/get-started/
```

```{include} docker_no_root.md.part
```{include} docker_no_root.md
:heading-offset: 1
```

```{include} _common.md.part
```{include} _common.md
:heading-offset: 1
```
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ brew install --cask docker

Under **Preferences** > **Resources** > **File Sharing**, make sure `/Users` is mounted as follows, as using OpenLane 2+ with Docker requires access to your home folder.

:::{figure} ../../../../_static/installation/mac_docker_settings.png
:::{figure} ../../../../\_static/installation/mac_docker_settings.png
:::

It may also be prudent to enable Full Disk Access permissions for Docker: Under **System Settings** > **Privacy** > **Full Disk Access**, tick Docker as shown:

:::{figure} ../../../../_static/installation/mac_docker_privacy.png
:::{figure} ../../../../\_static/installation/mac_docker_privacy.png
:::

```{include} _common.md.part
```{include} _common.md
:heading-offset: 1
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Only Ubuntu 20.04 and above are supported.

```{include} ../_ubuntu_packages.md.part
```{include} ../_ubuntu_packages.md
```

### Installing Docker
<h3> Installing Docker </h3>

Next, install Docker.
Follow [the instructions provided in the Docker documentation here](https://docs.docker.com/engine/install/ubuntu/) as the steps provided below might be outdated.
Expand Down Expand Up @@ -64,10 +64,12 @@ For more examples and ideas, visit:
https://docs.docker.com/get-started/
```

```{include} docker_no_root.md.part
```{include} docker_no_root.md
:heading-offset: 1
```

```{include} _common.md.part
```{include} _common.md
:heading-offset: 1
```
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Windows 10+

```{include} ../wsl/_wsl.md
:relative-images:
:heading-offset: 1
```

```{include} _common.md.part
```{include} _common.md
:heading-offset: 1
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### Setting up the binary cache
# Setting up the binary cache

Cachix allows the reproducible Nix builds to be stored on a cloud server so you do not have to build OpenLane's dependencies from scratch on every computer, which will take a long time.

First, you want to install Cachix by running the following in your terminal:
Expand All @@ -13,16 +14,17 @@ Then set up the OpenLane binary cache as follows:
cachix use openlane
```

``````{note}
````{note}
If `cachix use openlane` fails, re-run it as follows:
```sh
sudo env PATH="$PATH" cachix use openlane
```
``````
````

# Cloning OpenLane

### Cloning OpenLane
With git installed, just run the following:

```sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ We will primarily support Ubuntu 20.04+ for OpenLane.
If you're looking to build a virtual machine, we recommend [Ubuntu 22.04](https://releases.ubuntu.com/jammy/).

## Installing Nix

You can install Nix by following the instructions at https://nixos.org/download.html.

For example, on Ubuntu, run the following your terminal.
Expand All @@ -24,5 +25,6 @@ Enter your password if prompted. This should take around 5 minutes.

Make sure to close all terminals after you're done with this step.

```{include} _common.md.part
```{include} _common.md
:heading-offset: 1
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# macOS 11+

## Installing Nix

You can install Nix by following the instructions at https://nixos.org/download.html.

You may be able to just run this in your terminal:
Expand All @@ -13,5 +14,7 @@ Enter your password if prompted. This should take around 5 minutes.

Make sure to close all terminals after you're done with this step.

```{include} _common.md.part
```{include} _common.md
:heading-offset: 1
```
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
```

## Installing Nix

You can install Nix by following the instructions at https://nixos.org/download.html.

```sh
Expand All @@ -18,4 +19,5 @@ Make sure to close the Ubuntu terminal after you're done with this step and
start it again.

```{include} _common.md.part
:heading-offset: 1
```
6 changes: 3 additions & 3 deletions docs/source/getting_started/common/wsl/_wsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ A recent version of Windows 10 or Windows 11 is required, for more information c

The following is the recommended installation method under Windows. Other virtualization-based methods, such as VMWare, are not supported, and some such as VirtualBox are known to impair the operation of OpenLane.

## Setting up WSL
# Setting up WSL

1. Follow [official Microsoft documentation for WSL located here](https://docs.microsoft.com/en-us/windows/wsl/install) to install the WSL 2. Make sure your OS version supports WSL 2.
2. Follow [official steps to Install Docker Desktop on Windows located here](https://docs.docker.com/desktop/install/windows-install/).
Expand Down Expand Up @@ -53,10 +53,10 @@ https://docs.docker.com/go/wsl2/

8. Launch "Ubuntu" from your Start Menu.


![](./wsl.png)

9. Follow the steps shown below.

```{include} ../_ubuntu_packages.md.part
```{include} ../_ubuntu_packages.md
```

0 comments on commit d556517

Please sign in to comment.