Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #433 from abetterinternet/timg/rust-buster
Browse files Browse the repository at this point in the history
facilitator: build on default (Debian) Rust image
  • Loading branch information
tgeoghegan authored Feb 19, 2021
2 parents 179cbc6 + e563be6 commit c6b781c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions facilitator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM rust:1.46-alpine as builder

RUN apk add libc-dev openssl-dev && apk update

# This is required so OpenSSL links properly. OpenSSL is required by reqwest, as used by
# prometheus with the `push` option.
# https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172
ENV RUSTFLAGS='-C target-feature=-crt-static'
FROM rust:1.46 as builder

# Attempt to install a nonexistent package. This triggers
# updating the crates.io index separately from building the
Expand Down Expand Up @@ -35,7 +28,6 @@ COPY ./avro-schema ./avro-schema
COPY ./facilitator ./facilitator

ARG BUILD_INFO=unspecified
ENV OPENSSL_STATIC=true

# This cargo build command must match the one above, or the build cache will not be reused.
RUN cargo build --manifest-path ./facilitator/Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion facilitator/src/bin/facilitator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ fn main() -> Result<(), anyhow::Error> {

let args: Vec<String> = std::env::args().collect();
info!(
"starting {} version {}. Args: [{}]",
"starting {} version {}, built from Debian. Args: [{}]",
args[0],
option_env!("BUILD_INFO").unwrap_or("(BUILD_INFO unavailable)"),
args[1..].join(" "),
Expand Down

0 comments on commit c6b781c

Please sign in to comment.