Skip to content

Commit

Permalink
change working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
evshvarov committed May 16, 2023
1 parent 2a8fd2b commit c1b7dce
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

"service": "iris",

"workspaceFolder": "/irisrun/repo",
"workspaceFolder": "/home/irisowner/dev",

// This provides the elements of the connection object which require different values when connecting to the workspace within the container,
// versus those in .vscode/settings.json which apply when operating locally on the workspace files.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG IMAGE=intersystemsdc/irishealth-community
ARG IMAGE=intersystemsdc/iris-community
FROM $IMAGE

WORKDIR /home/irisowner/irisbuild
WORKDIR /home/irisowner/dev

ARG TESTS=0
ARG MODULE="objectscript-template"
Expand Down
16 changes: 8 additions & 8 deletions dev.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# useful commands
## clean up docker
## clean up docker
use it when docker says "There is no space left on device". It will remove built but not used images and other temporary files.
```
docker system prune -f
Expand Down Expand Up @@ -54,7 +54,7 @@ repo -r -n registry -url https://pm.community.intersystems.com/

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

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



```
do $SYSTEM.OBJ.ImportDir("/opt/irisbuild/src",, "ck")
```
do $SYSTEM.OBJ.ImportDir("/home/irisowner/dev/src",, "ck")
```


### run tests described in the module

IRISAPP>zpm
IRISAPP:zpm>load /irisrun/repo
IRISAPP:zpm>load /home/irisowner/dev
IRISAPP:zpm>test package-name

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


## add git
USER root
USER root

RUN apt update && apt-get -y install git

USER ${ISC_PACKAGE_MGRUSER}
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
version: '3.6'
services:
iris:
build:
build:
context: .
dockerfile: Dockerfile
restart: always
command: --check-caps false
ports:
ports:
- 1972
- 52773
- 53773
volumes:
- ./:/irisrun/repo
- ./:/home/irisowner/dev
5 changes: 3 additions & 2 deletions iris.script
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;do $System.OBJ.LoadDir("/opt/irisbuild/src","ck",,1)
;do $System.OBJ.LoadDir("/home/irisowner/dev/src","ck",,1)

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

zpm "install passwordless"
; importing the source code of the repository as ZPM module
zn "USER"
zpm "load /home/irisowner/irisbuild/ -v":1:1
zpm "load /home/irisowner/dev -v":1:1
halt

0 comments on commit c1b7dce

Please sign in to comment.