Skip to content

Commit 85b5b97

Browse files
authored
Add c2patool (#702)
1 parent 6ec1374 commit 85b5b97

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ jobs:
7777
7878
cp ./scripts/livepeer-vmagent ./bin/livepeer-vmagent
7979
80+
- name: Configure Rust Toolchain
81+
uses: actions-rs/toolchain@v1
82+
with:
83+
toolchain: stable
84+
85+
- name: Build c2patool
86+
uses: baptiste0928/cargo-install@v2
87+
with:
88+
crate: c2patool
89+
version: "0.6.2"
90+
91+
- name: Copy c2patool
92+
run: |
93+
cp "${HOME}/.cargo/bin/c2patool" ./bin/c2patool
94+
8095
- name: Strip binaries of debug symbols
8196
if: matrix.platform.name == 'linux' && matrix.architecture == 'amd64'
8297
run: |

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ RUN npm install --prefix /app/go-tools/w3
4949
# chown needed to make everything owned by one user for userspace podman execution
5050
RUN chown -R root:root /app/go-tools/w3
5151

52+
FROM rust:1.73.0 as rust-build
53+
RUN cargo install --version 0.6.2 c2patool
54+
5255
FROM ubuntu:22.04 AS catalyst
5356

5457
ENV DEBIAN_FRONTEND=noninteractive
@@ -73,6 +76,7 @@ RUN apt update && apt install -yqq \
7376
# Most of ./scripts is for livepeer-in-a-box except livepeer-vmagent, which is used in production in Catalyst proper
7477
ADD ./scripts/livepeer-vmagent /usr/local/bin
7578
COPY --from=catalyst-build /opt/bin/ /usr/local/bin/
79+
COPY --from=rust-build /usr/local/cargo/bin/c2patool /bin/
7680
COPY --from=node-build /app/go-tools/w3 /opt/local/lib/livepeer-w3
7781
RUN ln -s /opt/local/lib/livepeer-w3/livepeer-w3.js /usr/local/bin/livepeer-w3 && \
7882
npm install -g ipfs-car

0 commit comments

Comments
 (0)