Skip to content

Commit c1b7dce

Browse files
committed
change working directory
1 parent 2a8fd2b commit c1b7dce

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
"service": "iris",
1212

13-
"workspaceFolder": "/irisrun/repo",
13+
"workspaceFolder": "/home/irisowner/dev",
1414

1515
// This provides the elements of the connection object which require different values when connecting to the workspace within the container,
1616
// versus those in .vscode/settings.json which apply when operating locally on the workspace files.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG IMAGE=intersystemsdc/irishealth-community
22
ARG IMAGE=intersystemsdc/iris-community
33
FROM $IMAGE
44

5-
WORKDIR /home/irisowner/irisbuild
5+
WORKDIR /home/irisowner/dev
66

77
ARG TESTS=0
88
ARG MODULE="objectscript-template"

dev.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# useful commands
2-
## clean up docker
2+
## clean up docker
33
use it when docker says "There is no space left on device". It will remove built but not used images and other temporary files.
44
```
55
docker system prune -f
@@ -54,7 +54,7 @@ repo -r -n registry -url https://pm.community.intersystems.com/
5454

5555
## export a global in runtime into the repo
5656
```
57-
d $System.OBJ.Export("GlobalD.GBL","/irisrun/repo/src/gbl/GlobalD.xml")
57+
d $System.OBJ.Export("GlobalD.GBL","/home/irisowner/dev/src/gbl/GlobalD.xml")
5858
```
5959

6060
## create a web app in dockerfile
@@ -69,20 +69,20 @@ zn "%SYS" \
6969
set webProperties("iKnowEnabled") = 1 \
7070
set webProperties("DeepSeeEnabled") = 1 \
7171
set sc = ##class(Security.Applications).Create(webName, .webProperties) \
72-
write "Web application "_webName_" has been created!",!
72+
write "Web application "_webName_" has been created!",!
7373
```
7474

7575

7676

7777
```
78-
do $SYSTEM.OBJ.ImportDir("/opt/irisbuild/src",, "ck")
79-
```
78+
do $SYSTEM.OBJ.ImportDir("/home/irisowner/dev/src",, "ck")
79+
```
8080

8181

8282
### run tests described in the module
8383

8484
IRISAPP>zpm
85-
IRISAPP:zpm>load /irisrun/repo
85+
IRISAPP:zpm>load /home/irisowner/dev
8686
IRISAPP:zpm>test package-name
8787

8888
### install ZPM with one line
@@ -91,8 +91,8 @@ IRISAPP:zpm>test package-name
9191

9292

9393
## add git
94-
USER root
94+
USER root
9595

9696
RUN apt update && apt-get -y install git
97-
97+
9898
USER ${ISC_PACKAGE_MGRUSER}

docker-compose.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
version: '3.6'
22
services:
33
iris:
4-
build:
4+
build:
55
context: .
66
dockerfile: Dockerfile
77
restart: always
8-
command: --check-caps false
9-
ports:
8+
ports:
109
- 1972
1110
- 52773
1211
- 53773
1312
volumes:
14-
- ./:/irisrun/repo
13+
- ./:/home/irisowner/dev

iris.script

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;do $System.OBJ.LoadDir("/opt/irisbuild/src","ck",,1)
1+
;do $System.OBJ.LoadDir("/home/irisowner/dev/src","ck",,1)
22

33
;disabling password expire for development purposes
44
zn "%SYS"
@@ -10,7 +10,8 @@
1010
set prop("AutheEnabled")=48
1111
do ##class(Security.Services).Modify("%Service_CallIn",.prop)
1212

13+
zpm "install passwordless"
1314
; importing the source code of the repository as ZPM module
1415
zn "USER"
15-
zpm "load /home/irisowner/irisbuild/ -v":1:1
16+
zpm "load /home/irisowner/dev -v":1:1
1617
halt

0 commit comments

Comments
 (0)