Commit 34086442 authored by Wallet Guy's avatar Wallet Guy
Browse files

remove unused file

parent a6822f3e
---------------------------------
Storage Locations
---------------------------------
MyDojo stores its code and data in 2 different locations:
**MyDojo application code**
source code of MyDojo + Dojo Shell Script + Configuration files
**MyDojo and Docker data**
persistent data required for a functional MyDojo (blockchain data,
Dojo database, logs, Docker images)
By default, this part will be stored under ``/var/lib/docker`` but the
directory can be modified (e.g.: all data stored on an dedicated disk).
See Step 2b.
---------------------------------
---------------------------------
Prepare Host System
---------------------------------
First, we must prepare our host system for MyDojo by installing
required operating system dependencies and configuring our linux
system with privacy and security in mind.
Install OS dependencies
---------------------------------
::
> sudo apt-get update
> sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common unzip
---------------------------------
Install Docker & Docker-Compose
---------------------------------
.. note::
For an installation of Docker and Docker Compose with a different
Linux distribution, please refer to the official `Docker`_ and
`Docker Compose`_ documentations.
.. _`Docker`: https://docs.docker.com/install/
.. _`Docker Compose`: https://docs.docker.com/compose/install/
If Docker is already installed on the host machine remove old Docker versions
installed on the computer
::
> sudo apt-get remove docker docker-engine docker.io containerd runc
Download Docker's official PGP key
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
> sudo apt-key fingerprint 0EBFCD88
Verify that you now have the key with the fingerprint
``9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88``.
.. image:: ../dojo-assets/install_0.png
:width: 650
:align: center
Install Docker
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
> 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 docker-ce docker-ce-cli containerd.io
Test the installation of Docker ::
> sudo docker --version
This command should return the version of Docker if
installation was successful.
.. image:: ../dojo-assets/install_2.png
:width: 650
:align: center
Install Docker Compose
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
> sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
> sudo chmod +x /usr/local/bin/docker-compose
Test the installation of Docker ::
> sudo docker-compose --version
This command should return the version of Docker Compose if
installation was successful.
.. image:: ../dojo-assets/install_3.png
:width: 650
:align: center
---------------------------------
Create a user account for MyDojo
---------------------------------
Creating a segregated user account for MyDojo is a good idea for
security reasons.
Create a dojo user
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
> sudo useradd -s /bin/bash -d /home/dojo -m -G sudo dojo
> sudo passwd dojo
Enter and confirm the password for the ``dojo`` user.
Add the user to the docker group
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
> sudo usermod -aG docker dojo
Restart Host System
::
> sudo shutdown -r now
Log back into the Host System with the ``dojo`` user and test the
Docker installation
::
> docker run hello-world
This command should display a hello message if Docker can be run
with the ``dojo`` user.
.. image:: ../dojo-assets/install_1.png
:width: 650
:align: center
---------------------------------
---------------------------------
Downloading MyDojo
---------------------------------
Now that the Host System is now prepared, we will download the latest
MyDojo source code and prepare our Host System further before proceeding
with install.
Initialize the dojo app directory
---------------------------------
We will create a directory for housing our MyDojo files. In this guide
we are naming this directory ``dojo-app`` and it will be located in the
root directory of the ``dojo`` user.
Create the working directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
> mkdir ~/dojo-app
Download latest MyDojo files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Download and unpack the source archive for the latest version of
MyDojo and copy these files to the newly created ``dojo-app`` directory.
::
> wget https://github.com/Samourai-Wallet/samourai-dojo/archive/master.zip
> unzip master.zip -d .
> cp -a samourai-dojo-master/. dojo-app/
Delete the source archive.
::
> rm -rf samourai-dojo-master
> rm master.zip
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment