Skip to content

Commit

Permalink
[Agent] Remove "D warning" from build env
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiping Yin authored and rvql committed Jun 30, 2023
1 parent aa73147 commit b1512f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions agent/docker/dockerfile-build
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ghcr.io/deepflowio/rust-build:1.20 as builder
FROM ghcr.io/deepflowio/rust-build:1.22 as builder
COPY . /deepflow/
WORKDIR /deepflow/agent
ARG GITHUB_REF_NAME
RUN source /opt/rh/devtoolset-8/enable && cp docker/rust-proxy-config /usr/local/cargo/config && RUSTFLAGS="-D warnings -C force-frame-pointers=yes" cargo build --release && \
RUN source /opt/rh/devtoolset-8/enable && cp docker/rust-proxy-config /usr/local/cargo/config && RUSTFLAGS="-C force-frame-pointers=yes" cargo build --release && \
cargo build --release --bin deepflow-agent-ctl && \
ls -alh target/release
FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions agent/docker/dockerfile-build-aarch64
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# TODO : aarch64 env rust-build update
FROM ghcr.io/deepflowio/rust-build:1.20-arm64 as builder
FROM ghcr.io/deepflowio/rust-build:1.21-arm64 as builder
COPY . /deepflow/
WORKDIR /deepflow/agent
ARG GITHUB_REF_NAME
RUN source /opt/rh/devtoolset-8/enable && RUSTFLAGS="-D warnings -C force-frame-pointers=yes" cargo build --release && \
RUN source /opt/rh/devtoolset-8/enable && RUSTFLAGS="-C force-frame-pointers=yes" cargo build --release && \
cargo build --release --bin deepflow-agent-ctl && \
ls -alh target/release
FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions agent/docker/dockerfile-build-aarch64-static-link
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# TODO : aarch64 env rust-build update
FROM ghcr.io/deepflowio/rust-build:1.20-arm64 as builder
FROM ghcr.io/deepflowio/rust-build:1.21-arm64 as builder
COPY . /deepflow/
WORKDIR /deepflow/agent
ARG GITHUB_REF_NAME
RUN source /opt/rh/devtoolset-8/enable && RUSTFLAGS="-D warnings -C force-frame-pointers=yes" cargo build --release --target=aarch64-unknown-linux-musl && \
RUN source /opt/rh/devtoolset-8/enable && RUSTFLAGS="-C force-frame-pointers=yes" cargo build --release --target=aarch64-unknown-linux-musl && \
cargo build --release --bin deepflow-agent-ctl --target=aarch64-unknown-linux-musl && \
ls -alh target/aarch64-unknown-linux-musl/release
FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions agent/docker/dockerfile-build-static-link
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ghcr.io/deepflowio/rust-build:1.21 as builder
FROM ghcr.io/deepflowio/rust-build:1.22 as builder
COPY . /deepflow/
WORKDIR /deepflow/agent
ARG GITHUB_REF_NAME
RUN cp docker/rust-proxy-config /usr/local/cargo/config && \
source /opt/rh/devtoolset-11/enable && \
RUSTFLAGS="-D warnings -C force-frame-pointers=yes" cargo build --release --target=x86_64-unknown-linux-musl && \
RUSTFLAGS="-C force-frame-pointers=yes" cargo build --release --target=x86_64-unknown-linux-musl && \
cargo build --release --bin deepflow-agent-ctl --target=x86_64-unknown-linux-musl && \
ls -alh target/x86_64-unknown-linux-musl/release
FROM scratch
Expand Down

0 comments on commit b1512f3

Please sign in to comment.