Skip to content

Commit

Permalink
Merge pull request #173 from zama-ai/ci/fix-dev-image-build
Browse files Browse the repository at this point in the history
Fix developer image build
  • Loading branch information
david-zk authored Aug 1, 2023
2 parents da39531 + 8ed1a52 commit 699e90b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish_developer_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
uname -r
lsb_release -a
- name: Login to GitHub Container Registry
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: List files in the repository
run: |
ls ${{ github.workspace }}
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile.evmos-node.developer
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@


FROM ghcr.io/zama-ai/fhevm-requires-db:v0.1.4 as oracle-env
FROM ghcr.io/zama-ai/fhevm-decryptions-db:v0.1.5 as oracle-env
FROM ghcr.io/zama-ai/fhevm-tfhe-cli:v0.1.2 as tfhe-cli

FROM ghcr.io/zama-ai/evmos-node:v0.1.7-beta

WORKDIR /config

ADD ./node/evmos/private.ed25519 .
ADD ./node/evmos/public.ed25519 .
ADD ./private.ed25519 .
ADD ./public.ed25519 .
ADD ./scripts/prepare_volumes_from_fhe_tool.sh .
ADD ./scripts/prepare_validator_ci.sh .
ADD ./scripts/run_developer_image.sh .


COPY --from=oracle-env /usr/local/app/fhevm-requires-db .
COPY --from=oracle-env /usr/local/app/fhevm-decryptions-db .
COPY --from=oracle-env /usr/local/app/Rocket.toml .
COPY --from=tfhe-cli /usr/local/bin/fhevm-tfhe-cli /usr/local/bin

EXPOSE 26656 26657 1317 9090 8545 8546 8001

ENTRYPOINT ["./run_developer_image.sh"]
ENTRYPOINT ["./run_developer_image.sh"]
4 changes: 2 additions & 2 deletions scripts/run_developer_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ EVMOS_NETWORK_KEYS_PATH=/root/.evmosd/zama/keys/network-fhe-keys ./prepare_valid
TRACE=""
LOGLEVEL="info"

./fhevm-requires-db &
./fhevm-decryptions-db &

# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
evmosd start --home /root/.evmosd --pruning=nothing $TRACE --log_level $LOGLEVEL \
--minimum-gas-prices=0.0001aevmos \
--json-rpc.gas-cap=50000000 \
--json-rpc.api eth,txpool,net,web3
--json-rpc.api eth,txpool,net,web3

0 comments on commit 699e90b

Please sign in to comment.