-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from kiwix/no_bionic_kiwix_ci
[kiwix-build] Switch from bionic to manylinux image
- Loading branch information
Showing
3 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM quay.io/pypa/manylinux_2_28_x86_64 | ||
LABEL org.opencontainers.image.source https://github.com/kiwix/container-images | ||
|
||
ENV LANG C.UTF-8 | ||
ENV OS_NAME manylinux | ||
|
||
RUN dnf install -y --nodocs \ | ||
# Base build tools | ||
make automake libtool cmake git-core subversion pkg-config gcc-c++ \ | ||
wget unzip ninja-build which patch xz openssh-clients \ | ||
# Other tools (to remove) | ||
vim less grep \ | ||
&& dnf remove -y "*-doc" \ | ||
&& dnf autoremove -y \ | ||
&& dnf clean all \ | ||
&& python3.12 -m pip install meson pytest requests distro | ||
|
||
ENV PATH /opt/_internal/cpython-3.12.3/bin:$PATH | ||
|
||
# Create user | ||
RUN groupadd --gid 121 runner | ||
RUN useradd --uid 1001 --gid 121 --create-home runner | ||
USER runner | ||
WORKDIR /home/runner | ||
|
||
RUN mkdir -p /home/runner/.local/bin | ||
RUN ln -s /usr/local/bin/python3.12 /home/runner/.local/bin/python | ||
ENV PATH /home/runner/.local/bin:$PATH |