-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: python3 installation * fix: install `python3` * fix: also install python3 here * test: pipx * fix: build polycli with version flags * fix: polycli build dir * fix: revert build change since it's not supported :( * chore: bump toolbox version * chore: use pipx in zkevm-contracts also * chore: nit * docs: nit
- Loading branch information
Showing
5 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,25 +2,26 @@ FROM golang:1.21 AS polycli-builder | |
ARG POLYCLI_VERSION | ||
WORKDIR /opt/polygon-cli | ||
RUN git clone --branch ${POLYCLI_VERSION} https://github.com/maticnetwork/polygon-cli.git . \ | ||
&& go build -o polycli main.go | ||
&& make build | ||
|
||
|
||
FROM ubuntu:24.04 | ||
LABEL author="[email protected]" | ||
LABEL description="Blockchain toolbox" | ||
|
||
COPY --from=polycli-builder /opt/polygon-cli/polycli /usr/bin/polycli | ||
COPY --from=polycli-builder /opt/polygon-cli/out/polycli /usr/bin/polycli | ||
COPY --from=polycli-builder /opt/polygon-cli/bindings /opt/bindings | ||
# WARNING (DL3008): Pin versions in apt get install. | ||
# WARNING (DL3013): Pin versions in pip. | ||
# WARNING (DL4006): Set the SHELL option -o pipefail before RUN with a pipe in it | ||
# WARNING (SC1091): (Sourced) file not included in mock. | ||
# hadolint ignore=DL3008,DL3013,DL4006,SC1091 | ||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends --yes curl git jq python3-pip \ | ||
&& apt-get install --yes --no-install-recommends curl git jq pipx \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip3 install --no-cache-dir yq \ | ||
&& pipx ensurepath \ | ||
&& pipx install yq \ | ||
&& curl --silent --location --proto "=https" https://foundry.paradigm.xyz | bash \ | ||
&& /root/.foundry/bin/foundryup \ | ||
&& cp /root/.foundry/bin/* /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM golang:1.21 AS polycli-builder | ||
WORKDIR /opt/polygon-cli | ||
RUN git clone https://github.com/maticnetwork/polygon-cli.git . \ | ||
&& CGO_ENABLED=0 go build -o polycli main.go | ||
&& make build | ||
|
||
FROM nicolaka/netshoot:v0.12 | ||
LABEL author="[email protected]" | ||
LABEL description="Helper image to debug network issues" | ||
COPY --from=polycli-builder /opt/polygon-cli/polycli /usr/local/bin/polycli | ||
COPY --from=polycli-builder /opt/polygon-cli/out/polycli /usr/local/bin/polycli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters