added more layers to arch builder image
Some checks failed
CI / Build arch-builder docker images (push) Failing after 2m44s
Some checks failed
CI / Build arch-builder docker images (push) Failing after 2m44s
This commit is contained in:
@@ -35,7 +35,7 @@ jobs:
|
|||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
target: base
|
target: base
|
||||||
-
|
-
|
||||||
name: Build and push arch-builder rootless images
|
name: Build and push arch-builder kernel images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: "{{defaultContext}}:arch-builder"
|
context: "{{defaultContext}}:arch-builder"
|
||||||
@@ -43,8 +43,47 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:latest"
|
"gitea.woggioni.net/woggioni/arch-builder:kernel"
|
||||||
"gitea.woggioni.net/woggioni/arch-builder:rootless"
|
|
||||||
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
target: rootless
|
target: kernel
|
||||||
|
-
|
||||||
|
name: Build and push arch-builder rust images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:arch-builder"
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/arch-builder:rust"
|
||||||
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
|
target: rust
|
||||||
|
-
|
||||||
|
name: Build and push arch-builder rust full images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:arch-builder"
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/arch-builder:rust-full"
|
||||||
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
|
target: rust-full
|
||||||
|
-
|
||||||
|
name: Build and push arch-builder rust images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:arch-builder"
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/arch-builder:rust-full-rootless"
|
||||||
|
"gitea.woggioni.net/woggioni/arch-builder:latest"
|
||||||
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/arch-builder:buildx
|
||||||
|
target: rust-full-rootless
|
||||||
|
@@ -32,11 +32,25 @@ RUN rm -rf downloads
|
|||||||
|
|
||||||
COPY makepkg/* /etc/
|
COPY makepkg/* /etc/
|
||||||
|
|
||||||
|
RUN useradd luser -G users -u 1000 -s /bin/bash -m -d /home/luser
|
||||||
|
RUN usermod -d /var/lib/jenkins root
|
||||||
|
|
||||||
RUN pacman -S --noconfirm --needed \
|
RUN pacman -S --noconfirm --needed \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
base-devel \
|
base-devel \
|
||||||
meson \
|
meson \
|
||||||
|
tar \
|
||||||
|
xz \
|
||||||
|
ccache \
|
||||||
|
lzop \
|
||||||
|
lz4 \
|
||||||
|
bzip2 \
|
||||||
|
gzip \
|
||||||
|
upx \
|
||||||
|
|
||||||
|
FROM base AS kernel
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
bc \
|
bc \
|
||||||
cpio \
|
cpio \
|
||||||
gettext \
|
gettext \
|
||||||
@@ -47,33 +61,30 @@ RUN pacman -S --noconfirm --needed \
|
|||||||
python-pip \
|
python-pip \
|
||||||
python-build \
|
python-build \
|
||||||
python-wheel \
|
python-wheel \
|
||||||
maven \
|
|
||||||
tar \
|
|
||||||
xz \
|
|
||||||
llvm \
|
|
||||||
graphviz \
|
graphviz \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
python-sphinx \
|
python-sphinx \
|
||||||
python-yaml \
|
python-yaml \
|
||||||
openssh \
|
openssh \
|
||||||
texlive-latexextra \
|
texlive-latexextra
|
||||||
ccache \
|
|
||||||
lzop \
|
|
||||||
lz4 \
|
|
||||||
bzip2 \
|
|
||||||
gzip \
|
|
||||||
upx \
|
|
||||||
docker \
|
|
||||||
clang \
|
|
||||||
hidapi \
|
|
||||||
protobuf \
|
|
||||||
jdk21-openjdk
|
|
||||||
|
|
||||||
FROM base as rootless
|
FROM base AS rust
|
||||||
RUN useradd luser -G users -u 1000 -s /bin/bash -m -d /home/luser
|
RUN mkdir -p /etc/cargo
|
||||||
|
COPY config.toml /etc/cargo/
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
rustup \
|
||||||
|
llvm \
|
||||||
|
clang \
|
||||||
|
FROM rust AS rust-full
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
hidapi \
|
||||||
|
protobuf
|
||||||
|
|
||||||
|
FROM rust-full AS rust-full-rootless
|
||||||
USER luser
|
USER luser
|
||||||
WORKDIR /home/luser
|
WORKDIR /home/luser
|
||||||
|
RUN mkdir .cargo
|
||||||
|
RUN ln -s /etc/cargo/config.toml .cargo/config.toml
|
||||||
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu
|
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu
|
||||||
RUN rustup target add \
|
RUN rustup target add \
|
||||||
x86_64-unknown-linux-musl \
|
x86_64-unknown-linux-musl \
|
||||||
@@ -83,7 +94,5 @@ RUN rustup target add \
|
|||||||
arm-unknown-linux-musleabi \
|
arm-unknown-linux-musleabi \
|
||||||
aarch64-unknown-linux-musl \
|
aarch64-unknown-linux-musl \
|
||||||
aarch64-unknown-linux-gnu
|
aarch64-unknown-linux-gnu
|
||||||
RUN mkdir .cargo
|
|
||||||
COPY config.toml .cargo/
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user