poanetwork / token-wizard

(Discontinued) TokenWizard is an DApp to create and manage crowdsale and token contracts using a simple UI
MIT License
384 stars 215 forks source link

(Feature) Add dockerfile #1116

Closed fernandomg closed 6 years ago

fernandomg commented 6 years ago

Included Dockerfile contains travis, which may be helpful for running local test in a container before creating the PR.

Steps to use it:

  1. install docker https://docs.docker.com/install/#supported-platforms
  2. move to the project root
  3. docker build -t tw . (where tw is the name of the docker image created and . is the location of the Dockerfile)
  4. docker run -ti tw
  5. once the image has started, run travis compile > ci.sh
  6. edit ci.sh file and set the corresponding branch (search for branch word and replace: branch\=\'\' with branch\=\'master\')
  7. bash ci.sh

Docker build can receive three arguments author, project, branch. Default values:

So you can build a docker image pointing to a specific author/project/branch. i.e.: docker build -t tw . --build-arg branch=2.0 will create the image pointing to branch 2.0


Important: Before running bash ci.sh you have to always find/replace the branch that the ci.sh is pointing to.

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 2962


Totals Coverage Status
Change from base Build 2950: 0.0%
Covered Lines: 834
Relevant Lines: 3594

💛 - Coveralls