Open stmllr opened 6 years ago
Building a microbrust docker image fails. Using rust 1.27.2 based on Debian stretch
Step 5/5 : RUN RUST_BACKTRACE=1 cargo run ---> Running in 0d970ee52bad Updating registry `https://github.com/rust-lang/crates.io-index` Downloading rustbox v0.11.0 Downloading midir v0.5.0 Downloading gag v0.1.9 Downloading termbox-sys v0.2.9 Downloading bitflags v0.2.1 Downloading num-traits v0.1.35 Downloading libc v0.2.42 Downloading tempfile v2.1.4 Downloading rand v0.3.14 Downloading winapi v0.2.8 Downloading kernel32-sys v0.2.2 Downloading winapi-build v0.1.1 Downloading rustc_version v0.1.7 Downloading semver v0.1.20 Downloading memalloc v0.1.0 Downloading nix v0.9.0 Downloading bitflags v0.3.3 Downloading alsa v0.2.0 Downloading bitflags v0.9.1 Downloading void v1.0.2 Downloading cfg-if v0.1.3 Downloading alsa-sys v0.1.2 Downloading pkg-config v0.3.8 Compiling termbox-sys v0.2.9 Compiling alsa v0.2.0 error: failed to run custom build command for `termbox-sys v0.2.9` process didn't exit successfully: `/app/target/debug/build/termbox-sys-096fdece95eb9796/build-script-build` (exit code: 101) --- stdout running: "git" "clone" "https://github.com/nsf/termbox" ".termbox" --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', libcore/result.rs:945:5 stack backtrace: 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: std::sys_common::backtrace::print at libstd/sys_common/backtrace.rs:71 at libstd/sys_common/backtrace.rs:59 2: std::panicking::default_hook::{{closure}} at libstd/panicking.rs:211 3: std::panicking::default_hook at libstd/panicking.rs:227 4: std::panicking::rust_panic_with_hook at libstd/panicking.rs:463 5: std::panicking::begin_panic_fmt at libstd/panicking.rs:350 6: rust_begin_unwind at libstd/panicking.rs:328 7: core::panicking::panic_fmt at libcore/panicking.rs:71 8: core::result::unwrap_failed at /checkout/src/libcore/macros.rs:26 9: <core::result::Result<T, E>>::unwrap at /checkout/src/libcore/result.rs:782 10: build_script_build::run at ./build.rs:86 11: build_script_build::setup at ./build.rs:26 12: build_script_build::main at ./build.rs:9 13: std::rt::lang_start::{{closure}} at /checkout/src/libstd/rt.rs:74 14: std::panicking::try::do_call at libstd/rt.rs:59 at libstd/panicking.rs:310 15: __rust_maybe_catch_panic at libpanic_unwind/lib.rs:105 16: std::rt::lang_start_internal at libstd/panicking.rs:289 at libstd/panic.rs:374 at libstd/rt.rs:58 17: std::rt::lang_start at /checkout/src/libstd/rt.rs:74 18: main 19: __libc_start_main 20: _start warning: build failed, waiting for other jobs to finish... error: build failed The command '/bin/sh -c RUST_BACKTRACE=1 cargo run' returned a non-zero code: 101
Dockerfile is:
FROM rust:1-slim RUN apt-get update && \ apt-get install -y --no-install-recommends \ libasound2-dev \ pkg-config COPY . /app WORKDIR /app RUN RUST_BACKTRACE=1 cargo run
Building a microbrust docker image fails. Using rust 1.27.2 based on Debian stretch
Dockerfile is: