1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-387: change request with no subject merged in GitBook

This commit is contained in:
bmihai 2023-06-01 13:24:52 +00:00 committed by gitbook-bot
parent d11c9242fc
commit 69c4f80a51
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
8 changed files with 101 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
.gitbook/assets/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -6,6 +6,106 @@ description: >-
# Setup a Server
Now that you know the components of the Ocean Protocol stack and what each does, it's time to learn how to deploy these components in your environment. The deployment of each component starts with setting up a server on which the component will be installed, either on-premise or hosted in a cloud platform. 
## Prerequisites
All Ocean Protocol components (Provider, Aquarius, Subgraph, C2D) are designed to run in Docker containers on a Linux operating system. We rely on Docker Engine and Docker Compose to deploy and run our components, so when you set up your server, select a Linux operating system supported by these two products. Please refer to these links for choosing a compatible operating system:
* [Docker Engine supported platforms](https://docs.docker.com/engine/install/) 
* [Docker Compose supported platforms](https://docs.docker.com/desktop/install/linux-install/)
## Steps
The steps for setting up a server on which to deploy the Ocean components are the following:
1. Install the operating system
2. Install Docker and Docker Compose
### Install the operating system
As mentioned earlier, you can use either an on-premise server or one hosted in the cloud (AWS, Azure, Digitalocean, etc.). To install the operating system on an on-premise server, please refer to the installation documentation of the operating system.
If you choose to use a server hosted in the cloud, you need to create the server using the user interface provided by the cloud platform. Following is an example of how to create a server in Digitalocean. 
#### Example: Creating an Ubuntu Linux server in the Digitalocean cloud
1. Creating account and setting billing
Go to [https://www.digitalocean.com/](https://www.digitalocean.com/) and create an account. Provide the appropriate information for billing and accounting.
2. Create a server
Click on **`Create`** button and choose **`Droplets`** options from dropdown.
<figure><img src="../.gitbook/assets/image (1).png" alt=""><figcaption><p>Select Droplet</p></figcaption></figure>
3. Select a server configuration
Select Ubuntu OS, and choose a plan and a configuration. The required CPU and memory depend on the number of requests the component is expected to serve.
<figure><img src="../.gitbook/assets/image (2).png" alt=""><figcaption><p>Configure the server</p></figcaption></figure>
###
4. Select the region and set the root password
Select the region where you want the component to be hosted and a root password.
<figure><img src="../.gitbook/assets/image (6).png" alt=""><figcaption><p>Select the region and set the root password</p></figcaption></figure>
5. Finish the configuration and create the server
Specify a hostname for the server, specify the project to which you assign the server and then click on `Create Droplet.`&#x20;
<figure><img src="../.gitbook/assets/image (5).png" alt=""><figcaption><p>Finalize and create the server</p></figcaption></figure>
6. Access the server's console
After the server is ready, select the `Access console` option from the dropdown list.
<figure><img src="../.gitbook/assets/image.png" alt=""><figcaption><p>Access the server's console</p></figcaption></figure>
### Install Docker and Docker Compose
From a terminal window, run the following commands to install Docker and Docker Compose.
```
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Now install docker-compose
sudo apt-get update
sudo apt-get install docker-compose-plugin
```
Now that the server is prepared and the prerequisites installed, we can proceed to deploying the Ocean's components.
<<<< old documentation>>>
##
## **Using hosting services**
Ocean Protocol's components can be hosted on any infrastructure providers like AWS, Azure, Heroku, Digitalocean, and many others. The tutorial here explains how to create a server using Digitalocean and installing docker which will be required to host Ocean Protocol's components. Apart from steps for create a server, the remaining part of the tutorial will be same for all hosting providers.
@ -22,7 +122,7 @@ Click on **`Create`** button and choose **`Droplets`** options from dropdown.
#### Configure droplet
Select Ubuntu OS and choose a plan. The required CPU, Memory depends on the number of requests Aquarius is expected to serve.
Select Ubuntu OS and choose a plan. The required CPU and Memory depends on the number of requests Aquarius is expected to serve.
![Configure droplet](../.gitbook/assets/server-setup/server-setup2.png)