WIP: not a real PR: Configuring nested containers in CI environment #3

Closed
potyarkin wants to merge 10 commits from potyarkin/rclone:ci/docker-run-in-ci into tcl/master
Member

This PR contains draft modifications to #1 allowing to execute nested containers in our CI environment.

It is not intended to be ever merged. I will close the PR after testing the CI job.

This PR contains draft modifications to `#1` allowing to execute nested containers in our CI environment. It is not intended to be ever merged. I will close the PR after testing the CI job.
potyarkin added 6 commits 2025-01-14 15:12:44 +00:00
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
[#1] Add forgejo actions
Some checks failed
/ DCO (pull_request) Successful in 40s
/ Builds (pull_request) Successful in 1m18s
/ Lint (pull_request) Successful in 3m40s
/ Test (pull_request) Failing after 59s
814e1a0d18
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
[#1] Add forgejo actions
Some checks failed
/ Test (pull_request) Has started running
/ Lint (pull_request) Has been cancelled
/ DCO (pull_request) Successful in 57s
/ Builds (pull_request) Successful in 1m14s
d7751246e4
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
[#1] Add forgejo actions
Some checks failed
/ DCO (pull_request) Successful in 50s
/ Builds (pull_request) Successful in 1m49s
/ Lint (pull_request) Successful in 4m7s
/ Test (pull_request) Failing after 1m29s
10fdf60eaa
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
Make test containers compatible with our CI environment
Some checks failed
/ Lint (pull_request) Successful in 3m2s
/ Test (pull_request) Failing after 1m7s
/ Builds (pull_request) Has been cancelled
/ DCO (pull_request) Has been cancelled
fbeeed8eae
--net=none is super counterintuitive here, I know. But it works: nested
containers do not try to setup their own networking and thus avoid:

  * Error: netavark: Sysctl error: IO Error: Read-only file system (os error 30)
  * Caused by attempting to write into /proc/sys/net/ipv4/ip_forward which
    is not writable due to our CI runner already being a container

Container still inherits runner networking setup which makes this
effectively equal to --net=host but in a roundabout way.

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
potyarkin added 1 commit 2025-01-14 15:19:01 +00:00
Fix bash loop syntax
Some checks failed
/ DCO (pull_request) Failing after 41s
/ Builds (pull_request) Successful in 1m52s
/ Lint (pull_request) Successful in 3m50s
/ Test (pull_request) Failing after 2m8s
64a61ef544
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
potyarkin added 1 commit 2025-01-15 07:58:14 +00:00
Gather debug information from CI environment
Some checks failed
/ DCO (pull_request) Failing after 38s
/ Builds (pull_request) Successful in 1m55s
/ Lint (pull_request) Successful in 3m59s
/ Test (pull_request) Failing after 2m15s
77d8d90cd3
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
potyarkin force-pushed ci/docker-run-in-ci from 77d8d90cd3 to 014e78d7f6 2025-01-15 08:03:13 +00:00 Compare
potyarkin added 1 commit 2025-01-15 08:06:56 +00:00
Keep CI job running for interactive debug
Some checks failed
/ DCO (pull_request) Failing after 41s
/ Builds (pull_request) Successful in 2m6s
/ Lint (pull_request) Successful in 4m25s
/ Test (pull_request) Failing after 1h12m20s
959f94244a
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
potyarkin added 1 commit 2025-01-15 09:14:05 +00:00
Use --net=host for nested containers in CI
Some checks failed
/ DCO (pull_request) Failing after 57s
/ Builds (pull_request) Successful in 1m12s
/ Lint (pull_request) Successful in 3m7s
/ Test (pull_request) Failing after 5m47s
867aae5d3a
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
potyarkin closed this pull request 2025-01-16 14:00:01 +00:00
Some checks failed
/ DCO (pull_request) Failing after 57s
/ Builds (pull_request) Successful in 1m12s
/ Lint (pull_request) Successful in 3m7s
/ Test (pull_request) Failing after 5m47s

Pull request closed

Sign in to join this conversation.
No description provided.