Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman support #29

Open
maleadt opened this issue Oct 30, 2024 · 0 comments
Open

Podman support #29

maleadt opened this issue Oct 30, 2024 · 0 comments

Comments

@maleadt
Copy link
Member

maleadt commented Oct 30, 2024

Tested with the Intel runner, podman seems to work fine with the following service:

[Unit]
Description=Buildkite agent %i
After=podman.service network-online.target
Requires=podman.service home.mount
Wants=network-online.target
PartOf=podman.service

StartLimitIntervalSec=0


[Service]
Type=simple
WorkingDirectory=/etc/buildkite/agents/%i
TimeoutStartSec=30min
ExecStartPre=/usr/bin/flock /tmp/buildkite.lock /usr/bin/git fetch
ExecStartPre=/usr/bin/flock /tmp/buildkite.lock /usr/bin/git reset --hard origin/main
ExecStartPre=/usr/bin/podman compose build
ExecStart=/usr/bin/podman compose up --force-recreate --exit-code-from buildkite

Restart=always
RestartSec=1s

StandardOutput=null


[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant