Skip to content

Commit e8770ef

Browse files
committed
Add some GIfs, etc to local dev
1 parent 5eba215 commit e8770ef

5 files changed

+60
-22
lines changed

Gemfile.lock

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.0.4.3)
4+
activesupport (7.0.8)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 1.6, < 2)
77
minitest (>= 5.1)
88
tzinfo (~> 2.0)
9-
addressable (2.8.4)
9+
addressable (2.8.5)
1010
public_suffix (>= 2.0.2, < 6.0)
11+
base64 (0.1.1)
1112
coffee-script (2.4.1)
1213
coffee-script-source
1314
execjs
1415
coffee-script-source (1.11.1)
1516
colorator (1.1.0)
16-
commonmarker (0.23.9)
17+
commonmarker (0.23.10)
1718
concurrent-ruby (1.2.2)
1819
dnsruby (1.70.0)
1920
simpleidn (~> 0.2.1)
@@ -23,8 +24,9 @@ GEM
2324
ethon (0.16.0)
2425
ffi (>= 1.15.0)
2526
eventmachine (1.2.7)
26-
execjs (2.8.1)
27-
faraday (2.7.4)
27+
execjs (2.9.1)
28+
faraday (2.7.11)
29+
base64
2830
faraday-net_http (>= 2.0, < 3.1)
2931
ruby2_keywords (>= 0.0.4)
3032
faraday-net_http (3.0.2)
@@ -86,7 +88,7 @@ GEM
8688
activesupport (>= 2)
8789
nokogiri (>= 1.4)
8890
http_parser.rb (0.8.0)
89-
i18n (1.13.0)
91+
i18n (1.14.1)
9092
concurrent-ruby (~> 1.0)
9193
jekyll (3.9.3)
9294
addressable (~> 2.4)
@@ -209,20 +211,20 @@ GEM
209211
jekyll (>= 3.5, < 5.0)
210212
jekyll-feed (~> 0.9)
211213
jekyll-seo-tag (~> 2.1)
212-
minitest (5.18.0)
213-
nokogiri (1.15.0-x86_64-linux)
214+
minitest (5.20.0)
215+
nokogiri (1.15.4-x86_64-linux)
214216
racc (~> 1.4)
215217
octokit (4.25.1)
216218
faraday (>= 1, < 3)
217219
sawyer (~> 0.9)
218220
pathutil (0.16.2)
219221
forwardable-extended (~> 2.6)
220222
public_suffix (4.0.7)
221-
racc (1.6.2)
223+
racc (1.7.1)
222224
rb-fsevent (0.11.2)
223225
rb-inotify (0.10.1)
224226
ffi (~> 1.0)
225-
rexml (3.2.5)
227+
rexml (3.2.6)
226228
rouge (3.26.0)
227229
ruby2_keywords (0.0.5)
228230
rubyzip (2.3.2)

_posts/2023-05-11-RPG-CICD-Setting-up-local-development.markdown

+48-12
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,69 @@ title: "RPG CiCd - Part 2 - Local Development Setup"
44
date: 2023-05-14 20:18:07 -0500
55
categories: VSCode IBM i Setup SSH
66
---
7-
There are a few hurdles to overcome to achieve local rpgle / clle development. This blog post will help you though those hurdles.
7+
8+
## LOCAL IBM i development setup
9+
10+
There are a few hurdles to overcome to achieve local rpgle / clle development. This blog post will help you though those hurdles. The outcome is that changes you make on your local PC pushed to an IFS directory and compiled, while also being synchronized with online source/version control, such as Github, Bitbucket, Gitlab, etc.
11+
12+
> To start, we will work on the IBM i development partition where source will be built.
813
914
### You need a home directory
15+
1016
You need to have a home directory on your development IBM i partition. It doesn't matter how you add it, there are several ways. If we assume you can't SSH, you can always do it with a CRTDIR command in the greenscreen.
1117

1218
![Please, not more greenscreen!](/assets/images/CRTDIR.png)
1319

