mirror of
https://github.com/antos-rde/antos.git
synced 2025-09-01 00:32:08 +02:00
feat: Support CI and cross compile for amd64, arm64, arm
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
FROM ubuntu:jammy AS deploy-env
|
||||
FROM debian:bookworm AS deploy-env
|
||||
ARG tag
|
||||
COPY deps/ /
|
||||
|
||||
RUN dpkg -i /libssl1.1_1.1.1f-$(uname -m).deb
|
||||
# manual install libssl1.1
|
||||
RUN apt-get update && apt-get --yes --no-install-recommends install libsqlite3-0 zlib1g libreadline8 wget libvncclient1 libjpeg-turbo8 openssh-client tar tree
|
||||
RUN apt-get update && apt-get --yes --no-install-recommends install libsqlite3-0 zlib1g libreadline8 wget libssl3 libvncclient1 libturbojpeg0 openssh-client tar tree
|
||||
RUN apt clean && rm -rf /var/lib/apt/lists/*
|
||||
RUN mkdir /ulib
|
||||
RUN cp -rf /lib/*-linux-*/libsqlite3*.so* /ulib
|
||||
@@ -61,7 +59,7 @@ RUN chown -R root:root /platform
|
||||
RUN tree /platform
|
||||
RUN ls -al /platform
|
||||
|
||||
FROM busybox:stable-glibc
|
||||
FROM busybox:1.36.1-glibc
|
||||
#copy all necessary libraries
|
||||
COPY --from=deploy-env /ulib/ /lib/
|
||||
COPY --from=deploy-env /bin/wget /bin/
|
||||
|
@@ -1,6 +1,8 @@
|
||||
FROM ubuntu:jammy AS deploy-env
|
||||
FROM debian:bookworm AS deploy-env
|
||||
ARG UNAME=ci
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
# manual install libssl1.1
|
||||
RUN apt-get update && apt-get --yes --no-install-recommends install \
|
||||
build-essential \
|
||||
make \
|
||||
@@ -17,11 +19,27 @@ RUN apt-get update && apt-get --yes --no-install-recommends install \
|
||||
libffi-dev \
|
||||
ca-certificates \
|
||||
unzip \
|
||||
libjpeg-turbo8-dev \
|
||||
libturbojpeg0-dev \
|
||||
libvncserver-dev \
|
||||
lua5.3
|
||||
|
||||
RUN RUSTUP_HOME=/opt/rust/rustup CARGO_HOME=/opt/rust/cargo bash -c 'curl https://sh.rustup.rs -sSf | sh -s -- -y'
|
||||
RUN chmod -R 777 /opt/rust/
|
||||
RUN apt-get update && apt-get --yes --no-install-recommends install \
|
||||
nodejs npm git wget libfuse2 fuse3
|
||||
nodejs npm git wget libfuse2 fuse3
|
||||
|
||||
# cross build support
|
||||
RUN dpkg --add-architecture armhf
|
||||
RUN dpkg --add-architecture arm64
|
||||
RUN apt-get update && apt-get --yes --no-install-recommends install \
|
||||
crossbuild-essential-armhf \
|
||||
crossbuild-essential-armhf \
|
||||
libsqlite3-0:arm64 zlib1g:arm64 libreadline8:arm64 libssl3:arm64 \
|
||||
libffi-dev:arm64 libturbojpeg0:arm64 libvncclient1:arm64 \
|
||||
libsqlite3-0:armhf zlib1g:armhf libreadline8:armhf libssl3:armhf \
|
||||
libffi-dev:armhf libturbojpeg0:armhf libvncclient1:armhf
|
||||
|
||||
RUN groupadd -g 1000 -o ci
|
||||
RUN useradd -m -u 1000 -g 1000 -o -s /bin/bash ci
|
||||
USER ci
|
||||
WORKDIR /home/ci
|
Reference in New Issue
Block a user