Skip to content

Commit

Permalink
Add fedora image
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Dec 2, 2023
1 parent b34d7b9 commit 6bd5777
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ jobs:
secrets:
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
build-fedora:
uses: ./.github/workflows/build-image.yml
with:
name: fedora
secrets:
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ Container Images for CI

* **suse-qt515:** OpenSuSE with Qt 5.15
* **suse-qt66:** OpenSuSE with Qt 6.6
* **fedora:** Fedora Rawhide

The following images don't have the documentation inside, meaning they are not
suitable to build Qt documentation such as Fluid API documentation:

* suse-qt515
* suse-qt66
* fedora

## Build

Expand Down
35 changes: 35 additions & 0 deletions fedora/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM fedora:rawhide

USER root

# Install packages
RUN dnf update -y && \
dnf install -y sudo \
gcc-c++ clang git cmake ninja-build \
qt6-qtbase-static qt6-qtbase-private-devel \
qt6-qtquickcontrols2-devel \
qt6-qtwayland-devel \
qt6-qtmultimedia-devel \
qt6-qtwebengine-devel \
qt6-qtsvg-devel \
qt6-qttools-devel \
wayland-devel wayland-protocols-devel \
pam-devel \
polkit-devel polkit-qt6-1-devel \
kf6-solid-devel \
systemd-devel libdrm-devel mesa-libgbm-devel libinput-devel \
xcb-util-cursor-devel libXcursor-devel \
pulseaudio-libs-devel \
NetworkManager-libnm-devel ModemManager-glib-devel kf6-networkmanager-qt-devel kf6-modemmanager-qt-devel \
glib2-devel dconf \
pipewire-devel pipewire-utils \
libxkbcommon-devel \
flatpak-devel \
appstream-qt-devel \
umockdev-devel

# Add group & user
RUN groupadd -r ciuser && useradd --create-home --gid ciuser ciuser && echo 'ciuser ALL=NOPASSWD: ALL' > /etc/sudoers.d/ciuser
USER ciuser
WORKDIR /home/ciuser
ENV HOME /home/ciuser
19 changes: 19 additions & 0 deletions fedora/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ORG=liridev
NAME=fedora
VERSION=latest

DOCKER ?= podman

build:
$(DOCKER) build -t $(ORG)/$(NAME):$(VERSION) .

push:
ifeq ($(DOCKER),docker)
$(DOCKER) push $(ORG)/$(NAME):$(VERSION)
else
$(DOCKER) push $(ORG)/$(NAME):$(VERSION) docker://docker.io/$(ORG)/$(NAME):$(VERSION)
endif

all: build

.PHONY: build

0 comments on commit 6bd5777

Please sign in to comment.