File tree Expand file tree Collapse file tree 9 files changed +36
-34
lines changed Expand file tree Collapse file tree 9 files changed +36
-34
lines changed Original file line number Diff line number Diff line change 1+ [target .aarch64-unknown-linux-gnu ]
2+ linker = " aarch64-linux-gnu-gcc"
Original file line number Diff line number Diff line change 11.git /
22.github /
3- lib /
3+ lib /node_modules /
44target /
55common /target /
66codegen /target /
Original file line number Diff line number Diff line change @@ -97,13 +97,14 @@ jobs:
9797 - name : Build and push Docker image
9898 uses : docker/build-push-action@v6
9999 with :
100+ platforms : linux/amd64,linux/arm64
100101 context : .
101102 push : true
102103 tags : ghcr.io/onelitefeathernet/feedback-fusion:nightly
103104
104105 dashboard :
105106 needs : [docker]
106- name : docker
107+ name : dashboard
107108 runs-on : ubuntu-latest
108109 steps :
109110 - name : Checkout Sources
@@ -119,6 +120,7 @@ jobs:
119120 - name : Build and push Docker image
120121 uses : docker/build-push-action@v6
121122 with :
123+ platforms : linux/amd64,linux/arm64
122124 context : .
123125 file : ./dashboard/Dockerfile
124126 push : true
Original file line number Diff line number Diff line change @@ -102,13 +102,14 @@ jobs:
102102 - name : Build and push Docker image
103103 uses : docker/build-push-action@v6
104104 with :
105+ platforms : linux/amd64,linux/arm64
105106 context : .
106107 push : true
107108 tags : ghcr.io/onelitefeathernet/feedback-fusion:${{env.VERSION}},ghcr.io/onelitefeathernet/feedback-fusion:latest
108109
109110 dashboard :
110111 needs : [docker]
111- name : docker
112+ name : dashboard
112113 runs-on : ubuntu-latest
113114 steps :
114115 - name : Checkout Sources
@@ -124,6 +125,7 @@ jobs:
124125 - name : Build and push Docker image
125126 uses : docker/build-push-action@v6
126127 with :
128+ platforms : linux/amd64,linux/arm64
127129 context : .
128130 file : ./dashboard/Dockerfile
129131 push : true
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ lazy_static = "1.4.0"
2929log = " 0.4.22"
3030nanoid = " 0.4.0"
3131openidconnect = " 3.5.0"
32+ openssl = { version = " 0.10.68" , features = [" vendored" ] }
3233opentelemetry = { version = " 0.24.0" , optional = true }
3334opentelemetry_sdk = { version = " 0.24.0" , optional = true , features = [
3435 " rt-tokio" ,
Original file line number Diff line number Diff line change 1- FROM rust:slim AS build
1+ FROM --platform=linux/amd64 rust:slim AS build
22
33COPY ./rust-toolchain.toml ./rust-toolchain.toml
44
55RUN apt-get update \
6- && apt-get install libssl-dev protobuf-compiler libprotobuf-dev pkg-config -y --no-install-recommends \
7- && apt-get clean \
8- && rustup update
6+ && apt-get install build-essential libssl-dev pkg-config libprotobuf-dev protobuf-compiler gcc-aarch64-linux-gnu libc6-dev-arm64-cross -y \
7+ && rustup update \
8+ && rustup target add aarch64-unknown-linux-gnu
99
1010ARG features=all-databases,otlp
1111
12+ COPY ./.cargo ./.cargo
1213COPY ./Cargo.toml .
1314COPY ./Cargo.lock .
1415COPY ./proto ./proto
@@ -18,7 +19,14 @@ COPY ./src ./src
1819COPY ./benches ./benches
1920COPY ./fuzz ./fuzz
2021
21- RUN cargo build --release --features $features
22+ ARG TARGETARCH
23+
24+ RUN if [ "$TARGETARCH" = "arm64" ]; then \
25+ cargo build --release --target aarch64-unknown-linux-gnu --features $features; \
26+ mv target/aarch64-unknown-linux-gnu/release/feedback-fusion target/release/feedback-fusion; \
27+ else \
28+ cargo build --release --features $features; \
29+ fi
2230
2331FROM gcr.io/distroless/cc-debian12
2432
Original file line number Diff line number Diff line change 11.PHONY : fuzz
22
3- pnpm :
4- pnpm i -C lib
5- pnpm i -C docs
6-
7- core_generate : pnpm
3+ core_generate :
4+ pnpm i -C lib
85 pnpm run -C lib protoc
96
107docs : core_generate
8+ pnpm i -C docs
119 pnpm run -C lib dev
1210
1311lib_build : core_generate
@@ -18,12 +16,12 @@ helm_docs:
1816 cp charts/feedback-fusion/README.md docs/docs/deployment/helm.md
1917
2018docs_build : lib_build
21- cd ./docs && pnpm run -C lib docs:build
19+ pnpm run -C docs docs:build
2220
23- extract_translations : pnpm
21+ extract_translations :
2422 pnpm run -C lib translations:extract
2523
26- build_translations : pnpm
24+ build_translations :
2725 pnpm run -C lib translations:build
2826
2927# dashboard
Original file line number Diff line number Diff line change 1- FROM node:22-bookworm-slim AS build-ssr
1+ FROM --platform=linux/amd64 node:22-bookworm-slim AS build-ssr
22
3- RUN apt-get update && apt-get install -y protobuf-compiler libprotobuf-dev make && npm i -g pnpm
3+ RUN apt-get update && apt-get install -y protobuf-compiler libprotobuf-dev make && npm i -g pnpm && mkdir build
44
5- COPY ./dashboard/ ./dashboard
5+ WORKDIR build
6+
7+ COPY ./dashboard ./dashboard
68COPY ./proto ./proto
79COPY ./lib ./lib
810COPY ./Makefile .
@@ -11,6 +13,6 @@ RUN make dashboard_build
1113
1214FROM gcr.io/distroless/nodejs22-debian12
1315
14- COPY --from=build-ssr /dashboard/.output/ ./.output
16+ COPY --from=build-ssr /build/ dashboard/.output/ ./.output
1517
1618CMD [".output/server/index.mjs" ]
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
33 "extends" : [
4- " config:base"
5- ],
6- "packageRules" : [
7- {
8- "matchPackagePatterns" : [
9- " *"
10- ],
11- "matchUpdateTypes" : [
12- " minor" ,
13- " patch"
14- ],
15- "groupName" : " all non-major dependencies" ,
16- "groupSlug" : " all-minor-patch"
17- }
4+ " config:recommended"
185 ]
196}
You can’t perform that action at this time.
0 commit comments