[タスク 1176: 開発環境コンテナの構築(Client/Server)](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/OMDSDictation/_workitems/edit/1176) 開発用コンテナを構築しました。以下のコンテナを追加しています。 - ライセンス管理 - server - client - ディクテーション管理 - server - client - DB(MySQL) - Cache(Redis)
33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
FROM node:18.13.0-buster
|
|
|
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
|
|
echo "Asia/Tokyo" > /etc/timezone
|
|
|
|
# Options for setup script
|
|
ARG INSTALL_ZSH="true"
|
|
ARG UPGRADE_PACKAGES="false"
|
|
ARG USERNAME=vscode
|
|
# 1000 はnodeで使われているためずらす
|
|
ARG USER_UID=1001
|
|
ARG USER_GID=$USER_UID
|
|
|
|
# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies.
|
|
COPY library-scripts/common-debian.sh /tmp/library-scripts/
|
|
RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \
|
|
&& apt-get install default-jre -y \
|
|
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
|
|
|
|
# Install mob
|
|
RUN curl -sL install.mob.sh | sh
|
|
|
|
# 以下 ユーザー権限で実施
|
|
USER $USERNAME
|
|
|
|
# copy init-script
|
|
COPY --chown=$USERNAME:$USERNAME init.sh /home/${USERNAME}/
|
|
RUN chmod +x /home/${USERNAME}/init.sh
|
|
|
|
# 初期化を行う
|
|
# node imageのデフォルトENTRYPOINTが邪魔するため上書き
|
|
ENTRYPOINT /home/vscode/init.sh
|