Skip to content

Commit

Permalink
Merge pull request #22 from sora-xor/duty/build-relayer
Browse files Browse the repository at this point in the history
Duty/build relayer
  • Loading branch information
f33r0 authored Dec 12, 2023
2 parents fb44457 + d0218e8 commit 444f92f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
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'],
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"]

0 comments on commit 444f92f

Please sign in to comment.