Skip to content

Commit 8301d94

Browse files
authored
Merge pull request #16 from gevorg95/master
The automatically creating web application was added in dockerfile
2 parents 7ac9cf0 + 16ddf78 commit 8301d94

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Dockerfile

+19-5
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,32 @@ RUN mkdir -p /tmp/deps \
2020

2121
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
2222
/bin/echo -e "sys\nsys\n" \
23-
" Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
24-
" Do ##class(Security.Users).AddRoles(\"admin\", \"%ALL\")\n" \
23+
" do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
24+
" do ##class(Security.Users).AddRoles(\"admin\", \"%ALL\")\n" \
2525
" do \$system.OBJ.Load(\"/opt/app/dswinstaller.cls\",\"ck\")\n" \
26-
" Do ##class(Security.System).Get(,.p)\n" \
27-
" Set p(\"AutheEnabled\")=\$zb(p(\"AutheEnabled\"),16,7)\n" \
28-
" Do ##class(Security.System).Modify(,.p)\n" \
26+
" do ##class(Security.System).Get(,.p)\n" \
27+
" set p(\"AutheEnabled\")=\$zb(p(\"AutheEnabled\"),16,7)\n" \
28+
" do ##class(Security.System).Modify(,.p)\n" \
2929
" Do \$system.OBJ.Load(\"/tmp/deps/zpm.xml\", \"ck\")" \
3030
" do CreateDatabase^%SYS.SQLSEC(\"DCANALYTICS\",\"\",,0)\n" \
3131
" zn \"DCANALYTICS\"" \
3232
" zpm \"install dsw\"" \
3333
" do \$system.OBJ.ImportDir(\"/opt/app/src\",,\"ck\",,1)\n" \
3434
" do ##class(Community.Utils).setup(\"/opt/app/globals.xml\")" \
35+
" zn \"%sys\"" \
36+
" write \"Create web application ...\",!" \
37+
" set webName = \"/csp/dcanalytics\"" \
38+
" set webProperties(\"NameSpace\") = \"DCANALYTICS\"" \
39+
" set webProperties(\"Enabled\") = 1" \
40+
" set webProperties(\"IsNameSpaceDefault\") = 1" \
41+
" set webProperties(\"CSPZENEnabled\") = 1" \
42+
" set webProperties(\"AutheEnabled\") = 32" \
43+
" set webProperties(\"iKnowEnabled\") = 1" \
44+
" set webProperties(\"DeepSeeEnabled\") = 1" \
45+
" set status = ##class(Security.Applications).Create(webName, .webProperties)" \
46+
" write:'status \$system.Status.DisplayError(status)" \
47+
" write \"Web application \"\"\"_webName_\"\"\" was created!\",!" \
48+
" zn \"DCANALYTICS\"" \
3549
" halt" \
3650
| iris session $ISC_PACKAGE_INSTANCENAME && \
3751
/bin/echo -e "sys\nsys\n" \

0 commit comments

Comments
 (0)