Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Regenesis Pangolin (#459)
Browse files Browse the repository at this point in the history
* Substrate Updates (#454)

* companion: for #substrate-7250

* lock: deps

* bump: smallvec

* update: format

* companion: for #substrate-7228

* companion: for #substrate-7350

* companion: for #substrate-6869

* bump: log

* companion: for #substrate-7000

* companion: for #substrate-7296

* companion: for #substrate-7299

* companion: for #substrate-7318

* companion: for #substrate-7384

* companion: for #substrate-7394

* companion: for #substrate-7225

* companion: for #substrate-7328

* companion: for #substrate-7233

* companion: for #substrate-7381

* fix: compile with latest rust

* companion: for #substrate-7368

* free: deps lock

* update: deps

* support: cross compile

* regenesis

* checkout: alpha version

* regenesis
  • Loading branch information
aurexav authored Jan 21, 2021
1 parent cbda42e commit beb1821
Show file tree
Hide file tree
Showing 73 changed files with 1,111 additions and 1,109 deletions.
317 changes: 0 additions & 317 deletions .maintain/.darwiniarc

This file was deleted.

38 changes: 38 additions & 0 deletions .maintain/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
##
# Builder
##

FROM rust:1 as builder

ARG RUST_TOOLCHAIN=nightly-2020-10-06
ENV CARGO_TERM_COLOR=always

RUN apt-get update && apt-get install -y --no-install-recommends \
clang \
libclang-dev \
cmake \
&& rm -rf /var/lib/apt/lists/*

RUN rustup default ${RUST_TOOLCHAIN} \
&& rustup target add wasm32-unknown-unknown

WORKDIR /src
COPY . .

RUN cargo build --release

##
# Final stage
##

FROM debian:stable-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
openssl \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /src/target/release/darwinia /usr/local/bin/

EXPOSE 30333 9933 9944

ENTRYPOINT [ "/usr/local/bin/darwinia" ]
2 changes: 1 addition & 1 deletion .maintain/docker/Dockerfile.x86_64-linux-gnu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

# only for centos-7
# for gernal linux

# change mirrorlist
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo && yum makecache \
Expand Down
10 changes: 10 additions & 0 deletions .maintain/monitoring/alerting-rules/alerting-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ groups:
# Others
##############################################################################

- alert: ContinuousTaskEnded
expr: '(polkadot_tasks_spawned_total == 1) - on(instance, task_name)
(polkadot_tasks_ended_total == 1)'
for: 5m
labels:
severity: warning
annotations:
message: 'Continuous task {{ $labels.task_name }} on node
{{ $labels.instance }} ended unexpectedly.'

- alert: AuthorityDiscoveryDiscoveryFailureHigh
expr: 'darwinia_authority_discovery_handle_value_found_event_failure /
ignoring(name)
Expand Down
Loading

0 comments on commit beb1821

Please sign in to comment.