Skip to content

Commit

Permalink
Avoid to use buildah
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Mar 17, 2024
1 parent b4dd6d5 commit 974c902
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ jobs:
run: |
podman version
crun --version
buildah version
- name: |
Update podman and buildah with kubic to avoid and prevent following issues
Update podman with kubic to avoid and prevent following issues
* https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/
* https://github.com/containers/buildah/issues/4632
* https://github.com/containers/podman/issues/14065
# https://podman.io/docs/installation#ubuntu
run: |
Expand All @@ -77,22 +75,19 @@ jobs:
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null
sudo apt-get update
sudo apt-get -y install podman buildah
sudo apt-get -y install podman
- name: Logging dependency versions
run: |
podman version
crun --version
buildah version
- name: Install gh-action-escape
run: curl -fsSL https://raw.githubusercontent.com/kachick/gh-action-escape/main/scripts/install-in-github-action.sh | sh -s v0.2.0
- uses: actions/checkout@v4
- name: Build base Image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
with:
image: systemd-prepared
containerfiles: |
containers/Containerfile
oci: true
# Do not use buildah and redhat-actions/buildah-buil here. Needless and it looks like handling as multi-architecture even if not specified platform, etc
- name: Build base image with podman
# TODO: Use build.bash here
run: |
podman build --tag systemd-prepared --format oci --file ./containers/Containerfile .
- name: Inspect the created image
run: 'podman inspect systemd-prepared'
- name: Start systemd
Expand Down

0 comments on commit 974c902

Please sign in to comment.