1420
### Set default shell to Bash
21+
1522
If you haven't done it yet, follow instructions in [this link](https://ibmi-oss-docs.readthedocs.io/en/latest/troubleshooting/SETTING_BASH.html) to set Bash as your default shell. For historical reasons, IBM i has ksh (kornshell) as the default shell. Most folks prefer Bash. Most open source examples you find on the web use Bash. The absolute easiest way to do it is to run the following command in ACS Run SQL Scripts tool:
1623

1724
```SQL
1825
CALL QSYS2.SET_PASE_SHELL_INFO('*CURRENT', '/QOpenSys/pkgs/bin/bash')
1926
```
2027

21-
### VSCODE setup
22-
1. Install VSCODE
23-
Go to the [Visual Studio Code download page] and install it on your machine. Once installed, it will notify you when there are updates and prompt you to update it, quite seamlessly. It usually only takes a few seconds.
24-
2. Install extensions to VSCODE
25-
There are a multitude of extensions available for VSCODE. They are available to install in the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/VSCode), or you can access the same marketplace from within the VSCODE in the extensions sidebar view:
28+
> The next few steps will be done on your local PC. Windows steps are pictured, but the process isn't any different on a Mac.
29+
30+
### VSCODE and Git setup
31+
32+
#### Install VSCODE
33+
34+
Go to the [Visual Studio Code download page] and install it on your machine. Once installed, it will notify you when there are updates and prompt you to update it, quite seamlessly. It usually only takes a few seconds.
35+
36+
#### Install GIT (local)
37+
38+
VSCODE automatically prompts you to download and install it the first time you click on the the **source control** view in the activity bar. After GIT install and reload of VSCODE, you should see the **Open Folder** and **Clone Repository** buttons in the **source control** view.
39+
40+
![Downloading GIT](/assets/images/VSCODE_Install_GIT.gif)
41+
42+
![Install GIT](/assets/images/VSCODE_Install_GIT_2.gif)
43+
44+
#### Install VSCODE extensions
45+
46+
There are a multitude of extensions available for VSCODE. They are available to install in the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/VSCode), or you can access the same marketplace from within the VSCODE in the extensions sidebar view:
2647
![Install IBM i Development Pack](/assets/images/InstallIBMiDevelopmentPack.jpg)
2748

28-
Here are the most essential ones.
29-
* [IBM i Development Pack](https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.ibm-i-development-pack) This will install 13 extesions, all helpfull for developming on IBM i, including the Code for IBM i extension.
30-
* [GitLense](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens) This gives you full visibility to your git repository, both locally and remote.
31-
3. Log in to your IBM i with the Code for IBM i extension.
32-
4. [Configure your Settings](/_posts/2023-05-18-VSCODE-Settings-for-IBM-i-development.markdown)
33-
5. Set your deploy IFS target directory
49+
Here are the essential ones for IBM i development.
50+
51+
* [IBM i Development Pack](https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.ibm-i-development-pack) This will install 13 extesions, all helpfull for developming on IBM i, including the Code for IBM i extension.
52+
53+
* [GitLense](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens) This gives you full visibility to your git repository, both locally and remote.
54+
55+
4. Log in to your IBM i with the Code for IBM i extension.
56+
57+
5. [Configure your Settings](/_posts/2023-05-18-VSCODE-Settings-for-IBM-i-development.markdown)
58+
59+
### Create a project
60+
61+
There are two approaches to getting a project to sync to online source control. The easiest approach is to create a blank project online, then clone it locally. In this tutorial, we will use gitlab, but the same concept applies if you are using Github, Bitbucket, and the like.
62+
63+
1. Log into your Gitlab account and create a new project. Think of a good name for your project. This will end up being the directory name where the source is stored. For this tutorial we will call it "My First IBM i Project".
64+
65+
![CiCd pipeline](/assets/images/Gitlab_Create_New_Project.gif)
66+
67+
2. Copy the project SSH clone URL and clone it
68+
69+
5. Set your deploy IFS target directory - do this in the IFS
3470
6. Set up your
3571

3672
### Setting up your IBM i profile
6.95 MB
Loading

assets/images/VSCODE_Install_GIT.gif

7.91 MB
Loading
8.48 MB
Loading

0 commit comments

Comments
 (0)