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: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Added
11
11
-#992: Implement automatic history purge logic
12
12
-#973: Enables CORS and JWT configuration for WebApplications in module.xml
13
+
-#1110: Add `iriscli` and `ipm` container utility scripts
13
14
14
15
### Fixed
15
16
-#1001: The `unmap` and `enable` commands will now only activate CPF merge once after all namespaces have been configured instead after every namespace
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,49 @@ From time to time, you may also want to remove unused Docker data to save disk s
92
92
docker system prune -a
93
93
```
94
94
95
+
#### Convenience Scripts: `ipm` and `iriscli`
96
+
97
+
The repo ships two bash scripts that wrap common IRIS interactions so you don't have to type `iris session iris` boilerplate every time. They are copied into `/home/irisowner/bin/` during the container build and are available by name in any running container.
98
+
99
+
**`ipm`** — runs a single IPM/ZPM command non-interactively and exits:
100
+
```bash
101
+
# List installed packages
102
+
docker exec -it <container-name, e.g. ipm-iris-1> ipm list
103
+
104
+
# Install a package
105
+
docker exec -it <container-name, e.g. ipm-iris-1> ipm install zpm-registry
106
+
107
+
# Run tests for a module
108
+
docker exec -it <container-name, e.g. ipm-iris-1> ipm test mymodule -only
109
+
110
+
# Using docker compose exec (works for any container defined in docker-compose.yml)
111
+
# Note: must be run from the directory containing docker-compose.yml
112
+
docker compose exec iris ipm list
113
+
```
114
+
115
+
**`iriscli`** — opens an interactive IRIS terminal session:
116
+
```bash
117
+
# Either this command
118
+
docker exec -it <container-name, e.g. ipm-iris-1> iriscli
119
+
120
+
# Or this equivalent command (must be run from the directory containing docker-compose.yml)
121
+
docker compose exec -it iris iriscli
122
+
```
123
+
124
+
`iriscli` also accepts an ObjectScript script file, executing each line and then halting:
> **Namespace:** Both scripts respect the `IRIS_NAMESPACE` environment variable, or accept `-U <namespace>` as the first argument. For example: `docker exec -it <container-name> ipm -U %SYS list`.
137
+
95
138
96
139
### Developing IPM in an Existing IRIS Instance
97
140
If you already have an IRIS instance running and you want to test IPM in this instance, run the following command:
0 commit comments