You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/open-sourcing-workshops-on-demand-part2-deploying-the-backend.md
+21-27Lines changed: 21 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ In the first [article](https://developer.hpe.com/blog/willing-to-build-up-your-o
12
12
13
13
The overall infrastructure can run on physical servers or VMs. We usually designate one server for the frontend and a second server for the backend. You could also decide to separate every single component of each side.
14
14
15
-

15
+

16
16
17
17
## How to deploy your own backend...
18
18
@@ -60,7 +60,6 @@ It provides:
60
60
* A fail2ban service
61
61
* An Admin user to manage everything
62
62
* A set of scripts to handle different tasks such as:
63
-
64
63
* Notebooks deployment
65
64
* Jupyterhub compliancy
66
65
* Users compliancy
@@ -87,16 +86,15 @@ We are currently using an HPE ProLiant DL360 Gen10 server on our different produ
87
86
88
87
When done with OS installation and preparation
89
88
90
-
* From the WoD-backend server (aka JupyterHub server), as the install user, you will need to clone the repo first.
89
+
* From the WoD-backend server (aka JupyterHub server), as the install user, you will need to clone the repo first.
* Creates an admin user as defined upper (default is `wodadmin`) with sudo rights
280
-
* Calls the `install-system-common.sh` script that performs the following tasks:
281
-
282
-
* Cleanup
283
-
* Github repos cloning (leveraging install.repo file) : public Backend and public Private repos
284
-
* Create ssh keys for wodadmin
285
-
* Creates GROUPNAME variables
286
-
* Creates Ansible inventory files
278
+
* Calls the `install-system-common.sh` script that performs the following tasks:
279
+
* Cleanup
280
+
* Github repos cloning (leveraging install.repo file) : public Backend and public Private repos
281
+
* Create ssh keys for wodadmin
282
+
* Creates GROUPNAME variables
283
+
* Creates Ansible inventory files
287
284
* Calls the `install_system.sh` script with the type (backend, frontend, etc..) that performs the following tasks:
288
-
289
-
* Install the necessary stack based on selected type
290
-
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
291
-
* Source the `wod.sh` file
292
-
* Setup Ansible-galaxies (`community.general` and `posix`)
293
-
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
285
+
* Install the necessary stack based on selected type
286
+
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
287
+
* Source the `wod.sh` file
288
+
* Setup Ansible-galaxies (`community.general` and `posix`)
289
+
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
294
290
295
291
At the end of the installation process:
296
292
297
-
* you will have a JupyterHub server running on port 8000
298
-
* You will get a new `wodadmin` user (Default admin)
299
-
* You will get a set of 20 students (Default value)
293
+
* you will have a JupyterHub server running on port 8000
294
+
* You will get a new `wodadmin` user (Default admin)
295
+
* You will get a set of 20 students (Default value)
300
296
301
297
All playbooks are self-documented. Please check for details.
302
298
@@ -320,18 +316,16 @@ The principle remains similar, with a few differences explained below.
320
316
* Commit and push changes to your repo.
321
317
* 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).
322
318
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
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:
330
325
331
326
* Edit the `install.priv` file located in `install` directory of WoD-backend:
332
-
333
-
* Create line before variable declaration: ``token=`cat $EXEPATH/token` ``
334
-
* Use the token in the url WODPRIVREPO="git clone https://user:[email protected]/Account/wod-private.git wod-private"
327
+
* Create line before variable declaration: ``token=`cat $EXEPATH/token` ``
328
+
* Use the token in the url WODPRIVREPO="git clone https://user:[email protected]/Account/wod-private.git wod-private"
335
329
336
330
You are now ready to perform the installation again to support a private repository.
0 commit comments