Skip to content

Asherda/Verus-Builders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Verus-Builders

Docker build environments for VerusCoin

This is where the Dockerfile definition is kept, with auto-builds onto asherda on Docker hub. Note that autobuilds only occur from master, dev and static branches.

The container makes it easy to build VerusCoin for assorted Linux distributions and windows. Mac is currently not available.

Get the automatically built Docker container definition from Docker hub. You select the operating system by using the appropriate tag when fetching and referencing the container. The following list of operating systems supported also shows you which tag to use to get the correct container.

Supported Operating Systems

  • centos - asherda/verus-builders:verus-centos
  • ubuntu - asherda/verus-builders:verus-ubuntu
  • windows - asherda/verus-builders:verus-windows

Building VerusCoin

You can get things up and running with a docker pull & docker run command. You can leave the -v command out if you're just pushing results back to github, but be aware that without the -v on the docker run command, on exiting the container all of the disk contents are reset and any clones and builds and especially updates you did within the container will be lost.

mkdir ~/centos-builder-docker
docker pull asherda/verus-builders:verus-centos
docker run -v ~/centos-builder-docker:/home -it asherda/verus-builders:verus-centos /bin/bash
[root@168c1a5eb6d7 home]#

We're now in the home directory of the container, which is mapped to centos-builder-docker on the computer's drive. From there you can clone the code and launch a build in the container, since all the tools are already installed.

[root@168c1a5eb6d7 home]# git clone https://gitlab.com/VerusCoin/VerusCoin.git
Cloning into 'VerusCoin'...
remote: Enumerating objects: 112905, done.
remote: Counting objects: 100% (112905/112905), done.
remote: Compressing objects: 100% (27229/27229), done.
remote: Total 112905 (delta 85046), reused 112782 (delta 84958)
Receiving objects: 100% (112905/112905), 85.78 MiB | 10.65 MiB/s, done.
Resolving deltas: 100% (85046/85046), done.
[root@168c1a5eb6d7 home]# cd VerusCoin/
[root@168c1a5eb6d7 VerusCoin]# zcutil/build.sh

It's time consuming and produces piles of output.

Speeding Up the Build

You can add the -j command line option to the ./zcutils/build.sh command to take advantage of multiple threads to speed things up; if you have a 4 core system then use

./zcutil/build.sh -j4

Note that it makes it a little harder to track errors, since they often occur before the other threads finish so you end up having to scroll back through a mess of text to find them.

About

Docker build environments for VerusCoin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published