Skip to content

Commit 40fbc66

Browse files
committed
Update Blog “open-sourcing-workshops-on-demand-part2-deploying-the-backend”
1 parent 0585d58 commit 40fbc66

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

content/blog/open-sourcing-workshops-on-demand-part2-deploying-the-backend.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ It provides:
6060
* A fail2ban service
6161
* An Admin user to manage everything
6262
* A set of scripts to handle different tasks such as:
63-
* Notebooks deployment
64-
* Jupyterhub compliancy
65-
* Users compliancy
66-
* Security Management
63+
64+
* Notebooks deployment
65+
* Jupyterhub compliancy
66+
* Users compliancy
67+
* Security Management
6768

6869
#### Backend server preparation:
6970

@@ -75,18 +76,19 @@ In order to setup the backend server, you will need:
7576

7677
* A fresh OS install on physical / virtualized server running Ubuntu 20.04 or Centos 7.9 leveraging any deployment mechanism of your choice.(e.g. iLO, vagrant, etc.). You may even use this vagrant file to automatically generate a complete setup leveraging vagrant, libvirt and QEMU/KVM.
7778
* A Linux account with sudo priviledges on your Linux distro. Name it `install`
78-
79+
7980
**Note**: In order to support 100 concurrent users, you need:
80-
* 2 cpus or more machine
81-
* 128 GB of RAM
82-
* 500 GB of storage
83-
We are currently using an HPE ProLiant DL360 Gen10 server on our different production sites.
81+
82+
* 2 cpus or more machine
83+
* 128 GB of RAM
84+
* 500 GB of storage
85+
We are currently using an HPE ProLiant DL360 Gen10 server on our different production sites.
8486

8587
When done with OS installation and preparation
8688

8789
* From the WoD-backend server (aka JupyterHub server), as the install user, you will need to clone the repo first.
8890

89-
```
91+
```shellsession
9092
install$ git clone https://github.com/Workshops-on-Demand/wod-backend.git
9193
install$ cd wod-backend/
9294
```
@@ -167,7 +169,7 @@ SCRIPTPRIVDIR: "{{ WODPRIVDIR }}/scripts"
167169
ANSIBLEPRIVDIR: "{{ WODPRIVDIR }}/ansible"
168170
```
169171

170-
* `wod-backend` file
172+
* `wod-backend` file
171173

172174
```shellsession
173175
vi wod-backend
@@ -224,7 +226,7 @@ DATAVISUPORT1-WKSHP-DataVisu101: 22101
224226
DATAVISUPORT2-WKSHP-DataVisu101: 22131
225227
```
226228

227-
* `wod-system` file
229+
* `wod-system` file
228230

229231
```shellsession
230232
vi wod-system
@@ -260,8 +262,6 @@ WODFEAPIPWD: MotDePasseCompliquéAussi125!!!##
260262

261263
See the example below for a backend server.
262264

263-
264-
265265
### Backend installation process:
266266

267267
[](https://github.com/Workshops-on-Demand/wod-backend/blob/main/INSTALL.md#for-private-based-workshops-on-demand-private-backend--private-workshops-or-if-you-need-to-modify-defaults)Once you are done with the files, you can can proceed with the installation itself. The installation is based on a common install script [install.sh ](https://github.com/Workshops-on-Demand/wod-backend/blob/main/install/install.sh)that allows the deployment of the different parts of the solution. It can be called as follows:
@@ -283,13 +283,15 @@ See the example below for a backend server.
283283
* Creates GROUPNAME variables
284284
* Creates Ansible inventory files
285285
* Calls the `install_system.sh` script with the type (backend, frontend, etc..) that performs the following tasks:
286+
286287
* Install the necessary stack based on selected type
287288
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
288289
* Source the `wod.sh` file
289290
* Setup Ansible-galaxies (`community.general` and `posix`)
290291
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
291292

292293
At the end of the installation process:
294+
293295
* you will have a JupyterHub server running on port 8000
294296
* You will get a new `wodadmin` user (Default admin)
295297
* You will get a set of 20 students (Default value)
@@ -317,6 +319,7 @@ The principle remains similar, with a few differences explained below.
317319
* Create an `install.priv` file located in `install` directory when using a private repo (consider looking at [install.repo](https://github.com/Workshops-on-Demand/wod-backend/blob/main/install/install.repo) file for a better understanding of the variables).
318320

319321
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
322+
320323
* WODPRIVBRANCH="main"
321324
* WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"
322325

@@ -325,6 +328,7 @@ The principle remains similar, with a few differences explained below.
325328
Please refer to the following [url](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) to generate a `token` file in `install` directory of WoD-backend:
326329

327330
* Edit the `install.priv` file located in `install` directory of WoD-backend:
331+
328332
* Create line before variable declaration: ``token=`cat $EXEPATH/token` ``
329333
* Use the token in the url WODPRIVREPO="git clone https://user:[email protected]/Account/wod-private.git wod-private"
330334

0 commit comments

Comments
 (0)