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: README.md
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,14 @@ This is a template for InterSystems ObjectScript Github repository.
3
3
The template goes also with a few files which let you immedietly compile your ObjecScript files in InterSystems IRIS Community Edition in a docker container
4
4
5
5
## Prerequisites
6
-
This needs to have git and docker installed.
6
+
Make sure you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Docker desktop](https://www.docker.com/products/docker-desktop) installed.
This repository is ready to code in VSCode with ObjectScript plugin.
39
-
Install [VSCode](https://code.visualstudio.com/) and [ObjectScript](https://marketplace.visualstudio.com/items?itemName=daimor.vscode-objectscript) plugin and open the folder in VSCode.
39
+
Install [VSCode](https://code.visualstudio.com/), [Docker](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) and [ObjectScript](https://marketplace.visualstudio.com/items?itemName=daimor.vscode-objectscript) plugin and open the folder in VSCode.
40
40
Open /src/cls/PackageSample/ObjectScript.cls class and try to make changes - it will be compiled in running IRIS docker container.
41
41
42
42
Feel free to delete PackageSample folder and place your ObjectScript classes in a form
43
-
/src/cls/Package/Classname.cls
43
+
/src/Package/Classname.cls
44
+
[Read more about folder setup for InterSystems ObjectScript](https://community.intersystems.com/post/simplified-objectscript-source-folder-structure-package-manager)
44
45
45
-
The script in Installer.cls will import everything you place under /src/cls into IRIS.
46
+
The script in Installer.cls will import everything you place under /src into IRIS.
46
47
47
-
## What's insde the repo
48
48
49
-
# Dockerfile
49
+
## What's inside the repository
50
+
51
+
### Dockerfile
50
52
51
53
The simplest dockerfile which starts IRIS and imports Installer.cls and then runs the Installer.setup method, which creates IRISAPP Namespace and imports ObjectScript code from /src folder into it.
52
54
Use the related docker-compose.yml to easily setup additional parametes like port number and where you map keys and host folders.
53
55
Use .env/ file to adjust the dockerfile being used in docker-compose.
54
56
55
-
# Dockerfile-zpm
57
+
###Dockerfile-zpm
56
58
57
59
Dockerfile-zpm builds for you a container which contains ZPM package manager client so you are able to install packages from ZPM in this container.
58
60
As an example of usage in installs webterminal
59
61
60
-
# Dockerfile-web
62
+
###Dockerfile-web
61
63
62
64
Dockerfile-web starts IRIS does the same what Dockerfile does and also sets up the web app programmatically
63
65
64
66
65
-
# .vscode/settings.json
67
+
###.vscode/settings.json
66
68
67
69
Settings file to let you immedietly code in VSCode with [VSCode ObjectScript plugin](https://marketplace.visualstudio.com/items?itemName=daimor.vscode-objectscript))
68
70
69
-
# .vscode/launch.json
71
+
###.vscode/launch.json
70
72
Config file if you want to debug with VSCode ObjectScript
73
+
74
+
[Read about all the files in this artilce](https://community.intersystems.com/post/dockerfile-and-friends-or-how-run-and-collaborate-objectscript-projects-intersystems-iris)
0 commit comments