This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Updating the CI system #8765
Merged
Merged
Updating the CI system #8765
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ebc6b9c
Updating the CI system with the publication of releases and binary fi…
General-Beck 8926b43
add missed scripts
General-Beck 95a7b03
chmod +x scripts
General-Beck 514e4af
fix download link for github
General-Beck 42a0ba5
Merge branch 'master' into gitlab-next
General-Beck df9a1e4
rebuilding CI scripts
General-Beck ef997cb
small fixes
General-Beck 0a0d797
update submodule wasm tests
General-Beck 200a826
ci: merge master
5chdn 44bf39d
ci: fix merge leftovers
5chdn 46622d2
ci: remove gitlab-next from ci triggers
5chdn 8a0c089
ci: fix git add in docs script
5chdn a8c2b29
ci: use nightly instead of master for publish triggers
5chdn c943b82
ci: remove sleep from gitlab config
5chdn 13594c5
ci: replace ':' with '-' in gitlab targets
5chdn f1f8362
ci: fix recursive copy in docs script
5chdn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why libudev-dev? Shouldn't it be libudev?
And there is no dependency on libssl anymore, so why openssl?