Some checks failed
Build Linux Containers / build-and-push-mingw-image (push) Successful in 2m28s
Build Linux Containers / build-and-push-linux-image (linux-arm64) (push) Failing after 6m9s
Build Linux Containers / build-and-push-linux-image (linux-x64) (push) Has been cancelled
Build Linux Containers / build-and-push-linux-image (linux-riscv64) (push) Has been cancelled
48 lines
1.2 KiB
Docker
48 lines
1.2 KiB
Docker
FROM docker.gitea.com/runner-images:ubuntu-24.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get -y update && apt-get -y install \
|
|
autoconf \
|
|
automake \
|
|
bison \
|
|
build-essential \
|
|
flex \
|
|
gawk \
|
|
gettext \
|
|
g++ \
|
|
git \
|
|
help2man \
|
|
libncurses5-dev \
|
|
libtool-bin \
|
|
python3-dev \
|
|
texinfo \
|
|
unzip \
|
|
wget \
|
|
ninja-build \
|
|
cmake \
|
|
curl \
|
|
zip \
|
|
tar \
|
|
gzip
|
|
#RUN pacman --noconfirm -Syu && pacman --noconfirm -Sy wget sudo arch-install-scripts git cmake make mbedtls ncurses rsync bison flex git gperf help2man lzip python unzip base-devel nodejs npm
|
|
RUN git clone https://github.com/crosstool-ng/crosstool-ng && cd ./crosstool-ng && ./bootstrap && ./configure && make install
|
|
|
|
|
|
|
|
RUN mkdir nfpm && cd nfpm && wget "https://github.com/goreleaser/nfpm/releases/download/v2.46.3/nfpm_2.46.3_Linux_x86_64.tar.gz" && tar xf nfpm_2.46.3_Linux_x86_64.tar.gz && mv nfpm /usr/local/bin/ && cd .. && rm -rf nfpm
|
|
|
|
RUN useradd -m build && \
|
|
echo "build ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/build
|
|
|
|
COPY config /tmp/config
|
|
USER build
|
|
|
|
WORKDIR /home/build/ct
|
|
|
|
RUN cp /tmp/config .config && ct-ng build.6 && rm -rf *
|
|
|
|
USER root
|
|
|
|
WORKDIR /root
|
|
|
|
COPY --chmod=755 cmake-cross /usr/local/bin/cmake-cross |