Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyMi37 authored and nikitaeverywhere committed Oct 30, 2022
1 parent 6530382 commit bee8c68
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG IMAGE=intersystemsdc/iris-ml-community:latest as build
FROM $IMAGE

USER root

WORKDIR /opt/irisapp
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp
USER ${ISC_PACKAGE_MGRUSER}

COPY build build
COPY module.xml module.xml
COPY iris.script /tmp/iris.script

RUN iris start IRIS \
&& iris session IRIS < /tmp/iris.script \
&& iris stop IRIS quietly
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.8'
services:
iris:
build:
context: .
dockerfile: Dockerfile
restart: always
command: --check-caps false
ports:
- 51663:1972
- 52663:52773
- 53773
volumes:
- ./:/irisdev/app
6 changes: 6 additions & 0 deletions iris.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
zn "%SYS"
Do ##class(Security.Users).UnExpireUserPasswords("*")

zn "USER"
zpm "load /opt/irisapp/ -v":1:1
halt

0 comments on commit bee8c68

Please sign in to comment.