Skip to content

Commit 0e57f42

Browse files
authored
Merge pull request #22 from IBM/workshop-doc-updates
workshop doc updates
2 parents 92fb6bc + aa0bd87 commit 0e57f42

File tree

6 files changed

+60
-57
lines changed

6 files changed

+60
-57
lines changed

docs/workshop/01_admin.md

+31-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11

2-
## One-Time (Administrator) Preparation
2+
## Review Administrator Preparation
33

44
These set-up steps have already been run for you. They are documented here for your awareness and education and will be useful when you want to set up Merlin in your own environment.
55

6-
After your Infrastructure has been installed/configured, but before you can actually start using Merlin:
7-
8-
1. Configure git for Source Configuration Management
9-
2. (If needed) migrate source from physical files -> IFS -> git repo
10-
3. IBM i Integration in Merlin
11-
4. Create Application definition - source and object libraries
6+
1. Setup git
7+
1. Configure git repository for Source Configuration Management
8+
2. Load ARCAD-EXAMPLE source into git repository (in general, if necessary migrate source from physical files -> IFS -> git repository)
9+
3. Generate SSH key pair for use from Merlin IDE, git repository, and IBM i userid
10+
4. Configure webhook for Arcad builder
11+
2. Create ide and cicd projects in Merlin
12+
3. Install IDE tool into ide project, install CICD tool into cicd project
13+
4. Create Merlin users, e.g. `lparXuserY`
14+
5. Add Inventory for each IBM i hostname
15+
6. Add Merlin users and inventory into group
16+
7. Add group to project
17+
8. For each user, create credentials with IBM i userid and password, create template using credential and inventory
18+
9. Run IBM i configuration for Merlin
19+
10. In CICD tool:
20+
1. initialize internal Jenkins server
21+
2. add users
22+
3. add jenkins credential for IBM i user id to access ARCAD build server,
23+
4. enable ARCAD integration for jenkins server
24+
<!--4. Create Application definition - source and object libraries-->
1225

1326
### Configuring of Source Control Management
1427
Modern application development presupposes good source control that can enable best practices.
15-
Git is the most popular source code which can be used to drived your CI/CD pipeline suing web-hooks that can trigger builds when certain events happen in git. There are many different web interfaces to git that help automate the development process. These include Github, Gitlab and Gitbucket. If this is hosted outside of Merlin than the git hook needs some firewall configuration to access the builders running in Merlin. The sandobx environment is configured with Gitbucket running on the IBM i. This means that no new server is required and everything runs within the same secure network. The source for the demo the repository already contains the sample application source and the git hook is configured. Arcad products clone source from the git repository when doing builds on the IBM i and the user profile launching this needs to have the ssh key set up to access the git repository. This also taken care of the sandbox environmetn.
28+
Git is the most popular source code which can be used to drive your CI/CD pipeline using web-hooks that can trigger builds when certain events happen in git. There are many different web interfaces to git that help automate the development process. These include Github, Gitlab and Gitbucket. If this is hosted outside of Merlin than the web-hook needs some firewall configuration to access the builders running in Merlin. The sandbox environment is configured with Gitbucket running on the IBM i. This means that no new server is required and everything runs within the same secure network. The source for the demo the repository already contains the sample application source and the web-hook is configured. Arcad products clone source from the git repository when doing builds on the IBM i and the user profile launching this needs to have the ssh key set up to access the git repository. This also taken care of the sandbox environment.
1629

17-
### IBM i integration in Merlin
30+
### IBM i configuration for Merlin
1831

1932
<!-- panels:start -->
2033

@@ -23,10 +36,10 @@ Git is the most popular source code which can be used to drived your CI/CD pipel
2336
6 actions on IBM i performed sequentially from Merlin by the Administrator:
2437

2538
1. Enable ansible (_this is the automation framework used for the subsequent steps_)
26-
2. Validate PTF level (_ensures that the IBM i is a the prequisite software level_)
27-
3. Install certificates (_are required to have encrypted HTTPS communications_)
39+
2. Validate PTF level (_ensures that the IBM i is at the prerequisite software level_)
40+
3. Install certificates (_required to have encrypted HTTPS communications_)
2841
4. Enable IBM i Developer (_configures IBM i backend for Merlin_)
29-
5. Enable remote debugger (_configures IBM i backend for the debugger_)
42+
5. Enable debug service (_configures IBM i backend for the debugger_)
3043
6. Enable Arcad (_install Arcad solutions on the target IBM i_)
3144

3245
<!-- div:right-panel -->
@@ -37,16 +50,17 @@ Git is the most popular source code which can be used to drived your CI/CD pipel
3750

3851
---
3952

