-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
iijimam
committed
Dec 3, 2024
1 parent
130376e
commit c0ac80e
Showing
2 changed files
with
16 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
#イメージのタグはこちら(https://hub.docker.com/_/intersystems-iris-data-platform)でご確認ください | ||
ARG IMAGE=containers.intersystems.com/intersystems/iris-community:2021.1.0.215.3 | ||
ARG IMAGE=store/intersystems/iris-community:2021.1.0.215.3 | ||
#イメージのタグはこちら(https://container.intersystems.com/contents)でご確認ください | ||
ARG IMAGE=containers.intersystems.com/intersystems/iris-community:latest-cd | ||
FROM $IMAGE | ||
|
||
USER root | ||
RUN apt-get update | ||
RUN apt-get -y install locales && \ | ||
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8 | ||
|
||
# jdbc related | ||
RUN DEBIAN_FRONTEND=noninteractive apt -y install openjdk-8-jre \ | ||
&& apt clean | ||
|
||
########################################### | ||
#### Set up the irisowner account and load application | ||
USER ${ISC_PACKAGE_MGRUSER} | ||
|
||
|
||
ENV SRCDIR=/irisdev/src | ||
COPY ./src $SRCDIR/ | ||
COPY iris.script . | ||
|
||
RUN iris start $ISC_PACKAGE_INSTANCENAME \ | ||
&& printf 'Do ##class(Config.NLS.Locales).Install("jpuw") Do ##class(Security.Users).UnExpireUserPasswords("*") h\n' | iris session $ISC_PACKAGE_INSTANCENAME -U %SYS \ | ||
&& printf 'Set tSC=$system.OBJ.Load("'$SRCDIR'/Installer.cls","ck") Do:+tSC=0 $SYSTEM.Process.Terminate($JOB,1) h\n' | iris session $ISC_PACKAGE_INSTANCENAME -U %SYS \ | ||
&& printf 'set tSC=##class(ZSelflearning.Installer).RunInstall("'$SRCDIR'") Do:+tSC=0 $SYSTEM.Process.Terminate($JOB,1) h\n' | iris session $ISC_PACKAGE_INSTANCENAME -U %SYS \ | ||
&& iris stop $ISC_PACKAGE_INSTANCENAME quietly | ||
RUN iris start IRIS \ | ||
&& iris session IRIS < iris.script \ | ||
&& iris stop IRIS quietly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//システム設定変更のため %SYSネームスペースに移動 | ||
set $namespace="%SYS" | ||
// 事前定義ユーザのパスワードを無期限に設定する(デフォルトパスワードはSYS) | ||
Do ##class(Security.Users).UnExpireUserPasswords("*") | ||
// 日本語ロケールに変更(コンテナがUbuntu英語版のためデフォルトは英語ロケール)を利用 | ||
Do ##class(Config.NLS.Locales).Install("jpuw") | ||
|
||
// ソースコードインポートと初期設定実行 | ||
Do $system.OBJ.Load("/irisdev/src/Installer.cls","ck") | ||
set tSC=##class(ZSelflearning.Installer).RunInstall("/irisdev/src") |