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

Enable podman.socket service in user mode #2910

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/build-podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- main
paths-ignore:
- '.github/**'
workflow_dispatch:

jobs:
build:
Expand All @@ -30,8 +31,6 @@ jobs:
]
name: Build with Java ${{ matrix.java.version }} ${{ matrix.java.name }}
steps:
- name: Setup docker host
run: echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV"
- name: Update podman
run: |
sudo apt-get -y purge podman
Expand All @@ -44,9 +43,14 @@ jobs:
sudo apt-get update -qq
sudo apt-get -qq -y install podman
sudo bash -c "echo -e '[engine]\nservice_timeout=0' >> /etc/containers/containers.conf"
# Runs a single command using the runners shell
systemctl --user enable podman.socket
systemctl --user start podman.socket
- name: Setup docker host
run: echo "DOCKER_HOST=$(podman info --format 'unix://{{.Host.RemoteSocket.Path}}')" >> "$GITHUB_ENV"
- name: Check podman
run: docker version
run: |
podman version
docker version
- name: Set up testcontainers for podman
run: |
echo ryuk.container.privileged=true > ~/.testcontainers.properties
Expand Down