Skip to content

vulcanize/waffle-docker

Repository files navigation

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

About

Build and host docker image for ethereum Waffle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages