Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 036810a

Browse files
committed
Fixed build and added multi-arch
1 parent 4a829d4 commit 036810a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

tools/youki/Dockerfile.template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ FROM ghcr.io/nicholasdille/docker-setup/rust:${ref} AS rust
66

77
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
88
COPY --from=rust / /
9+
ARG CARGO_HOME="/opt/cargo" \
10+
RUSTUP_HOME="/opt/rustup"
911
ARG DEBIAN_FRONTEND=noninteractive
1012
RUN <<EOF
1113
apt-get update
@@ -23,8 +25,6 @@ ARG version
2325
SHELL [ "/bin/bash", "--login", "-ec" ]
2426
RUN <<EOF
2527
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/containers/youki .
26-
cd crates
27-
export RUSTFLAGS='-C target-feature=+crt-static'
28-
cargo build --release --target x86_64-unknown-linux-gnu
29-
cp target/x86_64-unknown-linux-gnu/release/youki "${prefix}${target}/bin/"
28+
make youki-release
29+
cp youki "${prefix}${target}/bin/"
3030
EOF

tools/youki/manifest.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: youki
2-
version: 0.0.3
2+
version: 0.0.4
33
check: ""
44
dependencies:
55
- docker
6+
platforms:
7+
- linux/amd64
8+
- linux/arm64
69
tags:
710
- org/redhat
811
- container/runtime

0 commit comments

Comments
 (0)