Build and host docker image for ethereum Waffle
- Add your contracts to
./contracts/
- Update the waffle config (
./environments/example.toml
) and package.json to desired compiler version - Build the image:
docker build .
- Run the entrypoint
docker run -d {image_id} {path_to_config}
- 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)
- Pull docker image:
docker pull {image_url}
- Create docker container from image:
docker create {path_to_config}
- Copy contracts into container
docker cp ./contracts {container_id}:/go/src/github.com/vulcanize/waffle-docker/contracts
- Copy waffle config into container
docker cp ./environments/example.json {container_id}:/go/src/github.com/vulcanize/waffle-docker/{path_to_config}
- Start the container:
docker start {container_id}
- Copy output to local system
docker cp {container_id}:/go/src/github.com/vulcanize/waffle-docker/build ./build