Skip to content

Commit

Permalink
2024.12現在のコンテナに合わせて変更
Browse files Browse the repository at this point in the history
  • Loading branch information
iijimam committed Dec 3, 2024
1 parent 130376e commit c0ac80e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
26 changes: 6 additions & 20 deletions Dockerfile
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
10 changes: 10 additions & 0 deletions iris.script
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")

0 comments on commit c0ac80e

Please sign in to comment.