Skip to content

Commit 8bc6976

Browse files
committed
chore: add fedora 41 & archive 39
1 parent 851b444 commit 8bc6976

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.github/workflows/fedora.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
matrix:
1919
dist:
2020
- {
21-
name: fedora-39,
21+
name: fedora-40,
2222
os: fedora,
23-
symbol: 39,
23+
symbol: 40,
2424
platforms: "linux/amd64,linux/arm64"
2525
}
2626
- {
27-
name: fedora-40,
27+
name: fedora-41,
2828
os: fedora,
29-
symbol: 40,
29+
symbol: 41,
3030
platforms: "linux/amd64,linux/arm64"
3131
}
3232
# - {

fedora/41/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM --platform=$TARGETPLATFORM fedora:41
2+
LABEL maintainer="flameshot-org developers <info@flameshot.org>"
3+
4+
# Fix missing locales
5+
ENV LC_ALL="C.UTF-8" \
6+
LANG="C.UTF-8"
7+
8+
# Update repositories and installed packages to avoid issues from:
9+
# https://github.com/tarantool/tarantool-qa/issues/60
10+
RUN dnf upgrade --refresh -y && \
11+
# Install base toolset, dnf5: https://discussion.fedoraproject.org/t/unable-to-find-development-tools-in-fedora-41/135154
12+
dnf -y install @development-tools \
13+
@c-development \
14+
@rpm-development-tools \
15+
&& \
16+
dnf -y install \
17+
fedora-packager \
18+
sudo \
19+
git \
20+
ccache \
21+
cmake && \
22+
# Cleanup DNF metadata and decrease image size
23+
dnf clean all
24+
25+
# Enable cache system-wide
26+
ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
27+
28+
# Enable sudo without tty
29+
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers

0 commit comments

Comments
 (0)