docker使用dockerfile和shell脚本,动态参数控制
前言最近在写搞项目中的测试环境远程debug,需要修改一下dockerfile中的shell脚本配置启动java程序中的参数,所以有在研究dockerfile和shell脚本shell中传入参数shell脚本,名称为start.up#!/bin/basha=$1b=$2if [ "$a" == "1" ];thenecho "a=1"elseecho "a!=1" fiif [ "$b" == "2" ];thenecho "b=2"elseecho "b!=2" fil
原创
2020-08-04 17:32:36 ·
10182 阅读 ·
5 评论