diff --git a/.iris_init b/.iris_init new file mode 100644 index 0000000..5a6a110 --- /dev/null +++ b/.iris_init @@ -0,0 +1,6 @@ +:alias enablebi do EnableDeepSee^%SYS.cspServer("/csp/"_$zcvt($namespace,"L")) ; +:alias ssl x "n $namespace set $namespace=""%SYS"", name=$S(""$1""="""":""DefaultSSL"",1:""$1"") do:'##class(Security.SSLConfigs).Exists(name) ##class(Security.SSLConfigs).Create(name)" ; +:alias createdb do $SYSTEM.SQL.Execute("CREATE DATABASE $1") ; +:alias installipm s r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/latest/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c") ; +:alias add%all x "n $namespace set $namespace=""%SYS"",P(""Globals"")=""%DEFAULTDB"",sc=##class(Config.Namespaces).Create(""%All"",.P)" ; +:alias exportglobal d $System.OBJ.Export("$1.GBL","$1$2.xml") ; \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 21a6929..5e45d1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ ENV IRISNAMESPACE "USER" ENV PYTHON_PATH=/usr/irissys/bin/ ENV PATH "/usr/irissys/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/irisowner/bin" +COPY .iris_init /home/irisowner/.iris_init RUN --mount=type=bind,src=.,dst=. \ iris start IRIS && \ diff --git a/Dockerfile_mini b/Dockerfile_mini new file mode 100644 index 0000000..866c1f2 --- /dev/null +++ b/Dockerfile_mini @@ -0,0 +1,12 @@ +# The most minimumalistic dockerfile possible. +# No embedded python support, no unit-testing, no aliases. +ARG IMAGE=intersystemsdc/irishealth-community +ARG IMAGE=intersystemsdc/iris-community +FROM $IMAGE + +WORKDIR /home/irisowner/dev + +RUN --mount=type=bind,src=.,dst=. \ + iris start IRIS && \ + iris session IRIS < iris.script && \ + iris stop IRIS quietly