10000 GitHub - underdarkskies/ravencore-deb: Debian packaging for ravencore
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

underdarkskies/ravencore-deb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Ravencore-deb

Packaging system to deploy Ravencoin Block Explorer

The current configuration of this repository creates deb packages suited to run on ubuntu, behind Cloudflare(snakeoil ssl only)

To customize the domain, edit line 5 of ravencore-deb/rvn/ravencore/nginx-ravencore

server_name ravencoin.network;

If running in a test VM be sure to make a hosts entry on whatever device you are accessing the site from to convert between the domain name and the ip of the test VM. For production usage be sure to customize all passwords for ravencoin

Using the build environment

sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce git make
git clone https://github.com/underdarkskies/ravencore-deb
cd ravencore-deb/rvn
sudo make

DEB file will appear in ravencore-deb/rvn/

Deploying a Ravencore Deb file

Download your deb to the home directory of your ubuntu instance

sudo apt-get update
sudo apt-get install -qy apt-transport-https curl python-minimal
curl https://deb.nodesource.com/node_10.x/pool/main/n/nodejs/nodejs_10.5.0-1nodesource1_amd64.deb > node.deb
sudo dpkg -i node.deb
rm node.deb
sudo dpkg -i ravencore_<version>_amd64.deb #change <version>. This will error, the next commands resolve those errors.
sudo apt-get update
sudo apt-get -f install -y

at this point the ravencore service and nginx will automatically launch and run even after reboot

Optional: add a redirect from www.example.com to example.com

$sudo nano /etc/nginx/conf.d/redirect.conf and edit the file with:

server {
    server_name www.example.com;
    return 301 $scheme://example.com$request_uri;
}

Helpful commands to manage your Deb based install:

$sudo service ravencore start
$sudo service ravencore stop
$sudo service ravencore restart
$sudo service ravencore status
$journalctl -u ravencore

$sudo service nginx start
$sudo service nginx stop
$sudo service nginx restart
$sudo service nginx status
journalctl -u nginx

Undeploying a Ravencore Deb file

$sudo apt-get install -y aptitude
$sudo aptitude purge ravencore

Updating Ravencore version

  • Change version in git checkout in rvn/ravencore/Makefile
  • Create a new entry in rvn/ravencore/debian/changelog by using 'dch -i'
  • Then build as usual

About

Debian packaging for ravencore

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 35.6%
  • Shell 32.9%
  • Makefile 16.8%
  • Dockerfile 14.7%
0