Skip to content

Commit 3ac1783

Browse files
committed
initial commit
1 parent d129f2c commit 3ac1783

7 files changed

Lines changed: 40 additions & 11 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"iris.script": "objectscript"
66
},
77
"objectscript.conn" :{
8-
"ns": "USER",
8+
"ns": "IRISAPP",
99
"username": "_SYSTEM",
1010
"password": "SYS",
1111
"docker-compose": {
@@ -16,7 +16,7 @@
1616
},
1717
"sqltools.connections": [
1818
{
19-
"namespace": "USER",
19+
"namespace": "IRISAPP",
2020
"connectionMethod": "Server and Port",
2121
"showSystem": false,
2222
"previewLimit": 50,

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ ARG IMAGE=store/intersystems/iris-community:2020.1.0.204.0
22
ARG IMAGE=intersystemsdc/iris-community:2020.1.0.209.0-zpm
33
ARG IMAGE=intersystemsdc/iris-community:2020.2.0.204.0-zpm
44
ARG IMAGE=intersystemsdc/irishealth-community:2020.3.0.200.0-zpm
5-
ARG IMAGE=intersystemsdc/iris-community:2020.3.0.200.0-zpm
65
ARG IMAGE=intersystemsdc/iris-community:2020.3.0.221.0-zpm
7-
ARG IMAGE=intersystemsdc/iris-community:2020.4.0.524.0-zpm
6+
ARG IMAGE=intersystemsdc/iris-community:2020.4.0.547.0-zpm
87
FROM $IMAGE
98

109
USER root
@@ -15,6 +14,7 @@ USER ${ISC_PACKAGE_MGRUSER}
1514

1615
#COPY Installer.cls .
1716
COPY src src
17+
COPY Installer.cls Installer.cls
1818
COPY module.xml module.xml
1919
COPY iris.script iris.script
2020

Installer.cls

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Class App.Installer
2+
{
3+
4+
XData setup
5+
{
6+
<Manifest>
7+
<Default Name="Namespace" Value="IRISAPP"/>
8+
<Default Name="database" Value="irisapp"/>
9+
10+
<Namespace Name="${Namespace}" Code="${Namespace}" Data="${Namespace}" Create="yes" Ensemble="no">
11+
12+
<Configuration>
13+
<Database Name="${Namespace}" Dir="${mgrdir}${database}/data" Create="yes" Resource="%DB_${Namespace}"/>
14+
</Configuration>
15+
</Namespace>
16+
</Manifest>
17+
}
18+
19+
ClassMethod setup(ByRef pVars, pLogLevel As %Integer = 3, pInstaller As %Installer.Installer, pLogger As %Installer.AbstractLogger) As %Status [ CodeMode = objectgenerator, Internal ]
20+
{
21+
#; Let XGL document generate code for this method.
22+
Quit ##class(%Installer.Manifest).%Generate(%compiledclass, %code, "setup")
23+
}
24+
25+
}

iris.script

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
;do $System.OBJ.LoadDir("/opt/irisbuild/src","ck",,1)
2-
1+
// Unexpire passwords for dev mode
32
zn "%SYS"
43
Do ##class(Security.Users).UnExpireUserPasswords("*")
54

6-
zn "USER"
5+
// create IRISAPP namespace
6+
do $SYSTEM.OBJ.Load("/opt/irisbuild/Installer.cls", "ck")
7+
set sc = ##class(App.Installer).setup()
8+
9+
10+
zn "IRISAPP"
711
zpm "load /opt/irisbuild/ -v":1:1
812
halt

module.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Export generator="Cache" version="25">
3-
<Document name="objectscript-template.ZPM">
3+
<Document name="intersystems-iris-template.ZPM">
44
<Module>
5-
<Name>objectscript-template</Name>
6-
<Version>1.1.2</Version>
5+
<Name>intersystems-iris-template</Name>
6+
<Version>1.0.0</Version>
77
<Packaging>module</Packaging>
8-
<SourcesRoot>src</SourcesRoot>
8+
<SourcesRoot>src/iris</SourcesRoot>
99
<Resource Name="dc.PackageSample.PKG"/>
1010
</Module>
1111
</Document>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)