-
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow custom plugin specification in Docker file and other Dock…
…er / plugin improvements (#1029)
- Loading branch information
Showing
13 changed files
with
272 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
FROM ubuntu:22.04 | ||
RUN apt-get update && apt-get upgrade --yes && apt-get install git python3.9 python3-pip --yes | ||
ADD . /code | ||
WORKDIR /code | ||
|
||
RUN pip install . | ||
RUN ape plugins install alchemy ens etherscan foundry hardhat infura ledger solidity template tokens trezor vyper | ||
RUN pip install eth-rlp==0.3.0 | ||
#--------------------------------------------------------------------------------------------- | ||
# See LICENSE in the project root for license information. | ||
#--------------------------------------------------------------------------------------------- | ||
|
||
ARG PYTHON_VERSION="3.9" | ||
ARG PLUGINS_FILE="./recommended-plugins.txt" | ||
|
||
FROM python:${PYTHON_VERSION} | ||
|
||
RUN apt-get update && apt-get upgrade --yes && apt-get install git | ||
|
||
# See http://label-schema.org for metadata schema | ||
# TODO: Add `build-date` and `version` | ||
LABEL maintainer="ApeWorX" \ | ||
org.label-schema.schema-version="2.0" \ | ||
org.label-schema.name="ape" \ | ||
org.label-schema.description="Ape Ethereum Framework." \ | ||
org.label-schema.url="https://docs.apeworx.io/ape/stable/" \ | ||
org.label-schema.usage="https://docs.apeworx.io/ape/stable/userguides/quickstart.html#via-docker" \ | ||
org.label-schema.vcs-url="https://github.com/ApeWorX/ape" \ | ||
org.label-schema.docker.cmd="docker run --volume $HOME/.ape:/root/.ape --volume $HOME/.vvm:/root/.vvm --volume $HOME/.solcx:/root/.solcx --volume $PWD:/root/project --workdir /root/project apeworx/ape compile" | ||
|
||
RUN useradd --create-home --shell /bin/bash harambe | ||
WORKDIR /home/harambe | ||
COPY . . | ||
|
||
RUN pip install --upgrade pip \ | ||
&& pip install --no-cache-dir . \ | ||
&& pip install -r recommended-plugins.txt \ | ||
# Fix RLP installation issue | ||
&& pip uninstall rlp --yes \ | ||
&& pip install rlp==3.0.0 \ | ||
# Validate installation | ||
&& ape --version | ||
|
||
USER harambe | ||
ENTRYPOINT ["ape"] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ape-alchemy | ||
ape-ens | ||
ape-etherscan | ||
ape-foundry | ||
ape-hardhat | ||
ape-infura | ||
ape-ledger | ||
ape-solidity | ||
ape-template | ||
ape-tokens | ||
ape-trezor | ||
ape-vyper |
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
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
Oops, something went wrong.