Skip to content

Commit

Permalink
docs(refactor): rename prepare environment section
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Frolov <evgeniy.frolov@flant.com>
  • Loading branch information
Fral738 committed Nov 25, 2024
1 parent 6e8aab5 commit d8b0fd5
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Setting up the build environment with Buildah

(For Ubuntu 23.10 and later) on the GitLab Runner host run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

- [Docker Engine](https://docs.docker.com/engine/install/).

### Prepare the environment

(For Ubuntu 23.10 and later) on the GitLab Runner host run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}

### Installing GitLab Runner

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

Follow [official instructions](https://docs.gitlab.com/runner/install/) to install and register the GitLab Runner. If you are going to install your GitLab Runner in Kubernetes, then install it to `gitlab-ci` namespace.

### Prepare the environment

(For Ubuntu 23.10 and later) on the GitLab Runner nodes run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}

### Basic GitLab Runner configuration (no caching)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

- [Argo CD](https://argo-cd.readthedocs.io/en/stable/getting_started/#1-install-argo-cd).

### Prepare the environment

(For Ubuntu 23.10 and later) on the GitLab Runner host run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}

### Installing GitLab Runner

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

- [Argo CD](https://argo-cd.readthedocs.io/en/stable/getting_started/#1-install-argo-cd).

### Prepare the environment

(For Ubuntu 23.10 and later) on the GitLab Runner nodes run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}

### Install GitLab Runner

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@

Install and register GitHub Runner on its dedicated host by following the [official instructions](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners).

### Setting up the build environment with Buildah

(For Ubuntu 23.10 and later) on the GitHub Runner host run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

* [Docker Engine](https://docs.docker.com/engine/install/).

### Prepare the environment

(For Ubuntu 23.10 and later) on the GitLab Runner host run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}

### Configuring the Runner

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

- Kubernetes for running CI jobs with your CI system's Kubernetes Runner.

### Prepare the environment

(For Ubuntu 23.10 and later) on the GitLab Runner nodes run:

```shell
{ echo "kernel.apparmor_restrict_unprivileged_userns = 0" && echo "kernel.apparmor_restrict_unprivileged_unconfined = 0";} | sudo tee -a /etc/sysctl.d/20-apparmor-donotrestrict.conf && sudo sysctl -p /etc/sysctl.d/20-apparmor-donotrestrict.conf
```
{% include configurator/partials/ci/buildah_ubuntu.md.liquid %}

### Basic Runner configuration (no caching)

Expand Down

0 comments on commit d8b0fd5

Please sign in to comment.