Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duty/build relayer #22

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ def pipeline = new org.rust.AppPipeline(steps: this,
initSubmodules: true,
envImageName: 'docker.soramitsu.co.jp/sora2/env:rust-1.73.0',
appImageName: 'docker.soramitsu.co.jp/sora2/bridge-relayer',
pushTags: [:],
pushTags: ['master':'latest','duty/build-relayer': 'test-build'],
buildTestCmds: ['housekeeping/build.sh'],
cargoClippyCmds: []
cargoClippyCmds: [],
buildArtifacts: "target/release/bridge-relayer.d"
)
pipeline.runPipeline()
3 changes: 1 addition & 2 deletions housekeeping/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
set -e
export rustcVersion="1.73.0"
cargo build
cargo b -r
16 changes: 16 additions & 0 deletions housekeeping/docker/release/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:bullseye-20231120-slim

# Install dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y \
ca-certificates nano curl && \
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete &&\
useradd substrate -u 10000

USER substrate

COPY ./target/release/bridge-relayer /usr/local/bin/relayer

ENTRYPOINT ["relayer"]