7781cbbc57
* ci: reduce gitlab pipelines significantly * ci: build pipeline for PR * ci: remove dead weight * ci: remove github release script * ci: remove forever broken aura tests * ci: add random stuff to the end of the pipes * ci: add wind and mac to the end of the pipe * ci: remove snap artifacts * ci: (re)move dockerfiles * ci: clarify job names * ci: add cargo audit job * ci: make audit script executable * ci: ignore snap and docker files for rust check * ci: simplify audit script * ci: rename misc to optional * ci: add publish script to releaseable branches * ci: more verbose cp command for windows build * ci: fix weird binary checksum logic in push script * ci: fix regex in push script for windows * ci: simplify gitlab caching * docs: align README with ci changes * ci: specify default cargo target dir * ci: print verbose environment * ci: proper naming of scripts * ci: restore docker files * ci: use docker hub file * ci: use cargo home instead of cargo target dir * ci: touch random rust file to trigger real builds * ci: set cargo target dir for audit script * ci: remove temp file * ci: don't export the cargo target dir in the audit script * ci: fix windows unbound variable * docs: fix gitlab badge path * rename deprecated gitlab ci variables https://docs.gitlab.com/ee/ci/variables/#9-0-renaming * ci: fix git compare for nightly builds * test: skip c++ example for all platforms but linux * ci: add random rust file to trigger tests * ci: remove random rust file * disable cpp lib test for mac, win and beta (#9686)
46 lines
1.4 KiB
Docker
46 lines
1.4 KiB
Docker
FROM ubuntu:14.04
|
|
WORKDIR /build
|
|
|
|
# install tools and dependencies
|
|
RUN apt-get -y update && \
|
|
apt-get install -y --force-yes --no-install-recommends \
|
|
curl git make g++ gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf \
|
|
libc6-dev-armhf-cross wget file ca-certificates \
|
|
binutils-arm-linux-gnueabihf cmake3 libudev-dev \
|
|
&& \
|
|
apt-get clean
|
|
|
|
# install rustup
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
|
|
# rustup directory
|
|
ENV PATH /root/.cargo/bin:$PATH
|
|
|
|
ENV RUST_TARGETS="arm-unknown-linux-gnueabihf"
|
|
|
|
# multirust add arm--linux-gnuabhf toolchain
|
|
RUN rustup target add armv7-unknown-linux-gnueabihf
|
|
|
|
# show backtraces
|
|
ENV RUST_BACKTRACE 1
|
|
|
|
# show tools
|
|
RUN rustc -vV && cargo -V
|
|
|
|
# build parity
|
|
ADD . /build/parity
|
|
RUN cd parity && \
|
|
mkdir -p .cargo && \
|
|
echo '[target.armv7-unknown-linux-gnueabihf]\n\
|
|
linker = "arm-linux-gnueabihf-gcc"\n'\
|
|
>>.cargo/config && \
|
|
cat .cargo/config && \
|
|
cargo build --target armv7-unknown-linux-gnueabihf --release --verbose && \
|
|
ls /build/parity/target/armv7-unknown-linux-gnueabihf/release/parity && \
|
|
/usr/bin/arm-linux-gnueabihf-strip /build/parity/target/armv7-unknown-linux-gnueabihf/release/parity
|
|
|
|
RUN file /build/parity/target/armv7-unknown-linux-gnueabihf/release/parity
|
|
|
|
EXPOSE 8080 8545 8180
|
|
ENTRYPOINT ["/build/parity/target/armv7-unknown-linux-gnueabihf/release/parity"]
|