Skip to content

Commit 0fbb025

Browse files
committed
start production with command line
1 parent 53d9eda commit 0fbb025

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"active": true,
1616
"links": {
17-
"Production": "http://localhost:${port}/csp/irisapp/EnsPortal.ProductionConfig.zen?PRODUCTION=dc.Demo.Production"
17+
"Production": "http://localhost:${port}/csp/irisapp/EnsPortal.ProductionConfig.zen?PRODUCTION=dc.Python.Production"
1818
}
1919
},
2020
"intersystems.servers": {

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ RUN --mount=type=bind,source=/,target=/builder/root,from=builder \
3838
# environment variables for embedded python
3939
ENV IRISUSERNAME "SuperUser"
4040
ENV IRISPASSWORD "SYS"
41-
ENV IRISNAMESPACE "IRISAPP"
41+
ENV IRISNAMESPACE "IRISAPP"
42+
43+
COPY --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} entrypoint.sh /
44+
45+
ENTRYPOINT [ "/tini", "--", "/entrypoint.sh" ]

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ services:
55
context: .
66
dockerfile: Dockerfile
77
restart: always
8-
command: --check-caps false
8+
command:
9+
--check-caps false
910
ports:
1011
- 1972
1112
- 53795:52773

entrypoint.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -m
4+
5+
/iris-main "$@" &
6+
7+
/usr/irissys/dev/Cloud/ICM/waitISC.sh
8+
9+
# set default production
10+
/usr/irissys/bin/irispython -m grongier.pex -d dc.Python.Production
11+
12+
# start production
13+
/usr/irissys/bin/irispython -m grongier.pex -s &
14+
15+
fg %1

0 commit comments

Comments
 (0)