Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.06 KB

README.md

File metadata and controls

19 lines (15 loc) · 1.06 KB

waffle-docker

Build and host docker image for ethereum Waffle

Usage

  1. Add your contracts to ./contracts/
  2. Update the waffle config (./environments/example.toml) and package.json to desired compiler version
  3. Build the image: docker build .
  4. Run the entrypoint docker run -d {image_id} {path_to_config}
  5. Copy output to local system docker cp {container_id}:/go/src/github.com/vulcanize/waffle-docker/build ./build

Or, using the pre-built image (0.5.16 EVM or OVM compiler)

  1. Pull docker image: docker pull {image_url}
  2. Create docker container from image: docker create {path_to_config}
  3. Copy contracts into container docker cp ./contracts {container_id}:/go/src/github.com/vulcanize/waffle-docker/contracts
  4. Copy waffle config into container docker cp ./environments/example.json {container_id}:/go/src/github.com/vulcanize/waffle-docker/{path_to_config}
  5. Start the container: docker start {container_id}
  6. Copy output to local system docker cp {container_id}:/go/src/github.com/vulcanize/waffle-docker/build ./build