Skip to content
Cosmopediaby Unity Nodes
DiscussionsValidationBuild Cosmos Docker and upload to Docker-Hub for run in any machineForum ↗

Build Cosmos Docker and upload to Docker-Hub for run in any machine

Validation1 posts2,344 viewsLast activity Nov 2018
ME
melea-trustOP
Nov 2018

#If need install docker and Goland Start here. #Install go ``` wget -c 'https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz' -O go1.10.3.linux-amd64.tar.gz ``` ``` sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz ``` ``` sudo rm -Rf go1.10.3.linux-amd64.tar.gz ``` #Set gopath ``` vi $HOME/.profile ``` #Add this lines to your file: PATH=“$PATH:/usr/local/go/bin” GOPATH=“$HOME/go” PATH=“$PATH:$GOROOT/bin:$GOPATH/bin” #reload profile ``` source $HOME/.profile ``` ``` go version ``` #$: go version go1.10.3 linux/amd64 Step 2 #Install Docker ``` sudo apt-get update curl -fsSL get.docker.com -o get-docker.sh sh get-docker.sh sh install.sh ``` #Add your user to Docker Group ``` sudo usermod -aG docker $(whoami) ``` #Now that Goland and Docker is installed, just Download Cosmos Official repo. ``` go get github.com/cosmos/cosmos-sdk ``` #Open Cosmos Dir ``` cd go/src/github.com/cosmos/cosmos-sdk ``` #Build the Docker-Cosmos locally in the server ``` docker build -t CONTAINER-NAME . ``` ``` #Example= docker build -t cosmos-026 . ``` #open a free Docker-Hub account https://hub.docker.com/ #After opening the account, back…

Excerpt (1197 of 6063 characters). Read the whole post on the forum ↗

← Back to Discussions