Skip to content

Commit 1fad30b

Browse files
committed
Update Blog “open-sourcing-workshops-on-demand-part2-deploying-the-backend”
1 parent 6952b8f commit 1fad30b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ In order to setup the backend server, you will need:
7979

8080
**Note**: In order to support 100 concurrent users, you need:
8181

82-
* 2 cpus or more machine
83-
* 128 GB of RAM
84-
* 500 GB of storage
82+
* 2 cpus or more machine
83+
* 128 GB of RAM
84+
* 500 GB of storage
8585

8686
We are currently using an HPE ProLiant DL360 Gen10 server on our different production sites.
8787

@@ -95,9 +95,10 @@ install$ cd wod-backend/
9595
```
9696

9797
* Examine default installation parameters and adapt when necessary accordingly. Files are self-documented.
98-
* Look at the following files within ansible/group_vars directory.
9998

100-
* `all.yml` file
99+
Look at the following files within ansible/group_vars directory.
100+
101+
* `all.yml` file
101102

102103
```shellsession
103104
vi all.yml
@@ -170,7 +171,7 @@ SCRIPTPRIVDIR: "{{ WODPRIVDIR }}/scripts"
170171
ANSIBLEPRIVDIR: "{{ WODPRIVDIR }}/ansible"
171172
```
172173

173-
* `wod-backend` file
174+
* `wod-backend` file
174175

175176
```shellsession
176177
vi wod-backend
@@ -227,7 +228,7 @@ DATAVISUPORT1-WKSHP-DataVisu101: 22101
227228
DATAVISUPORT2-WKSHP-DataVisu101: 22131
228229
```
229230

230-
* `wod-system` file
231+
* `wod-system` file
231232

232233
```shellsession
233234
vi wod-system
@@ -261,7 +262,7 @@ WODFEAPIUSER: moderator
261262
WODFEAPIPWD: MotDePasseCompliquéAussi125!!!##
262263
```
263264

264-
See the example below for a backend server.
265+
See the example below for a backend server.
265266

266267
### Backend installation process:
267268

@@ -277,19 +278,22 @@ See the example below for a backend server.
277278
* Installs minimal required (`ansible, git, jq, openssh server, npm`)
278279
* Creates an admin user as defined upper (default is `wodadmin`) with sudo rights
279280
* Calls the `install-system-common.sh` script that performs the following tasks:
281+
280282
* Cleanup
281283
* Github repos cloning (leveraging install.repo file) : public Backend and public Private repos
282284
* Create ssh keys for wodadmin
283285
* Creates GROUPNAME variables
284286
* Creates Ansible inventory files
285287
* Calls the `install_system.sh` script with the type (backend, frontend, etc..) that performs the following tasks:
288+
286289
* Install the necessary stack based on selected type
287290
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
288291
* Source the `wod.sh` file
289292
* Setup Ansible-galaxies (`community.general` and `posix`)
290293
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
291294

292295
At the end of the installation process:
296+
293297
* you will have a JupyterHub server running on port 8000
294298
* You will get a new `wodadmin` user (Default admin)
295299
* You will get a set of 20 students (Default value)
@@ -317,14 +321,15 @@ The principle remains similar, with a few differences explained below.
317321
* 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).
318322
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
319323

320-
* `WODPRIVBRANCH="main" `
324+
* `WODPRIVBRANCH="main"`
321325
* `WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"`
322326

323327
**Note:** When using a token
324328

325329
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:
326330

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

0 commit comments

Comments
 (0)