Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Alpine docker build failure #10614

@holiman

Description

@holiman

As noted in #10525, parity now requires version Rust 1.33. I'm trying to build the alpine docker version of Parity, based on the template in the repo: https://github.com/paritytech/parity-ethereum/blob/master/scripts/docker/alpine/Dockerfile .

Here are the first couple of lines from the docker image, followed by an abort:

#cat Dockerfile 
FROM alpine:edge AS builder

# show backtraces
ENV RUST_BACKTRACE 1

RUN apk add --no-cache \
  build-base \
  cargo \
  cmake \
  eudev-dev \
  linux-headers \
  perl \
  rust

RUN rustc --version
RUN bazonk

When I run this, I get

Sending build context to Docker daemon   2.56kB
Step 1/19 : FROM alpine:edge AS builder
 ---> 3e8d7a5561f0
Step 2/19 : ENV RUST_BACKTRACE 1
 ---> Using cache
 ---> f0f140aa78eb
Step 3/19 : RUN apk add --no-cache   build-base   cargo   cmake   eudev-dev   linux-headers   perl   rust
 ---> Using cache
 ---> 0f1dbd2833df
Step 4/19 : RUN rustc --version
 ---> Running in 4d289bd0267f
rustc 1.31.1

So the alpine:edge vesion of rust does not seem sufficiently up to date. And indeed, that is also what alpine reports: https://pkgs.alpinelinux.org/package/edge/community/x86_64/rust

So, are there any workarounds for this?
The error I eventually wind up with is

error[E0658]: use of unstable library feature 'duration_as_u128' (see issue #50202)
   --> ethcore/src/engines/clique/mod.rs:342:75
    |
342 |                 trace!(target: "engine", "Back-filling succeed, took {} ms.", elapsed.as_millis());
    |                                                                                       ^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    M0-build 🏗Building and build system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions