Skip to content

Commit 45f6970

Browse files
committed
Update Blog “open-sourcing-workshops-on-demand-part2-deploying-the-backend”
1 parent 248d506 commit 45f6970

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

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

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,7 @@ SCRIPTPRIVDIR: "{{ WODPRIVDIR }}/scripts"
169169
ANSIBLEPRIVDIR: "{{ WODPRIVDIR }}/ansible"
170170
```
171171

172-
* `wod-backend` file
173-
174-
````
175-
* `wod-backend` file
172+
* `wod-backend` file
176173

177174
```shellsession
178175
vi wod-backend
@@ -228,7 +225,8 @@ MLPORT2-WKSHP-ML101: 18031
228225
DATAVISUPORT1-WKSHP-DataVisu101: 22101
229226
DATAVISUPORT2-WKSHP-DataVisu101: 22131
230227
```
231-
* `wod-system` file
228+
229+
* `wod-system` file
232230

233231
```shellsession
234232
vi wod-system
@@ -315,27 +313,20 @@ install$ sudo ./install.sh -t backend -g staging -b jup.example.net -f notebooks
315313
* Installs minimal required (`ansible, git, jq, openssh server, npm`)
316314
* Creates an admin user as defined upper (default is `wodadmin`) with sudo rights
317315
* Calls the `install-system-common.sh` script that performs the following tasks:
318-
319316
* Cleanup
320-
321317
* Github repos cloning (leveraging install.repo file) : public Backend and public Private repos
322-
323318
* Create ssh keys for wodadmin
324-
325319
* Creates GROUPNAME variables
326-
327320
* Creates Ansible inventory files
328321
329322
* Calls the `install_system.sh` script with the type (backend, frontend, etc..) that performs the following tasks:
330-
331323
* Install the necessary stack based on selected type
332324
* Create a `wod.sh` script in `wod-backend` directory to be used by all other scripts
333325
* Source the `wod.sh` file
334326
* Setup Ansible-galaxies (`community.general` and `posix`)
335327
* Setup Ansible and call the playbook `install_<type>.yml` followed by the `ansible\_check\_<type>.yml`
336328
337329
At the end of the installation process:
338-
339330
* you will have a JupyterHub server running on port 8000
340331
* You will get a new `wodadmin` user (Default admin)
341332
* You will get a set of 20 students (Default value)
@@ -368,25 +359,21 @@ install$ cd $HOME/wod-private/ansible/group_vars
368359
* Commit and push changes to your repo.
369360
* 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).
370361
371-
```
362+
372363
* Define the WODPRIVREPO and WODPRIVBRANCH variables as follows:
373364
374365
* WODPRIVBRANCH="main"
375-
376-
* WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"
377-
```
366+
* WODPRIVREPO="[email protected]:Account/Private-Repo.git wod-private"
378367
379368
**Note:** When using a token
380369
381370
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:
382371
383372
* Edit the `install.priv` file located in `install` directory of WoD-backend:
384373
385-
```
386374
* Create line before variable declaration: ``token=`cat $EXEPATH/token` ``
387375
388376
* Use the token in the url WODPRIVREPO="git clone https://user:[email protected]/Account/wod-private.git wod-private"
389-
```
390377
391378
You are now ready to perform the installation again to support a private repository.
392379

0 commit comments

Comments
 (0)