Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Copy imported SVG files #14

Merged
merged 3 commits into from
Dec 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ category: "rigoblock-monorepo"
---

# API

## Building the package

Start Ganache
Expand Down
2 changes: 1 addition & 1 deletion content/contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ Here is a demo of how the script works:

## Writing Tests

Read the [testing documentation.](docs/TESTING)
Read the [testing documentation.](docs/testing)
4 changes: 2 additions & 2 deletions content/dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ You can also use [`jest.fn()` and `expect(fn).toBeCalled()`](https://facebook.gi

We are using [redux-persist](https://github.com/rt2zz/redux-persist) and [localforage](https://github.com/localForage/localForage) libraries to manage redux store persistence on IndexedDB.

[Info on migrations](docs/MIGRATIONS)
[Info on migrations](docs/migrations)

## Feature Tests

Please read the [documentation](docs/FEATURE_TESTS) for testing the DApp with CodeceptJS.
Please read the [documentation](docs/feature_tests) for testing the DApp with CodeceptJS.
2 changes: 1 addition & 1 deletion content/docs/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: "rigoblock-monorepo"

# Developing new contracts

Create a new directory into `solidity-contracts` and name it accordinly.
Create a new directory into `solidity-contracts` and name it accordingly.

Edit `constants/index.js` and add the contract name to `CONTRACT_NAMES` array.

Expand Down
32 changes: 8 additions & 24 deletions content/docs/services/kvm_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ category: "kb"

Available IPs:

185.31.66.104
185.31.66.105
185.31.66.104 - k8s-01-master.endpoint.network - k8s master node
185.31.66.105 - k8s-01-node01.endpoint.network - k8s node
185.31.66.106
185.31.66.107
185.31.66.108
Expand Down Expand Up @@ -56,13 +56,11 @@ Installing some useful packages
yum install e4fsprogs -y
ln -s /sbin/resize2fs /sbin/resize4fs


Disable selinux

setenforce 0
sed -i --follow-symlinks 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux


Configuring FTP:

openssl req -x509 -nodes -days 3650 -newkey rsa:1024 \
Expand Down Expand Up @@ -121,7 +119,7 @@ Check the following files and add/modify as necessary:

Documentation:

http://linux.dell.com/repo/hardware/latest/
http://linux.dell.com/repo/hardware/latest/
https://linux.dell.com/repo/hardware/dsu/

wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
Expand All @@ -145,7 +143,7 @@ https://linux.dell.com/repo/hardware/dsu/
### Installation

Documentation:
https://wiki.archlinux.org/index.php/Bcache#Setting_up_a_bcache_device_on_an_existing_system https://fedoraproject.org/wiki/QA:Testcase_bcache-tools_home_on_bcache_(LVM)
https://wiki.archlinux.org/index.php/Bcache#Setting_up_a_bcache_device_on_an_existing_system https://fedoraproject.org/wiki/QA:Testcase_bcache-tools_home_on_bcache_(LVM)

Add a LVM partition in /dev/sda4 with fdisk

Expand Down Expand Up @@ -183,7 +181,7 @@ Creating backing and caching device:
make-bcache -C /dev/sdb --wipe-bcache

After your cache device and backing device are registered, the backing device
must be attached to your cache set to enable caching.
must be attached to your cache set to enable caching.
Attaching a backing
device to a cache set is done thusly, with the UUID of the cache set in
/sys/fs/bcache:
Expand All @@ -193,7 +191,7 @@ device to a cache set is done thusly, with the UUID of the cache set in
echo writeback > /sys/block/bcache0/bcache/cache_mode
cat /sys/block/bcache0/bcache/state

### Removing bcache
### Removing bcache

cd /sys/fs/bcache/<UUID>
echo 1 > stop
Expand All @@ -219,16 +217,15 @@ Installation:
systemctl disable firewalld
systemctl stop firewalld


Now we'll bridge your primary network interface. This bridge will also be used for our virtual machines. In this example we'll create a bridge named "bridge0". We'll then bridge interface "eth0" to "bridge0" followed by a server reboot.

Copy ifcfg-eth0 to ifcfg-bridge0:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-bridge0

Edit /etc/sysconfig/network/network-scripts/ifcfg-bridge0.

Change DEVICE=eth0 to DEVICE=bridge0
Change DEVICE=eth0 to DEVICE=bridge0
Change TYPE=Ethernet to TYPE="Bridge"

DEVICE=bridge0
Expand Down Expand Up @@ -315,16 +312,3 @@ Add:
Finally:

Go to https://YOUR_KVM_SERVER_DOMAIN_NAME:8001 in your web browswer and login using kimchi or root credentials.













50 changes: 46 additions & 4 deletions content/docs/services/rancher.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ As root:
apt-get update
apt-get install docker-ce=17.03.2~ce-0~ubuntu-xenial -y


## To Install Rancher Using a Let’s Encrypt Certificate:

Crete a directory for persistent data:

mkdir -p /mnt/rancher-node
mkdir -p /mnt/rancher-agent

### Install node
### Install node

Run the following commands from your Linux host:

Expand All @@ -45,7 +44,7 @@ Run the following commands from your Linux host:
-p 80:80 -p 443:443 \
-v /mnt/rancher-node:/var/lib/rancher \
rancher/rancher:latest \
--acme-domain rb-rancher.endpoint.network
--acme-domain rb-rancher.endpoint.network

### Install agent

Expand All @@ -66,4 +65,47 @@ To change the host ports mapping, replace the following part `-p 80:80 -p 443:44
# Set-up

Browse to `https://rb-rancher.endpoint.network/`


# Upgrade

https://rancher.com/docs/rancher/v2.x/en/upgrades/upgrades/single-node-upgrade/

Stop the container:

docker stop <RANCHER_CONTAINER_NAME>

eg:
docker stop docker stop peaceful_thompson

Create a backup volume:

docker create --volumes-from <RANCHER_CONTAINER_NAME> --name rancher-data rancher/rancher:<RANCHER_CONTAINER_TAG>
docker run --volumes-from rancher-data -v $PWD:/backup alpine tar zcvf /backup/rancher-data-backup-<RANCHER_VERSION>-<DATE>.tar.gz /var/lib/rancher

eg:

docker create --volumes-from peaceful_thompson --name rancher-data rancher/rancher:v2.0.6
mkdir /backup
docker run --volumes-from rancher-data -v /backup:/backup alpine tar zcvf /backup/rancher-data-backup-v2.0.6-5-11-18.tar.gz /var/lib/rancher

Pull the lastes image:

docker pull rancher/rancher:latest

Run the image:

docker run -d --name rancher-<RANCHER_VERSION> --volumes-from rancher-data --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest --acme-domain rb-rancher.endpoint.network

eg:

docker run -d --name rancher-2.1.1 --volumes-from rancher-data --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest --acme-domain rb-rancher.endpoint.network

## Roll-back

docker run --volumes-from rancher-data -v /backup:/backup alpine sh -c "rm /var/lib/rancher/\* -rf && tar zxvf /backup/rancher-data-backup-v2.0.6-5-11-18.tar.gz"

docker run -d --volumes-from rancher-data --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:<PRIOR_RANCHER_VERSION>

eg:

docker run -d --volumes-from rancher-data --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:v2.0.6 --acme-domain rb-rancher.endpoint.network
4 changes: 2 additions & 2 deletions content/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ RigoBlock project dev documentation.

## Protocol

- [Mainnet 0.4.25 Migration](docs/protocol/mainnet-0-4-25-migration)
- [Ropsten 0.4.25 Migration](docs/protocol/ropsten-0-4-25-migration)
- [Mainnet 0.4.25 Migration](docs/protocol/mainnet-0-4-25_migration)
- [Ropsten 0.4.25 Migration](docs/protocol/ropsten-0-4-25_migration)

## DApp related documentation

Expand Down
2 changes: 2 additions & 0 deletions content/rigoblockStats.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category: "rigoblock-monorepo"
---

# Rigoblock Stats
![](./rigoblockStats.svg)
![](rigoblockStats.svg)

## Services

Expand Down
20 changes: 10 additions & 10 deletions content/table_of_contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"entry": "./contracts.md",
"children": [
{
"title": "TESTING",
"entry": "./docs/TESTING.md"
"title": "testing",
"entry": "./docs/testing.md"
}
]
},
Expand All @@ -23,12 +23,12 @@
"entry": "./dapp.md",
"children": [
{
"title": "MIGRATIONS",
"entry": "./docs/MIGRATIONS.md"
"title": "migrations",
"entry": "./docs/migrations.md"
},
{
"title": "FEATURE_TESTS",
"entry": "./docs/FEATURE_TESTS.md"
"title": "feature_tests",
"entry": "./docs/feature_tests.md"
}
]
},
Expand Down Expand Up @@ -126,12 +126,12 @@
"entry": "./docs/services/staging_node_configuration.md"
},
{
"title": "mainnet-0-4-25-migration",
"entry": "./docs/protocol/mainnet-0-4-25-migration.md"
"title": "mainnet-0-4-25_migration",
"entry": "./docs/protocol/mainnet-0-4-25_migration.md"
},
{
"title": "ropsten-0-4-25-migration",
"entry": "./docs/protocol/ropsten-0-4-25-migration.md"
"title": "ropsten-0-4-25_migration",
"entry": "./docs/protocol/ropsten-0-4-25_migration.md"
},
{
"title": "data_flow",
Expand Down
6 changes: 6 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ module.exports = {
maxWidth: 690
}
},
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
ignoreFileExtensions: ['md']
}
},
{
resolve: 'gatsby-remark-responsive-iframe'
},
Expand Down
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.onCreateNode = ({ node, boundActionCreators, getNode }) => {
const slug = createFilePath({
node,
getNode,
basePath: 'docs',
basePath: 'content',
trailingSlash: false
})
createNodeField({ node, name: 'slug', value: slug })
Expand Down
Loading