本トピックでは、CICS Docker デモンストレーションの Dockerfile で使用されるコマンドについて詳しく説明します。Dockerfile 全体をリストし、Dockerfile に含まれる各コマンドの説明をその後の表にまとめてあります。Dockerfile のリストに示してある行番号は、読みやすくするために追加したものです。付属の Dockerfile には記載されていません。
001 # Copyright (C) Micro Focus 2018. All rights reserved. 002 # This sample code is supplied for demonstration purposes only 003 # on an "as is" basis and is for use at your own risk. 004 005 FROM microfocus/entdevhub:rhel7_4.0_x64 006 007 ARG ESADM_USER=edadm 008 009 LABEL com.microfocus.is-base-image="false" 010 011 # Create user app and setup cobsetenv 012 USER root 013 014 RUN useradd -ms /bin/bash app && \ 015 usermod -aG $ESADM_USER app && \ 016 touch /etc/profile && \ 017 touch ~app/.bashrc && \ 018 echo ". ~/bin/cobsetenv_login" >>~app/.bashrc && \ 019 echo ". ~/bin/cobsetenv_login" >>~app/.bash_login 020 021 COPY sample_setup /home/app/bin/ 022 RUN chown -R app /home/app 023 024 USER app 025 ENV BASE /home/app/MSS 026 ENV CCITCP2_PORT 4790 027 WORKDIR "/home/app" 028 COPY MSS.tar.gz /home/app 029 COPY MSS64_export.tar.gz /home/app 030 RUN tar xvfp MSS.tar.gz && \ 031 tar xvfp MSS64_export.tar.gz 032 033 COPY cobsetenv_login /home/app/bin/ 034 035 EXPOSE 443 500-55000 036 037 CMD /home/app/bin/sample_setup
この Dockerfile の各行のコマンドは次のとおりです。