Enterprise Developer ベース イメージのコンテナー デモンストレーションの実行

Enterprise Developer ベース イメージを作成するコンテナー デモンストレーションには、デモンストレーションを実行するプロセスができるだけ簡単になるように設計されたバッチ ファイル (bld.bat) が含まれています。本トピックでは、bld.bat の実行時に指定できるパラメーターについて説明します。

For users of Enterprise Developer for Eclipse:

注: bld.bat を使用して Enterprise Developer のベース イメージを作成する際は、関連するインストール ファイルおよびライセンスを bld.bat と同じフォルダーに用意しておく必要があります。これには以下が含まれます。
  • The installable executable file for Windows 用の Enterprise Developer ビルド ツール. This is edbt_60.exe and is supplied in the container demonstration for the Windows 用の Enterprise Developer ビルド ツール base image.
  • The appropriate license (.mflic) file for Windows 用の Enterprise Developer ビルド ツール.
  • If you will be including Java support in the image, the relevant executable file to perform the installation of the JDK. You can get this file from your chosen JDK provider.

バッチ ファイルを実行して Enterprise Developer ベース イメージのコンテナー デモンストレーションを実行するためのコマンドは次のとおりです。

bld.bat { IacceptEULA [dryrun] [openjdk32] [nojava] [verbose] [install-location] |
          rmi                                                                    |
          settings }

パラメーターは次のとおりです。

IacceptEULA
Micro Focus エンドユーザライセンス契約 (EULA) に同意することを示します。

Enterprise Developer を含むベース イメージを作成する場合は、必ず IacceptEULA を指定する必要があります。

dryrun
bld.bat で Docker コマンドが実行されないように指定します。dryrunverbose パラメーターとともに使用すると、Docker コマンドを実行せずに表示できます。
install-location
イメージのファイルシステムの Enterprise Developer をインストールするフォルダーの名前を指定します。このパラメーターを指定する場合は、最後に指定する必要があります。
openjdk32
32 ビット バージョンの AdoptOpenJDK OpenJDK をベース製品イメージに含めるか、_x86 というサフィックスのタグを使用して Ant ベースのプロジェクトをビルドするように指定します。openjdk32 を指定すると、AdoptOpenJDK 1.8 x86 バージョンがベース イメージにダウンロードされて構成され、32 ビットのタグ (サフィックス _x86) が使用できるように構成されます。
nojava
ベース イメージに Java をインストールしないように指定します。デフォルトでは、AdoptOpenJDK OpenJDK から Java サポートがベース イメージに含まれます。You might want to use this if your system already includes a number of different versions of Java and you don't want to introduce another version unnecessarily.
rmi
以前に作成した Enterprise Developer ベース イメージを削除するように指定します。rmi を指定すると、すべての Enterprise Developer ベース イメージが削除されるまで docker rmi --force コマンドが複数回実行されます。
settings
イメージのさまざまなプロパティに使用される設定が画面に表示されます。表示されるプロパティは、Enterprise Developer のインストール可能なファイルとライセンス ファイルの名前、Enterprise Server の管理者ユーザーに使用される詳細、およびログイン イメージに使用される詳細です。settings を指定してもイメージは作成されません。
verbose
Docker コマンドが実行時に画面に表示されます。

For users of Enterprise Developer UNIX Components:

注: bld.sh を使用して Enterprise Developer のベース イメージを作成する際は、関連するインストール ファイルおよびライセンスを bld.sh と同じフォルダーに用意しておく必要があります。これには以下が含まれます。
  • The installable executable for Enterprise Developer. This is setup_entdev_for_docker_6.0_platform and is supplied in the Docker demonstration for the Enterprise Developer base image.
  • The appropriate license (.mflic) for Enterprise Developer.
  • If you will be including Java support in the image, the relevant executable file to perform the installation of the JDK. You can get this file from your chosen JDK provider.

シェル スクリプトを実行して Enterprise Developer ベース イメージのコンテナー デモンストレーションを実行するためのコマンドは次のとおりです。

./bld.sh IacceptEULA  
         [dryrun]
         [esadmgid=admin-gid]
         [esadminuser=admin-id]
         [esadmuid=admin-uid]
         [login|nologin] 
         [logingid=login-gid]
         [loginid=login-id]
         [logingname=login-gname]
         [loginname=login-name]
         [nojava | (java | oraclejava) [javaversion=java-version]]
         [notools]
         [package]
         [rmi]
         [settings]
         [verbose]

パラメーターは次のとおりです。

IacceptEULA
Micro Focus エンドユーザライセンス契約 (EULA) に同意することを示します。

Enterprise Developer を含むベース イメージを作成する場合は、必ず IacceptEULA を指定する必要があります。

dryrun
Indicates that you do not want bld.sh to run any Docker or podman commands. Use dryrun with the verbose parameter to display the Docker or podman commands without running them.
esadminuser=admin-id
Specifies the ID to be used for the Enterprise Server admin user.
esadmgid=admin-gid
Specifies the group ID to use for the Enterprise Server admin user.
esadmuid=admin-uid
Specifies the user ID to use for the Enterprise Server admin user.
java
Indicates that you want the image to include Java support provided by the AdoptOpenJDK OpenJDK. Use the javaversion parameter to specify the version of Java that you want support for.
javaversion=java-version
When specified with the java or oraclejava parameters, specifies the version of Java that you want support for. java-version can be 8, 9, or 10.
login
Indicates that you want to create a login image. Using this option results in image that you can use to log in to (using any details specified by the logingid, loginid, logingname and loginname parameters). Once logged in to this image you can execute shell or Enterprise Developer commands.

This option is useful if you are not adding any application files to a base image but want to be able to use Enterprise Developer commands from it.

When you specify login the tag of the image created is suffixed with "_login".

logingid=login-gid
Specifies the group ID to use for the user specified by the loginid parameter.
loginid=login-id
Specifies the user ID to use for the login image.
logingname=login-gname
Specifies the group name to use for the user specified by the loginid parameter.
loginname=login-name
Specifies the user name to use for the user specified by the loginid parameter.
nojava
Indicates that you do not want Java to be installed in the base image. You might want to use this parameter if your system already includes a number of different versions of Java and you don't want to introduce another version unnecessarily.
nologin
Indicates that you do not want to create a login image. You would typically want to use this option when creating an image that contains an application rather than just a base image for Enterprise Developer. This is the default.
notools
Indicates that you do not want the image to contain the IP tools (such as ping and netcat) that are included in the image by default. Use this option if you do not need the tools and want to minimize the size of the image.
oraclejava
Indicates that you want the image to include Java support provided by the Oracle JDK. Use the javaversion parameter to specify the version of Java that you want support for.
package
Indicates that you want to rebuild the COBOL application in this image.
rmi
以前に作成した Enterprise Developer ベース イメージを削除するように指定します。rmi を指定すると、すべての Enterprise Developer ベース イメージが削除されるまで docker rmi --force または podman rmi --force コマンドが複数回実行されます。
settings
Causes the settings that will be used for various properties of the image to be displayed on-screen. Properties that are displayed include the names of the installable file and the license file for Enterprise Developer, the details to be used for the Enterprise Server admin user, and the details to be used for the login image. Specifying settings does not cause an image to be created.
verbose
Causes Docker or podman commands to be displayed on-screen as they are executed.