HUB
Sign inSign up

jctosta/truffle-base

By jctosta

•Updated over 7 years ago

Image
0

1.4K

jctosta/truffle-base repository overview

⁠Truffle + Node + Docker === 💖

⁠Requirements

Create a docker settings file:

mkdir -p ~/.docker
vim ~/.docker/config.json

Then add information about your proxy server, if needed:

{
 "proxies":
 {
   "default":
   {
     "httpProxy": "http://127.0.0.1:3001",
     "httpsProxy": "http://127.0.0.1:3001",
     "noProxy": "*.test.example.com,.example2.com"
   }
 }
}

⁠Building the image

To build the image, use:

docker build -t <username>/truffle-base:<version> .

⁠Publishing on Dockerhub

If you are using Linux, before you can log in to dockerhub you will need to install two dependencies in your development environment:

sudo apt install gnupg2 pass

Now just log in:

docker login --username=<username>

Before publishing it is possible to change the tag of the image, being able to change the name or version:

docker tag <container_id> <username>/truffle-base:<version>

And finally, use the push command to send the image to dockerhub:

docker push <username>/truffle-base
Tag summary
Recent tags
Content type
Image
Digest
Size
153.9 MB
Last updated
over 7 years ago
docker pull jctosta/truffle-base:latest