mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
made sure that the Set up a Docker Builder
section in the contribution guide is layouted like the rest
This commit is contained in:
parent
11007823e7
commit
9f35290c68
1 changed files with 26 additions and 25 deletions
|
@ -427,7 +427,33 @@ Currently, there are 3 maintainers:
|
||||||
### Procedures
|
### Procedures
|
||||||
|
|
||||||
We have a few procedures we follow. These are documented here:
|
We have a few procedures we follow. These are documented here:
|
||||||
|
- <details><summary>Set up a Docker Builder</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
- amd64, armv7 using local.
|
||||||
|
- arm64 using remote arm64 cpu, as the emulator is too slow and can no longer pass the `npm ci` command.
|
||||||
|
1. Add the public key to the remote server.
|
||||||
|
2. Add the remote context. The remote machine must be arm64 and installed Docker CE.
|
||||||
|
```
|
||||||
|
docker context create oracle-arm64-jp --docker "host=ssh://root@100.107.174.88"
|
||||||
|
```
|
||||||
|
3. Create a new builder.
|
||||||
|
```
|
||||||
|
docker buildx create --name kuma-builder --platform linux/amd64,linux/arm/v7
|
||||||
|
docker buildx use kuma-builder
|
||||||
|
docker buildx inspect --bootstrap
|
||||||
|
```
|
||||||
|
4. Append the remote context to the builder.
|
||||||
|
```
|
||||||
|
docker buildx create --append --name kuma-builder --platform linux/arm64 oracle-arm64-jp
|
||||||
|
```
|
||||||
|
5. Verify the builder and check if the builder is using `kuma-builder`.
|
||||||
|
```
|
||||||
|
docker buildx inspect kuma-builder
|
||||||
|
docker buildx ls
|
||||||
|
```
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
- <details><summary>Release</summary>
|
- <details><summary>Release</summary>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
@ -490,28 +516,3 @@ We have a few procedures we follow. These are documented here:
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
### Set up a Docker Builder
|
|
||||||
|
|
||||||
- amd64, armv7 using local.
|
|
||||||
- arm64 using remote arm64 cpu, as the emulator is too slow and can no longer pass the `npm ci` command.
|
|
||||||
1. Add the public key to the remote server.
|
|
||||||
2. Add the remote context. The remote machine must be arm64 and installed Docker CE.
|
|
||||||
```
|
|
||||||
docker context create oracle-arm64-jp --docker "host=ssh://root@100.107.174.88"
|
|
||||||
```
|
|
||||||
3. Create a new builder.
|
|
||||||
```
|
|
||||||
docker buildx create --name kuma-builder --platform linux/amd64,linux/arm/v7
|
|
||||||
docker buildx use kuma-builder
|
|
||||||
docker buildx inspect --bootstrap
|
|
||||||
```
|
|
||||||
4. Append the remote context to the builder.
|
|
||||||
```
|
|
||||||
docker buildx create --append --name kuma-builder --platform linux/arm64 oracle-arm64-jp
|
|
||||||
```
|
|
||||||
5. Verify the builder and check if the builder is using `kuma-builder`.
|
|
||||||
```
|
|
||||||
docker buildx inspect kuma-builder
|
|
||||||
docker buildx ls
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in a new issue