This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating the CI system with the publication of releases and binary files on github Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com> * add missed scripts * chmod +x scripts * fix download link for github * rebuilding CI scripts * small fixes * update submodule wasm tests * ci: fix merge leftovers * ci: remove gitlab-next from ci triggers * ci: fix git add in docs script * ci: use nightly instead of master for publish triggers * ci: remove sleep from gitlab config * ci: replace ':' with '-' in gitlab targets * ci: fix recursive copy in docs script
- Loading branch information
1 parent
9ed4323
commit bd3bc5c
Showing
25 changed files
with
680 additions
and
638 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,27 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Parity Technologies <devops@parity.io> | ||
WORKDIR /build | ||
#ENV for build TAG | ||
ARG BUILD_TAG | ||
ENV BUILD_TAG ${BUILD_TAG:-master} | ||
RUN echo "Build tag:" $BUILD_TAG | ||
#set ENVIROMENT | ||
ARG TARGET | ||
ENV TARGET ${TARGET} | ||
|
||
# install tools and dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --force-yes --no-install-recommends \ | ||
# make | ||
build-essential \ | ||
# add-apt-repository | ||
software-properties-common \ | ||
make \ | ||
cmake \ | ||
curl \ | ||
wget \ | ||
git \ | ||
g++ \ | ||
gcc \ | ||
libc6 \ | ||
libc6-dev \ | ||
binutils \ | ||
file \ | ||
libudev-dev \ | ||
pkg-config \ | ||
dpkg-dev &&\ | ||
# install rustup | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y && \ | ||
# rustup directory | ||
PATH=/root/.cargo/bin:$PATH && \ | ||
RUN apt update && apt install -y --no-install-recommends openssl libudev-dev file | ||
|
||
# show backtraces | ||
RUST_BACKTRACE=1 && \ | ||
# build parity | ||
cd /build&&git clone https://github.com/paritytech/parity-ethereum && \ | ||
cd parity-ethereum&& \ | ||
git pull&& \ | ||
git checkout $BUILD_TAG && \ | ||
cargo build --verbose --release --features final && \ | ||
strip /build/parity-ethereum/target/release/parity && \ | ||
file /build/parity-ethereum/target/release/parity&&mkdir -p /parity&& cp /build/parity-ethereum/target/release/parity /parity&&\ | ||
ENV RUST_BACKTRACE 1 | ||
|
||
#cleanup Docker image | ||
rm -rf /root/.cargo&&rm -rf /root/.multirust&&rm -rf /root/.rustup&&rm -rf /build&&\ | ||
apt-get purge -y \ | ||
# make | ||
build-essential \ | ||
# add-apt-repository | ||
software-properties-common \ | ||
make \ | ||
cmake \ | ||
curl \ | ||
wget \ | ||
git \ | ||
g++ \ | ||
gcc \ | ||
binutils \ | ||
file \ | ||
pkg-config \ | ||
dpkg-dev &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN apt autoremove -y | ||
RUN apt clean -y | ||
RUN rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* | ||
|
||
#add TARGET to docker image | ||
COPY artifacts/x86_64-unknown-linux-gnu/$TARGET /usr/bin/$TARGET | ||
|
||
# Build a shell script because the ENTRYPOINT command doesn't like using ENV | ||
RUN echo "#!/bin/bash \n ${TARGET} \$@" > ./entrypoint.sh | ||
RUN chmod +x ./entrypoint.sh | ||
|
||
# setup ENTRYPOINT | ||
EXPOSE 8080 8545 8180 | ||
ENTRYPOINT ["/parity/parity"] | ||
EXPOSE 5001 8080 8082 8083 8545 8546 8180 30303/tcp 30303/udp | ||
ENTRYPOINT ["./entrypoint.sh"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.