Skip to content

Commit

Permalink
docs(docker): add self-hosted configuration
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 20, 2024
1 parent 2198e48 commit 3e9e3aa
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
> Preparing your infrastructure for self-hosting GitHub Runner

### Requirements

- GitHub Actions;

- Host to run GitHub Runner with:

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

### Installing the GitHub Runner

Follow [official instructions](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners) to install the GitHub Runner on your dedicated host.

### Preparing the system for cross-platform building (optional)

{% include configurator/partials/ci/cross_platform_note.md.liquid %}


Register emulators on your system using qemu-user-static:

```shell
docker run --restart=always --name=qemu-user-static -d --privileged --entrypoint=/bin/sh multiarch/qemu-user-static -c "/register --reset -p yes && tail -f /dev/null"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
> Подготовка инфрастурктуры для self-hosted GitHub Runner

### Требования

* GitHub Actions;

- Хост для установки GitHub Runner, имеющий:

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

### Установка GitHub Runner

Установите GitHub Runner на выделенный для него хост, следуя [официальным инструкциям](https://docs.github.com/ru/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners).

{% include configurator/partials/ci/configuring_the_container_registry.md.liquid %}

### Подготовка системы к кроссплатформенной сборке (опционально)

{% include configurator/partials/ci/cross_platform_note.md.liquid %}

Регистрируем в системе эмуляторы с помощью образа qemu-user-static:

```shell
docker run --restart=always --name=qemu-user-static -d --privileged --entrypoint=/bin/sh multiarch/qemu-user-static -c "/register --reset -p yes && tail -f /dev/null"
```

0 comments on commit 3e9e3aa

Please sign in to comment.