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

chore(ci): update fhevm-listener binary #314

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 0 additions & 2 deletions .github/workflows/cargo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Rust tests

on:
pull_request:
branches:
- main
paths:
- .github/workflows/cargo-tests.yml
- fhevm-engine/**
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/fhevm-coprocessor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: "fhEVM Coprocessor Docker Image"

on:
pull_request:
paths:
- .github/workflows/fhevm-coprocessor.yml
- .github/workflows/common-docker.yml
- fhevm-engine/**
- proto/**
push:
branches:
- main
- aw/docker-coprocessor
paths:
- .github/workflows/fhevm-coprocessor.yml
- .github/workflows/common-docker.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/fhevm-db-migration.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: "fhEVM DB migration Docker Image"

on:
pull_request:
paths:
- .github/workflows/fhevm-coprocessor.yml
- .github/workflows/common-docker.yml
- fhevm-engine/fhevm-db/**
push:
branches:
- main
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/fhevm-smart-contracts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: "fhEVM smart contracts Docker Image"

on:
pull_request:
paths:
- .github/workflows/fhevm-smart-contracts.yml
- .github/workflows/common-docker.yml
- contracts/**
push:
branches:
- main
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ Options:
```

##### fhevm-listener

```bash
# this service will be renamed fhevm_listener
$ listen --help
Usage: listen [OPTIONS]
$ fhevm_listener --help
Usage: fhevm_listener [OPTIONS]

Options:
--url <URL> [default: ws://0.0.0.0:8746]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

12 changes: 6 additions & 6 deletions fhevm-engine/coprocessor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ FROM debian:bullseye-slim

COPY --from=build /app/fhevm-engine/target/release/coprocessor /usr/local/bin/coprocessor
COPY --from=build /app/fhevm-engine/target/release/cli /usr/local/bin/cli
# This binary will be renamed to fhevm_listener
COPY --from=build /app/fhevm-engine/target/release/listen /usr/local/bin/listen
COPY --from=build /app/fhevm-engine/target/release/fhevm_listener /usr/local/bin/fhevm_listener
COPY --from=build /app/fhevm-engine/target/release/gw_listener /usr/local/bin/gw_listener
COPY --from=build /app/fhevm-engine/target/release/zkproof_worker /usr/local/bin/zkproof_worker
COPY --from=build /app/fhevm-engine/target/release/sns_worker /usr/local/bin/sns_worker
COPY --from=build /app/fhevm-engine/target/release/transaction_sender /usr/local/bin/transaction_sender

RUN groupadd -r zama && useradd -r -g zama zama && \
RUN groupadd -g 10001 zama && \
useradd -u 10000 -g zama zama && \
chown -R zama:zama /usr/local/bin && \
chmod 500 /usr/local/bin/coprocessor && \
chmod 500 /usr/local/bin/cli && \
chmod 500 /usr/local/bin/listen && \
chmod 500 /usr/local/bin/fhevm_listener && \
chmod 500 /usr/local/bin/gw_listener && \
chmod 500 /usr/local/bin/zkproof_worker && \
chmod 500 /usr/local/bin/sns_worker && \
chmod 500 /usr/local/bin/transaction_sender

USER zama
USER zama:zama

CMD ["/usr/local/bin/coprocessor --help"]
CMD ["/usr/local/bin/coprocessor"]
2 changes: 1 addition & 1 deletion fhevm-engine/fhevm-listener/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[[bin]]
path = "src/bin/main.rs"
name = "listen"
name = "fhevm_listener"
test = false
bench = false

Expand Down
Loading