Skip to content

Commit

Permalink
Add docker tests for Fedora 41.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Nov 22, 2024
1 parent d4a8eb5 commit c7273c0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 17 deletions.
20 changes: 5 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,11 @@ include build/ab.mk

DOCKERFILES = \
debian11 \
debian12
debian12 \
fedora41

define run-docker
docker build -t $1 -f tests/docker/Dockerfile.$(strip $1) .
docker run \
--device=/dev/kvm \
--rm \
--attach STDOUT \
--attach STDERR \
$1 \
make

endef
docker-%: tests/docker/Dockerfile.%
docker build -t $* -f $< .

.PHONY: dockertests
dockertests:
$(hide) echo DOCKERTESTS
$(foreach f,$(DOCKERFILES), $(call run-docker, $f))
dockertests: $(foreach f,$(DOCKERFILES), docker-$(strip $f) .WAIT)
2 changes: 1 addition & 1 deletion tests/docker/Dockerfile.debian11
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ COPY --chown=app:app config.py .
COPY --chown=app:app protocol.h .
COPY --chown=app:app README.md .


RUN make
2 changes: 1 addition & 1 deletion tests/docker/Dockerfile.debian12
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ COPY --chown=app:app config.py .
COPY --chown=app:app protocol.h .
COPY --chown=app:app README.md .


RUN make
32 changes: 32 additions & 0 deletions tests/docker/Dockerfile.fedora41
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM fedora:41

RUN dnf update -y
RUN dnf -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-41.noarch.rpm
RUN dnf -y install https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-40-1.noarch.rpm
RUN dnf -y install \
protobuf-compiler protobuf-devel sqlite-devel libudev-devel \
wxGTK-devel gcc gcc-c++ fmt-devel png2ico

RUN useradd app
RUN mkdir -p /home/app
RUN chown app /home/app
USER app
WORKDIR /home/app

COPY --chown=app:app arch arch
COPY --chown=app:app build build
COPY --chown=app:app dep dep
COPY --chown=app:app doc doc
COPY --chown=app:app extras extras
COPY --chown=app:app lib lib
COPY --chown=app:app scripts scripts
COPY --chown=app:app src src
COPY --chown=app:app tests tests
COPY --chown=app:app tools tools
COPY --chown=app:app Makefile .
COPY --chown=app:app build.py .
COPY --chown=app:app config.py .
COPY --chown=app:app protocol.h .
COPY --chown=app:app README.md .

RUN make

0 comments on commit c7273c0

Please sign in to comment.