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

Commit bd3bc5c

Browse files
General-Beck5chdn
authored andcommitted
Updating the CI system (#8765)
* Updating the CI system with the publication of releases and binary files on github Signed-off-by: Denis S. Soldatov aka General-Beck <[email protected]> * 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
1 parent 9ed4323 commit bd3bc5c

25 files changed

+680
-638
lines changed

.gitlab-ci.yml

Lines changed: 253 additions & 199 deletions
Large diffs are not rendered by default.

docker/hub/Dockerfile

Lines changed: 21 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,27 @@
11
FROM ubuntu:xenial
22
MAINTAINER Parity Technologies <[email protected]>
3-
WORKDIR /build
4-
#ENV for build TAG
5-
ARG BUILD_TAG
6-
ENV BUILD_TAG ${BUILD_TAG:-master}
7-
RUN echo "Build tag:" $BUILD_TAG
3+
#set ENVIROMENT
4+
ARG TARGET
5+
ENV TARGET ${TARGET}
6+
87
# install tools and dependencies
9-
RUN apt-get update && \
10-
apt-get install -y --force-yes --no-install-recommends \
11-
# make
12-
build-essential \
13-
# add-apt-repository
14-
software-properties-common \
15-
make \
16-
cmake \
17-
curl \
18-
wget \
19-
git \
20-
g++ \
21-
gcc \
22-
libc6 \
23-
libc6-dev \
24-
binutils \
25-
file \
26-
libudev-dev \
27-
pkg-config \
28-
dpkg-dev &&\
29-
# install rustup
30-
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
31-
# rustup directory
32-
PATH=/root/.cargo/bin:$PATH && \
8+
RUN apt update && apt install -y --no-install-recommends openssl libudev-dev file
9+
3310
# show backtraces
34-
RUST_BACKTRACE=1 && \
35-
# build parity
36-
cd /build&&git clone https://github.com/paritytech/parity-ethereum && \
37-
cd parity-ethereum&& \
38-
git pull&& \
39-
git checkout $BUILD_TAG && \
40-
cargo build --verbose --release --features final && \
41-
strip /build/parity-ethereum/target/release/parity && \
42-
file /build/parity-ethereum/target/release/parity&&mkdir -p /parity&& cp /build/parity-ethereum/target/release/parity /parity&&\
11+
ENV RUST_BACKTRACE 1
12+
4313
#cleanup Docker image
44-
rm -rf /root/.cargo&&rm -rf /root/.multirust&&rm -rf /root/.rustup&&rm -rf /build&&\
45-
apt-get purge -y \
46-
# make
47-
build-essential \
48-
# add-apt-repository
49-
software-properties-common \
50-
make \
51-
cmake \
52-
curl \
53-
wget \
54-
git \
55-
g++ \
56-
gcc \
57-
binutils \
58-
file \
59-
pkg-config \
60-
dpkg-dev &&\
61-
rm -rf /var/lib/apt/lists/*
14+
RUN apt autoremove -y
15+
RUN apt clean -y
16+
RUN rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
17+
18+
#add TARGET to docker image
19+
COPY artifacts/x86_64-unknown-linux-gnu/$TARGET /usr/bin/$TARGET
20+
21+
# Build a shell script because the ENTRYPOINT command doesn't like using ENV
22+
RUN echo "#!/bin/bash \n ${TARGET} \$@" > ./entrypoint.sh
23+
RUN chmod +x ./entrypoint.sh
24+
6225
# setup ENTRYPOINT
63-
EXPOSE 8080 8545 8180
64-
ENTRYPOINT ["/parity/parity"]
26+
EXPOSE 5001 8080 8082 8083 8545 8546 8180 30303/tcp 30303/udp
27+
ENTRYPOINT ["./entrypoint.sh"]

scripts/cov.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

scripts/docker-build.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/gitlab-build.sh

Lines changed: 0 additions & 234 deletions
This file was deleted.

scripts/gitlab-push-release.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)