User Tools

Site Tools


medal-data:system-setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
medal-data:system-setup [2022/01/17 14:57] arnaudpolettomedal-data:system-setup [2022/01/19 09:39] (current) – removed arnaudpoletto
Line 1: Line 1:
-====== Setup of medAL-data System ====== 
- 
-===== Purpose and scope ===== 
- 
-In this document, you will learn how to perform the basic setup of the MainData System.  
- 
- 
- 
- 
-===== Requirements ===== 
- 
-    * Server Linux =8gb ram 
-    * Storage= 300 gb 
-    * Operating System = ubuntu 18.04 
- 
- 
- 
- 
-===== Install Docker ===== 
- 
-  - To update ubuntu server, type: <code>sudo apt update</code> 
-  - Install a few prerequisite packages which let apt use packages over HTTPS by typing: <code>sudo apt install apt-transport-https ca-certificates curl software-properties-common</code> 
-  - Add the GPG key for the official Docker repository to your system by typing: <code>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -</code> 
-  - Add the Docker repository to APT sources: <code>sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"</code> 
-  - Update the package database with the Docker packages from the newly added repository: <code>sudo apt update</code> 
-  - Make sure you are about to install from the Docker repository instead of the default Ubuntu repository: <code>apt-cache policy docker-ce</code> You will see an output like the following: <code> 
-docker-ce: 
-  Installed: (none) 
-  Candidate: <version-number> 
-  Version table: 
-    <version-number> 500 
-      500 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages 
-</code> 
-  - Finally, install Docker: <code>sudo apt install docker-ce</code> 
-  - Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running: <code>sudo systemctl status docker</code> 
-For more information, you can check on this site (https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04) 
- 
- 
- 
- 
-===== Install Nginx ===== 
- 
-      - Install nginx: <code>sudo apt install nginx</code> 
-      - Enable nginx in the firewall by typing: <code>sudo ufw allow 'Nginx Full'</code> 
- 
- 
- 
- 
-===== Install Dokku ===== 
- 
-      - Install dokku <code>wget https://raw.githubusercontent.com/dokku/dokku/v0.21.4/bootstrap.sh; 
-sudo DOKKU_TAG=v0.21.4 bash bootstrap.sh</code> 
-      - Once the installation is complete, you can open a browser to setup your SSH key and virtualhost settings.            
-      - Open your browser of choice and navigate to the host's IP address - or the domain you assigned to that IP previously - and configure Dokku via the web admin. 
- 
- 
- 
- 
-===== Domain Setup ===== 
- 
-  - On Your Server Terminal, set domain: <code>sudo domains:set Main-Data {{domain}}</code> where domain is the domain for medAL-data. 
- 
- 
- 
- 
-===== Setting up letsencrypt with Dokku ===== 
-  - On your Server Terminal, install letsencrypt plugin with: <code>sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git</code> 
-  - Install certificate with <code>sudo dokku letsencrypt medal-data</code> 
-  - Open your browser and test the system. 
- 
- 
- 
- 
-===== Creating an Admin ===== 
- 
-  - On your server terminal, run: <code>sudo dokku run Main-Data php artisan tinker</code> 
-  - Type <code>$user=new User;</code> for a new user object 
-  - Type <code>$user->name=”{{user_name}}”;</code> for the ADMIN name 
-  - Type <code>$user->email=”{{user_email}}”;</code> for the ADMIN email 
-  - Type <code>$user->password=Hash::make(“{{user_password}}”);</code> for the ADMIN password 
-  - Type <code>$user->syncRoles(“ADMIN”);</code> To make this user an admin 
-  - Try to access the web and log in with this user in the system. 
  
medal-data/system-setup.1642427828.txt.gz · Last modified: 2022/01/17 14:57 by arnaudpoletto