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: CONTRIBUTING.md
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,51 @@ Thank you for your interest in contributing! While this project originated at In
4
4
5
5
## Getting Started
6
6
7
-
We recommend setting up a local development instance by following these steps:
7
+
### Developing in Docker Containers
8
+
9
+
The easiest way to get a working development environment is with Docker. This gives you an IRIS instance with git-source-control pre-installed in development mode.
10
+
11
+
#### Prerequisites
12
+
13
+
-[Docker](https://www.docker.com/get-started/) installed and running
14
+
-[VS Code](https://code.visualstudio.com/) with the [InterSystems ObjectScript Extension Pack](https://marketplace.visualstudio.com/items?itemName=intersystems-community.objectscript-pack)
-**git-source-control-iris-1**: an IRIS instance with git-source-control loaded in dev mode in the USER namespace. The management portal is published to the host at port 52774.
27
+
28
+
#### Important Notes
29
+
30
+
- The repository is mounted at `/home/irisowner/dev/git-source-control/` inside the container.
31
+
- If port 52774 is already in use, edit the port mapping in `docker-compose.yml`.
32
+
- If you have an InterSystems license key at `~/iris.key`, it will be mounted into the container automatically.
33
+
34
+
#### Development
35
+
36
+
Make changes locally and compile them via VS Code. To access the IRIS terminal in the container:
37
+
38
+
```bash
39
+
docker compose exec -it iris iris session iris
40
+
```
41
+
42
+
To run the unit tests from the IRIS terminal:
43
+
44
+
```
45
+
zpm "git-source-control test -only -verbose"
46
+
```
47
+
48
+
### Developing on an Existing IRIS Instance
49
+
50
+
If you prefer to use an existing IRIS installation:
51
+
8
52
1. Install an instance of IRIS (go to https://evaluation.intersystems.com/ for an evaluation kit).
s version="latest" s r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/"_version_"/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c")
0 commit comments