40-
### Creation of an Arcad Application
41-
53+
<!--### Creation of an Arcad Application
54+
-->
4255
<!-- panels:start -->
4356

4457
<!-- div:left-panel -->
4558

46-
The Arcad application has already been created for you.
59+
<!--The Arcad application has already been created for you.
4760
When doing this for your own application this can easily be done from with the IDE as an action on the IBM i project or alternatively it can be done through Arcad green screen commands.
61+
-->
4862
<!-- div:right-panel -->
4963

50-
![](01/from_merlin.png)
51-
64+
<!--![](01/from_merlin.png)
65+
-->
5266
<!-- panels:end -->

docs/workshop/02_start.md

+12-24
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11

2-
## Preparation: Developer Authentication (SSH)
2+
<!--## Preparation: Developer Authentication (SSH)
33
44
Result: Source files migrated to git
55
66
![](02/repo_a.png)
77
88
![](02/repo_b.png)
9-
9+
-->
1010
## Connection to Merlin & Platform overview
1111

1212
<!-- panels:start -->
1313

1414
<!-- div:left-panel -->
1515

16-
* URL will be provided to you.
17-
* `teamX` / `Passw0rd!` (X from 1 to 12)
16+
* URL to Merlin landing page will be provided to you.
17+
* Merlin userid and password will be provided to you.
1818

1919
<!-- div:right-panel -->
2020

@@ -30,9 +30,7 @@ Result: Source files migrated to git
3030

3131
### Landing page
3232

33-
Accessible services granted by Merlin administrators.
34-
35-
Here, teamX users (group "techxchange") have access to projects "cicd" and "merlin-tools". "cicd" and "merlin-tools" have provisioned services: IBM i CI/CD and and IBM i Developer, respectively.
33+
Here, users have access to projects "cicd" and "ide" which have provisioned services: IBM i CI/CD and IBM i Developer (as configured by Merlin admin).
3634

3735
Isolation can be done by projects, with different authorizations & roles on resources.
3836

@@ -75,7 +73,7 @@ Merlin can provision IBM i VM for a project (dev environment etc). PowerVC / Pow
7573

7674
<!-- div:left-panel -->
7775

78-
**Starting Point**: Merlin admin already created an Inventory entry with your IBM i and authorized you to use it. System name with arcad-example application: MONZA, IP Address is *will be provided to you*.
76+
**Starting Point**: Under **Connections**, Merlin admin already created an Inventory entry with your IBM i hostname and authorized you to use it.
7977

8078
<!-- div:right-panel -->
8179

@@ -89,11 +87,7 @@ Merlin can provision IBM i VM for a project (dev environment etc). PowerVC / Pow
8987

9088
<!-- div:left-panel -->
9189

92-
Go to Credentials > Add new credential > fill in with your IBM i (MONZA) user profile
93-
94-
* Name: `teamX-profile-monza`
95-
* Username: `teamX` (X from 1 to 12)
96-
* Password: `abc123`
90+
Merlin admin already created a Credential entry with your IBM i userid and password.
9791

9892
<!-- div:right-panel -->
9993

@@ -107,39 +101,33 @@ Go to Credentials > Add new credential > fill in with your IBM i (MONZA) user pr
107101

108102
<!-- div:left-panel -->
109103

110-
### Creation of your template
111-
112-
Go to Templates > add new template
113-
114-
* Name: `teamX-template-monza`
115-
* Inventory: ibmi
116-
* Credential: your credential created before
104+
Merlin admin already created a template which associates the defined inventory and credential together. This Merlin template will be used by IBM i Developer so you can interact with your IBM i and services (compiler, debugger, arcad tools, etc.).
117105

118106
<!-- div:right-panel -->
119107

120108
![](02/template.png)
121109

122110
<!-- panels:end -->
123111

124-
> [!TIP]
125-
> This Merlin template will be used by IBM i Developer so you can interact with your IBM i and services (compiler, debugger, arcad tools, etc.)
126-
127112
---
128113

129114
<!-- panels:start -->
130115

131116
<!-- div:left-panel -->
132117

118+
<!--
133119
### Launch IDE
134120
135121
Go to Tools > Deployed Tools
136122
137123
* Project: merlin-tools
138124
139125
Right click on IBM i Developer, Launch the Application (you may have to Open the workspace if it doesn’t automatically)
126+
-->
140127

141128
<!-- div:right-panel -->
142129

130+
<!--
143131
![](02/launch.png)
144-
132+
-->
145133
<!-- panels:end -->

docs/workshop/03_ide.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
## IBM i Developer
21

3-
### Launch IDE
2+
## Launch IBM i Developer IDE
43

54
<!-- panels:start -->
65

76
<!-- div:left-panel -->
87

9-
From `Home>Overview` on the Merlin dashboard, launch the `IBM i Developer` application using the popup menu on the application
8+
From `Home>Overview` on the Merlin dashboard, launch the `IBM i Developer` application
109

1110
<!-- div:right-panel -->
1211

@@ -30,7 +29,7 @@ From `Create Workspace`, create a workspace by selecting `IBM i Developer`
3029

3130
---
3231

33-
### Clone git repository into workspace
32+
## Clone git repository into workspace
3433

3534
<!-- panels:start -->
3635

@@ -110,7 +109,7 @@ The workspace is now populated with the `arcad-example` project from the git rep
110109

111110
---
112111

113-
### Connect project to IBM i
112+
## Connect project to IBM i
114113

115114
<!-- panels:start -->
116115

@@ -443,7 +442,7 @@ You can also push to the git repository by clicking the git status button at the
443442

444443
<!-- div:left-panel -->
445444

446-
### Change source code
445+
## Change source code
447446

448447
- Save modification can be done automatically or manually (`File>Save` or key combination, e.g Ctrl+S (depends on preferences)).
449448
- After the save, a badge appears on the Git icon and a `M` to the right of the source member to indicate the file has been modified.

docs/workshop/06_cicd.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- div:left-panel -->
88

9-
From `Home>Overview` on the Merlin dashboard, launch the `IBM i CI/CD` application using the popup menu on the application
9+
From `Home>Overview` on the Merlin dashboard, launch the `IBM i CI/CD` application
1010

1111
<!-- div:right-panel -->
1212

docs/workshop/ide_overview.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

2+
## IDE Workspace
3+
24
![](ide_overview/overview.png)
35

46
* Green panel: Explorer Panel, file explorer containing git repository files (source) + other IBM i specific explorers like IBM i Project Explorer, Arcad view, Job Logs…
57
* Orange panel: central code Panel, where you can visualize and update your source code.
68
* Red panel: outline view displays all defined variables, structs and files in active editor
79
* Blue panel: Problems & Output view, compilation output, warnings, etc.
810

9-
### ILE RPG has most support
11+
## ILE RPG has extensive support
1012

1113
* Outline
1214
* Model created
@@ -19,9 +21,8 @@
1921
* And lets you go to those calls
2022
* Collapsible blocks of code
2123

22-
## Features
2324

24-
### Tokenisation
25+
### Tokenization
2526

2627
![](ide_overview/tokens.png)
2728

@@ -72,7 +73,7 @@
7273

7374
<!-- div:left-panel -->
7475

75-
### SQL
76+
## SQL
7677

7778
* Tokenization
7879
* Formatting
@@ -87,6 +88,7 @@
8788

8889
---
8990

91+
## IBM i Workspace actions
9092
<!-- panels:start -->
9193

9294
<!-- div:left-panel -->
@@ -112,7 +114,7 @@ Press F1, then type “IBM” to see the IBM i functions available:
112114

113115
<!-- div:left-panel -->
114116

115-
### Fast open
117+
## Fast open
116118

117119
Using Control/Command + P to filter workspace files.
118120

docs/workshop/readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
### Your Mission
22

3-
Your mission is to modernize your application and development practices, from green screen to a collaborative git/VS Code era with DevOps automation 😄
3+
Your mission is to modernize your application and development practices, from green screen to a collaborative git/VS Code era with DevOps automation 😄 . The ARCAD-EXAMPLE application will be used.
44

5-
Merlin can support any kind of build mechanisms (like GNU make, or BoB) but as it is a complex application, decision was made to use Merlin with its powerful Arcad Software features. ARCAD-EXAMPLE app is already initialized in Merlin/Arcad
5+
Merlin can support any kind of build mechanisms (like GNU make, or BoB). As the example application is a complex application, the decision was made to use Merlin with its powerful Arcad Software features. The example application is already initialized in Merlin/Arcad.
66

7-
You are part of a team of 12 developers, on-boarded on Merlin: team1 to 12, all working on the same arcad-example application, on distinct branches feature/teamXX (XX = 1 to 12).
7+
You are part of a team developers on-boarded on Merlin. Each developer will work on the same arcad-example application on distinct branches.
88

9-
The Application source members have already been migrated from QSYS.LIB to a git repository, managed by Merlin as an Arcad Project. Webhooks are configured on Git so every action in git is caught by Merlin/Arcad Builder.
9+
The application source members have already been migrated from QSYS.LIB to a git repository, managed by Merlin as an Arcad Project. Webhooks are configured on Git so every action in git is caught by Merlin/Arcad Builder.

0 commit comments

Comments
 (0)